mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-09-30 23:44:45 -04:00
31 lines
608 B
C
31 lines
608 B
C
$NetBSD$
|
|
|
|
--- gcc/testsuite/gcc.dg/pr51821.c.orig Wed May 21 19:48:58 2014
|
|
+++ gcc/testsuite/gcc.dg/pr51821.c
|
|
@@ -0,0 +1,25 @@
|
|
+/* { dg-do run } */
|
|
+/* { dg-options "-std=c99 -O2" } */
|
|
+/* { dg-options "-std=c99 -O2 -msse" { target { i?86-*-* x86_64-*-* } } } */
|
|
+/* { dg-require-effective-target sse_runtime { target { i?86-*-* x86_64-*-* } } } */
|
|
+
|
|
+extern void abort (void);
|
|
+
|
|
+unsigned int __attribute__((noinline))
|
|
+test (int shift_size)
|
|
+{
|
|
+ unsigned long long res = ~0;
|
|
+
|
|
+ return res << shift_size;
|
|
+}
|
|
+
|
|
+int
|
|
+main ()
|
|
+{
|
|
+ int dst = 32;
|
|
+
|
|
+ if (test (dst) != 0)
|
|
+ abort ();
|
|
+
|
|
+ return 0;
|
|
+}
|