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:
H.J. Lu 2016-02-05 16:24:06 +00:00 committed by H.J. Lu
parent 10ecae7407
commit f5d4b899a5
2 changed files with 25 additions and 0 deletions

View File

@ -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

View 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" } }