]> git.ipfire.org Git - thirdparty/gcc.git/commit
[vxworks] [testsuite] [aarch64] use builtin in pred-not-gen-4.c
authorAlexandre Oliva <oliva@adacore.com>
Thu, 11 May 2023 13:06:25 +0000 (10:06 -0300)
committerAlexandre Oliva <oliva@gnu.org>
Thu, 11 May 2023 13:06:25 +0000 (10:06 -0300)
commit3ec6d8a030cd893c24ea5da9e86bc5eaed747b21
treef073e7ee4bdc91f21c85be606593df00bfc4e8a7
parent880565070317cc4a056722d52c82768ea7181af8
[vxworks] [testsuite] [aarch64] use builtin in pred-not-gen-4.c

On vxworks, isunordered is defined as a macro that ultimately calls a
_Fpcomp function, that GCC doesn't recognize as a builtin, so it
can't optimize accordingly.

Use __builtin_isunordered instead to get the desired code for the
test.

for  gcc/testsuite/ChangeLog

* gcc.target/aarch64/sve/pred-not-gen-4.c: Drop math.h
include, call builtin.
gcc/testsuite/gcc.target/aarch64/sve/pred-not-gen-4.c