From: Victor Do Nascimento Date: Wed, 18 Feb 2026 09:40:53 +0000 (+0000) Subject: vect: Fix vect-fncall-mask-math.c test X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=735165a0e5a2d84f134ec017845692c3859d3270;p=thirdparty%2Fgcc.git vect: Fix vect-fncall-mask-math.c test Given the release of relevant lmvec suport, the test's expected failure is no longer satisfied as we are now able to emmit masked calls to math functions, in this case expf. We therefore change the xfail to a pass and, while at it, fix the testism in the test, where temporary names had previously been hardcoded. gcc/testsuite/ChangeLog: * gcc.dg/vect/vect-fncall-mask-math.c: Fix test. --- diff --git a/gcc/testsuite/gcc.dg/vect/vect-fncall-mask-math.c b/gcc/testsuite/gcc.dg/vect/vect-fncall-mask-math.c index 15e22da2807..12c61eac6ed 100644 --- a/gcc/testsuite/gcc.dg/vect/vect-fncall-mask-math.c +++ b/gcc/testsuite/gcc.dg/vect/vect-fncall-mask-math.c @@ -1,10 +1,9 @@ -/* Test the correct application of masking to autovectorized math function calls. - Test is currently set to xfail pending the release of the relevant lmvec - support. */ +/* Test the correct application of masking to autovectorized math function calls. */ /* { dg-do compile { target { aarch64*-*-* } } } */ /* { dg-additional-options "-march=armv8.2-a+sve -fdump-tree-ifcvt-raw -Ofast" { target { aarch64*-*-* } } } */ -#include +__attribute__ ((__simd__ ("notinbranch"), const)) extern float +expf (float __x) __attribute__ ((__nothrow__ , __leaf__)); const int N = 20; const float lim = 101.0; @@ -29,5 +28,4 @@ int main (void) return (0); } -/* { dg-final { scan-tree-dump-not { gimple_call } ifcvt { xfail { aarch64*-*-* } } } } */ -/* { dg-final { scan-tree-dump { gimple_call <.MASK_CALL, _2, expf, _1, _30>} ifcvt { xfail { aarch64*-*-* } } } } */ +/* { dg-final { scan-tree-dump { gimple_call <.MASK_CALL, _[0-9]+, expf, _[0-9]+, _[0-9]+>} ifcvt { target { aarch64*-*-* } } } } */