From: Andrew Pinski Date: Wed, 26 Nov 2014 08:42:18 +0000 (+0000) Subject: 20141125-1.c: New testcase. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8592c207050c21252a030f31908ade306507a231;p=gcc.git 20141125-1.c: New testcase. 2014-11-25 Andrew Pinski * gcc.c-torture/execute/20141125-1.c: New testcase. From-SVN: r218073 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 9811af8136b..cc579801f34 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2014-11-25 Andrew Pinski + + * gcc.c-torture/execute/20141125-1.c: New testcase. + 2014-11-25 Tobias Burnus * 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 index 00000000000..6aa5665fbaf --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/execute/20141125-1.c @@ -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; +} +