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.
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" ]
}