2017-12-05 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / pr51821.c
blobf2571123f69c0114074239165f7945b7d401f876
1 /* { dg-do run } */
2 /* { dg-options "-std=c99 -O2" } */
3 /* { dg-additional-options "-msse" { target { i?86-*-* x86_64-*-* } } } */
4 /* { dg-require-effective-target sse_runtime { target { i?86-*-* x86_64-*-* } } } */
6 extern void abort (void);
8 unsigned int __attribute__((noinline))
9 test (int shift_size)
11 unsigned long long res = ~0;
13 return res << shift_size;
16 int
17 main ()
19 int dst = 32;
21 if (test (dst) != 0)
22 abort ();
24 return 0;