From 48addf69eb048d3fc0135244e6dc9ea90ecb1254 Mon Sep 17 00:00:00 2001 From: Andrew Pinski Date: Wed, 16 Jul 2003 18:23:32 +0000 Subject: [PATCH] re PR target/11008 (improper multiply optimization for pentium4) 2003-07-16 Andrew Pinski PR target/11008 * gcc.dg/i386-pentium4-not-mull.c: New. From-SVN: r69469 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/gcc.dg/i386-pentium4-no-mull.c | 9 +++++++++ 2 files changed, 14 insertions(+) create mode 100644 gcc/testsuite/gcc.dg/i386-pentium4-no-mull.c diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 09b5a63b8e3..4b96542b92f 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2003-07-16 Andrew Pinski + + PR target/11008 + * gcc.dg/i386-pentium4-not-mull.c: New. + 2003-07-16 J"orn Rennecke * gcc.dg/asm-names.c (ymain): Make it weak. diff --git a/gcc/testsuite/gcc.dg/i386-pentium4-no-mull.c b/gcc/testsuite/gcc.dg/i386-pentium4-no-mull.c new file mode 100644 index 00000000000..0780b050bdd --- /dev/null +++ b/gcc/testsuite/gcc.dg/i386-pentium4-no-mull.c @@ -0,0 +1,9 @@ +/* { dg-do compile { target i?86-*-* x86_64-*-* } } */ +/* { dg-options "-O2 -march=pentium4" } */ +/* { dg-final { scan-assembler-not "imull" } } */ + +/* Should be done not using imull. */ +int t(int x) +{ + return x*29; +} -- 2.30.2