]> git.ipfire.org Git - thirdparty/gcc.git/commit
testsuite: i386: Fix gcc.target/i386/pr117232-1.c etc. with Solaris as
authorRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Wed, 20 Nov 2024 11:54:22 +0000 (12:54 +0100)
committerRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Wed, 20 Nov 2024 11:54:22 +0000 (12:54 +0100)
commitbf57f9b59904f517bced5307792358cc15c77f26
tree0e1b1d33193bf9fd84a526e249ff81b93084ed13
parentfa18217f60f75c9cc045b3ebb43707917705d490
testsuite: i386: Fix gcc.target/i386/pr117232-1.c etc. with Solaris as

Two tests FAIL on Solaris/x86 with the native assembler:

FAIL: gcc.target/i386/pr117232-1.c scan-assembler-times (?n)cmovn?c 7
FAIL: gcc.target/i386/pr117232-apx-1.c scan-assembler-times (?n)cmovn?c 7

The problem is that as expects a slightly different insn syntax, e.g.

cmovl.nc %esi, %eax

instead of

cmovnc %esi, %eax

This patch allows for both forms.

Tested on i386-pc-solaris2.11 (as and gas) and x86_64-pc-linux-gnu.

2024-11-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>

gcc/testsuite:
* gcc.target/i386/pr117232-1.c (scan-assembler-times): Allow for
cmovl.nc etc.
* gcc.target/i386/pr117232-apx-1.c: Likewise.
gcc/testsuite/gcc.target/i386/pr117232-1.c
gcc/testsuite/gcc.target/i386/pr117232-apx-1.c