mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-02-23 12:01:15 +08:00
Add a testcase for PR target/69677
PR target/69677 * gcc.target/i386/pr69677.c: New test. From-SVN: r233180
This commit is contained in:
parent
10ecae7407
commit
f5d4b899a5
@ -1,3 +1,8 @@
|
||||
2016-02-05 H.J. Lu <hongjiu.lu@intel.com>
|
||||
|
||||
PR target/69677
|
||||
* gcc.target/i386/pr69677.c: New test.
|
||||
|
||||
2016-02-05 Patrick Palka <ppalka@gcc.gnu.org>
|
||||
|
||||
PR c++/68948
|
||||
|
20
gcc/testsuite/gcc.target/i386/pr69677.c
Normal file
20
gcc/testsuite/gcc.target/i386/pr69677.c
Normal file
@ -0,0 +1,20 @@
|
||||
/* { dg-do compile { target { ia32 } } } */
|
||||
/* { dg-options "-O2 -mno-avx -march=corei7 -fdump-rtl-final" } */
|
||||
|
||||
extern const unsigned int a[];
|
||||
extern const unsigned long long b[];
|
||||
|
||||
int
|
||||
fn1 (unsigned int p1, unsigned long long p2)
|
||||
{
|
||||
unsigned int p3;
|
||||
|
||||
p3 = a[p1];
|
||||
if (p3 == 0 || p3 > 64)
|
||||
return 0;
|
||||
|
||||
p2 &= b[p1];
|
||||
return p2 == ((unsigned long long) 1 << (p3 - 1));
|
||||
}
|
||||
|
||||
// { dg-final { scan-rtl-dump-not "S16 A64\[^\n\]*\\\*movv2di_internal" "final" } }
|
Loading…
Reference in New Issue
Block a user