diff mbox series

[testsuite] : Fix FAIL: gcc.target/i386/ifcvt-onecmpl-abs-1.c scan-assembler cltd

Message ID CAFULd4Z638Yg9vR-zq3F2CPsVmR27Le0opQWiLZSypdOcCRHGA@mail.gmail.com
State New
Headers show
Series [testsuite] : Fix FAIL: gcc.target/i386/ifcvt-onecmpl-abs-1.c scan-assembler cltd | expand

Commit Message

Uros Bizjak April 9, 2019, 6:17 p.m. UTC
Look for a message of a successful ifcvt in the relevant RTL dump
instead of scanning asm dump.

2019-04-09  Uroš Bizjak  <ubizjak@gmail.com>

    * gcc.target/i386/ifcvt-onecmpl-abs-1.c
    (dg-options): Use -O2 -fdump-rtl-ce1.
    (dg-final): Scan ce1 RTL dump instead of asm dump.

Tested on x86_64-linux-gnu {,-m32} and committed to mainline SVN.

Uros.
diff mbox series

Patch

Index: gcc.target/i386/ifcvt-onecmpl-abs-1.c
===================================================================
--- gcc.target/i386/ifcvt-onecmpl-abs-1.c	(revision 270230)
+++ gcc.target/i386/ifcvt-onecmpl-abs-1.c	(working copy)
@@ -1,9 +1,5 @@ 
 /* { dg-do compile } */
-/* This test checks for if-conversion of one's complement
- * abs function.  */
-/* { dg-options "-O -mtune=generic" } */
-/* { dg-final { scan-assembler "cltd" } } */
-/* { dg-final { scan-assembler "xor" } } */
+/* { dg-options "-O2 -fdump-rtl-ce1" } */
 
 /* Check code generation for one's complement version of abs */
 
@@ -13,3 +9,5 @@  int onecmplabs(int x)
     x = ~x;
   return x;
 }
+
+/* { dg-final { scan-rtl-dump "succeeded through noce_try_abs" "ce1" } } */