re PR rtl-optimization/57131 (Wrong register assignment?)

PR rtl-optimization/57131
	* gcc.c-torture/execute/pr57131.c: New test.

From-SVN: r198511
This commit is contained in:
Jakub Jelinek 2013-05-02 08:00:46 +02:00 committed by Jakub Jelinek
parent 6129486250
commit 203550bff1
2 changed files with 24 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2013-05-02 Jakub Jelinek <jakub@redhat.com>
PR rtl-optimization/57131
* gcc.c-torture/execute/pr57131.c: New test.
2013-05-01 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/57132

View File

@ -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;
}