[gcc(refs/users/aoliva/heads/testme)] enable sqrt insns for cdce3.c

Alexandre Oliva aoliva@gcc.gnu.org
Thu Mar 30 14:06:25 GMT 2023


https://gcc.gnu.org/g:e2c97e1075410fa7b5974d9092ba8f50dfe8de3c

commit e2c97e1075410fa7b5974d9092ba8f50dfe8de3c
Author: Alexandre Oliva <oliva@adacore.com>
Date:   Thu Mar 30 05:06:18 2023 -0300

    enable sqrt insns for cdce3.c
    
    The test expects shrink-wrapping of the fsqrt call, but that will only
    occur when there is a usable sqrt insn.
    
    Arrange for dejagnu to add the options that enable the sqrt insn, if
    one is available, and to skip the test otherwise.
    
    
    for  gcc/testsuite/ChangeLog
    
            * gcc.dg/cdce3.c: Add sqrt insn options.

Diff:
---
 gcc/testsuite/gcc.dg/cdce3.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/gcc/testsuite/gcc.dg/cdce3.c b/gcc/testsuite/gcc.dg/cdce3.c
index 601ddf055fd..218c24d38f1 100644
--- a/gcc/testsuite/gcc.dg/cdce3.c
+++ b/gcc/testsuite/gcc.dg/cdce3.c
@@ -1,9 +1,10 @@
 /* { dg-do compile } */
 /* { dg-require-effective-target hard_float } */
 /* { dg-options "-O2 -fmath-errno -fdump-tree-cdce-details -fdump-tree-optimized" } */
-/* { dg-final { scan-tree-dump "cdce3.c:11: \[^\n\r]* function call is shrink-wrapped into error conditions\." "cdce" } } */
+/* { dg-add-options sqrt_insn } */
+/* { dg-require-effective-target sqrt_insn } */
+/* { dg-final { scan-tree-dump "cdce3.c:12: \[^\n\r]* function call is shrink-wrapped into error conditions\." "cdce" } } */
 /* { dg-final { scan-tree-dump "sqrtf \\(\[^\n\r]*\\); \\\[tail call\\\]" "optimized" } } */
-/* { dg-skip-if "doesn't have a sqrtf insn" { mmix-*-* } } */
 
 float sqrtf (float);
 float foo (float x)


More information about the Gcc-cvs mailing list