diff options
author | bonzini <bonzini@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-04-03 05:36:26 +0000 |
---|---|---|
committer | bonzini <bonzini@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-04-03 05:36:26 +0000 |
commit | 53fcd11d268d0c570234a8b838bd7f3175b14025 (patch) | |
tree | 50f2a8b2b7ba776c0fd1c3abf0a273389dfc6b01 /gcc | |
parent | 3fc499d6070dc59f63dc81215972de20e9e45ba0 (diff) | |
download | gcc-53fcd11d268d0c570234a8b838bd7f3175b14025.tar.gz |
2008-04-03 Paolo Bonzini <bonzini@gnu.org>
PR rtl-optimization/35281
* gcc.target/i386/pr35281.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@133859 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/gcc.target/i386/pr35281.c | 19 |
2 files changed, 24 insertions, 0 deletions
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 <bonzini@gnu.org> + + PR rtl-optimization/35281 + * gcc.target/i386/pr35281.c: New test. + 2008-04-03 Richard Guenther <rguenther@suse.de> 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" } } */ |