From 51d63c036b8d9f46dc07ca6a1cda75ba34d74367 Mon Sep 17 00:00:00 2001 From: Uros Bizjak Date: Tue, 9 Apr 2019 20:16:14 +0200 Subject: [PATCH] * 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. From-SVN: r270234 --- gcc/testsuite/ChangeLog | 6 ++++++ gcc/testsuite/gcc.target/i386/ifcvt-onecmpl-abs-1.c | 8 +++----- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 71eaabc4997..d8349c54cc0 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2019-04-09 Uroš Bizjak + + * 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. + 2019-04-09 Matthew Malcomson PR target/90024 diff --git a/gcc/testsuite/gcc.target/i386/ifcvt-onecmpl-abs-1.c b/gcc/testsuite/gcc.target/i386/ifcvt-onecmpl-abs-1.c index 7d26f31c725..195da3fef65 100644 --- a/gcc/testsuite/gcc.target/i386/ifcvt-onecmpl-abs-1.c +++ b/gcc/testsuite/gcc.target/i386/ifcvt-onecmpl-abs-1.c @@ -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" } } */ -- 2.30.2