diff options
author | Hongyu Wang <hongyu.wang@intel.com> | 2024-06-06 13:00:26 +0800 |
---|---|---|
committer | Hongyu Wang <hongyu.wang@intel.com> | 2024-06-06 15:28:12 +0800 |
commit | f46d54a2a76acb94356989fb187853e5b58c3098 (patch) | |
tree | 2a54fc8cac797a2d259469d0674de9284d9e50a2 | |
parent | 4653b682ef161c3c2fc7bf8462b8f9206a1349e6 (diff) | |
download | gcc-f46d54a2a76acb94356989fb187853e5b58c3098.zip gcc-f46d54a2a76acb94356989fb187853e5b58c3098.tar.gz gcc-f46d54a2a76acb94356989fb187853e5b58c3098.tar.bz2 |
[APX] Adjust target-support check [PR 115341]
Current target apxf check does not specify sub-features that assembler
supports, so the check with older binutils will fail at assemble stage
for new apx features like NF,CCMP or CFCMOV. Adjust the assembler check
for all apx subfeatures.
gcc/testsuite/ChangeLog:
PR target/115341
* lib/target-supports.exp (check_effective_target_apxf):
Check for all apx sub-features.
-rw-r--r-- | gcc/testsuite/lib/target-supports.exp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp index 4766104..5c0a3da 100644 --- a/gcc/testsuite/lib/target-supports.exp +++ b/gcc/testsuite/lib/target-supports.exp @@ -10451,7 +10451,13 @@ proc check_effective_target_apxf { } { void foo () { - __asm__ volatile ("add\t%%r16, %%r31" ::); + __asm__ volatile ("movq\t%r16, %rax"); + __asm__ volatile ("push2p\t%r15, %r14"); + __asm__ volatile ("addq\t%r16, %r31, %r17"); + __asm__ volatile ("{nf} addq\t%r16, %r31"); + __asm__ volatile ("setzule\t%al"); + __asm__ volatile ("cfcmoveq\t%r16, %r31"); + __asm__ volatile ("ccmpleq\t{dfv=sf} %r16, %r31"); } } "-mapxf" ] } |