re PR rtl-optimization/35281 (multiply with 0 generated for 64*32->64)
authorPaolo Bonzini <bonzini@gnu.org>
Thu, 3 Apr 2008 05:36:26 +0000 (05:36 +0000)
committerPaolo Bonzini <bonzini@gcc.gnu.org>
Thu, 3 Apr 2008 05:36:26 +0000 (05:36 +0000)
2008-04-03  Paolo Bonzini  <bonzini@gnu.org>

PR rtl-optimization/35281
* gcc.target/i386/pr35281.c: New test.

From-SVN: r133859

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/pr35281.c [new file with mode: 0644]

index 07af98dfb92d03dfcda80dfc0362fce5a45969c6..f40f99fa111087394ae9f272e7271f1a2802c70b 100644 (file)
@@ -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 (file)
index 0000000..70e93cb
--- /dev/null
@@ -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" } } */