diff options
Diffstat (limited to 'gcc/testsuite/gcc.c-torture/execute/pr99079.c')
-rw-r--r-- | gcc/testsuite/gcc.c-torture/execute/pr99079.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.c-torture/execute/pr99079.c b/gcc/testsuite/gcc.c-torture/execute/pr99079.c new file mode 100644 index 0000000..78bb218 --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/execute/pr99079.c @@ -0,0 +1,18 @@ +/* PR tree-optimization/99079 */ + +__attribute__((noipa)) unsigned long long +foo (int x) +{ + unsigned long long s = 1 << x; + return 4897637220ULL % s; +} + +int +main () +{ + if (__SIZEOF_INT__ * __CHAR_BIT__ != 32) + return 0; + if (foo (31) != 4897637220ULL) + __builtin_abort (); + return 0; +} |