x86: Update PR 35513 tests
authorH.J. Lu <hjl.tools@gmail.com>
Thu, 10 Feb 2022 13:42:49 +0000 (05:42 -0800)
committerH.J. Lu <hjl.tools@gmail.com>
Sat, 12 Feb 2022 13:41:09 +0000 (05:41 -0800)
commit5c4258d7c78a92ab17c14dec1163d87fc42ff019
treee66e828796eeb55b66e03635a6c052ac06008c18
parent0538d42cdd68f6b65d72ed7768f1d00ba44f8631
x86: Update PR 35513 tests

1. Require linker with GNU_PROPERTY_1_NEEDED support for PR 35513
run-time tests.
2. Compile pr35513-8.c to scan assembly code.

PR testsuite/104481
* g++.target/i386/pr35513-1.C: Require property_1_needed target.
* g++.target/i386/pr35513-2.C: Likewise.
* gcc.target/i386/pr35513-8.c: Change to compile.
* lib/target-supports.exp (check_compile): Support assembly code.
(check_effective_target_property_1_needed): New proc.
gcc/testsuite/g++.target/i386/pr35513-1.C
gcc/testsuite/g++.target/i386/pr35513-2.C
gcc/testsuite/gcc.target/i386/pr35513-8.c
gcc/testsuite/lib/target-supports.exp