20141125-1.c: New testcase.
authorAndrew Pinski <apinski@cavium.com>
Wed, 26 Nov 2014 08:42:18 +0000 (08:42 +0000)
committerAndrew Pinski <pinskia@gcc.gnu.org>
Wed, 26 Nov 2014 08:42:18 +0000 (00:42 -0800)
2014-11-25  Andrew Pinski <apinski@cavium.com>

        * gcc.c-torture/execute/20141125-1.c: New testcase.

From-SVN: r218073

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/20141125-1.c [new file with mode: 0644]

index 9811af8136bfc6255a57c25128deb1dcd7007122..cc579801f342f3124babfdad7d5dbc3ff6a7930d 100644 (file)
@@ -1,3 +1,7 @@
+2014-11-25  Andrew Pinski <apinski@cavium.com>
+
+       * gcc.c-torture/execute/20141125-1.c: New testcase.
+
 2014-11-25  Tobias Burnus  <burnus@net-b.de>
 
        * gfortran.dg/empty_label.f: Change test to continue testing
diff --git a/gcc/testsuite/gcc.c-torture/execute/20141125-1.c b/gcc/testsuite/gcc.c-torture/execute/20141125-1.c
new file mode 100644 (file)
index 0000000..6aa5665
--- /dev/null
@@ -0,0 +1,17 @@
+int f(long long a) __attribute__((noinline,noclone));
+int f(long long a)
+{
+  if (a & 0x3ffffffffffffffull)
+    return 1;
+  return 1024;
+}
+
+int main(void)
+{
+  if(f(0x48375d8000000000ull) != 1)
+    __builtin_abort ();
+  if (f(0xfc00000000000000ull) != 1024)
+    __builtin_abort ();
+  return 0;
+}
+