public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r14-8729] testsuite: i386: Fix gcc.target/i386/apx-ndd-cmov.c on Solaris/x86
@ 2024-02-02 8:33 Rainer Orth
0 siblings, 0 replies; only message in thread
From: Rainer Orth @ 2024-02-02 8:33 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:63f0907bbbc941f4aca5f44655af02675a5b47f5
commit r14-8729-g63f0907bbbc941f4aca5f44655af02675a5b47f5
Author: Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Date: Fri Feb 2 09:33:16 2024 +0100
testsuite: i386: Fix gcc.target/i386/apx-ndd-cmov.c on Solaris/x86
gcc.target/i386/apx-ndd-cmov.c FAILs on 64-bit Solaris/x86 with the
native assembler:
FAIL: gcc.target/i386/apx-ndd-cmov.c scan-assembler-times cmove[^\\n\\r]*, %eax 1
FAIL: gcc.target/i386/apx-ndd-cmov.c scan-assembler-times cmovge[^\\n\\r]*, %eax 1
The gas vs. as difference is
- cmove c+4(%rip), %esi, %eax
+ cmovl.e c+4(%rip), %esi, %eax
- cmovge %ecx, %edx, %eax
+ cmovl.ge %ecx, %edx, %eax
This patch accounts for both forms.
Tested on i386-pc-solaris2.11 (as and gas) and i686-pc-linux-gnu.
2024-02-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
gcc/testsuite:
* gcc.target/i386/apx-ndd-cmov.c (scan-assembler-times): Allow for
cmovl.e, cmovl.ge.
Diff:
---
gcc/testsuite/gcc.target/i386/apx-ndd-cmov.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/gcc/testsuite/gcc.target/i386/apx-ndd-cmov.c b/gcc/testsuite/gcc.target/i386/apx-ndd-cmov.c
index 459dc965342b..1406db57e0fd 100644
--- a/gcc/testsuite/gcc.target/i386/apx-ndd-cmov.c
+++ b/gcc/testsuite/gcc.target/i386/apx-ndd-cmov.c
@@ -1,7 +1,7 @@
/* { dg-do compile { target { ! ia32 } } } */
/* { dg-options "-O2 -m64 -mapxf" } */
-/* { dg-final { scan-assembler-times "cmove\[^\n\r]*, %eax" 1 } } */
-/* { dg-final { scan-assembler-times "cmovge\[^\n\r]*, %eax" 1 } } */
+/* { dg-final { scan-assembler-times "cmov(l\.)?e\[^\n\r]*, %eax" 1 } } */
+/* { dg-final { scan-assembler-times "cmov(l\.)?ge\[^\n\r]*, %eax" 1 } } */
unsigned int c[4];
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-02-02 8:33 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-02 8:33 [gcc r14-8729] testsuite: i386: Fix gcc.target/i386/apx-ndd-cmov.c on Solaris/x86 Rainer Orth
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).