From 0a262d5466e618a2df7c25c9eac7ef1d4497c0c7 Mon Sep 17 00:00:00 2001 From: Paolo Bonzini Date: Thu, 3 Apr 2008 05:36:26 +0000 Subject: [PATCH] re PR rtl-optimization/35281 (multiply with 0 generated for 64*32->64) 2008-04-03 Paolo Bonzini PR rtl-optimization/35281 * gcc.target/i386/pr35281.c: New test. From-SVN: r133859 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/gcc.target/i386/pr35281.c | 19 +++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 gcc/testsuite/gcc.target/i386/pr35281.c diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 07af98dfb92..f40f99fa111 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2008-04-03 Paolo Bonzini + + PR rtl-optimization/35281 + * gcc.target/i386/pr35281.c: New test. + 2008-04-03 Richard Guenther PR middle-end/35800 diff --git a/gcc/testsuite/gcc.target/i386/pr35281.c b/gcc/testsuite/gcc.target/i386/pr35281.c new file mode 100644 index 00000000000..70e93cbeac0 --- /dev/null +++ b/gcc/testsuite/gcc.target/i386/pr35281.c @@ -0,0 +1,19 @@ +/* { dg-options "-O2" } */ +/* { dg-do compile } */ +/* { dg-require-effective-target ilp32 } */ + +unsigned long long a; +unsigned int b; +unsigned short c; + +unsigned long long mul32() +{ + return a * b; +} + +unsigned long long mul16() +{ + return a * c; +} + +/* { dg-final { scan-assembler-not "xor" } } */ -- 2.30.2