Message ID | 20130502060158.GU28963@tucnak.redhat.com |
---|---|
State | New |
Headers | show |
--- gcc/testsuite/gcc.c-torture/execute/pr57131.c.jj 2013-05-02 07:58:05.557803157 +0200 +++ gcc/testsuite/gcc.c-torture/execute/pr57131.c 2013-05-02 07:54:14.000000000 +0200 @@ -0,0 +1,19 @@ +/* PR rtl-optimization/57131 */ + +extern void abort (void); + +int +main () +{ + volatile int x1 = 0; + volatile long long x2 = 0; + volatile int x3 = 0; + volatile int x4 = 1; + volatile int x5 = 1; + volatile long long x6 = 1; + long long t = ((x1 * (x2 << x3)) / (x4 * x5)) + x6; + + if (t != 1) + abort (); + return 0; +}