diff options
author | Lingling Kong <lingling.kong@intel.com> | 2024-07-02 15:49:19 +0800 |
---|---|---|
committer | Lingling Kong <lingling.kong@intel.com> | 2024-07-03 10:18:36 +0800 |
commit | 2d5428d8cdd9c72f0a1738de775c2c841b334d55 (patch) | |
tree | 94a14d79b190092e955fe6eb748b744fb8ab8261 /gold | |
parent | gas/doc/riscv: Fixed syntax of `.option arch' when reseting whole architecture (diff) | |
download | binutils-gdb-2d5428d8cdd9c72f0a1738de775c2c841b334d55.tar.gz binutils-gdb-2d5428d8cdd9c72f0a1738de775c2c841b334d55.tar.bz2 binutils-gdb-2d5428d8cdd9c72f0a1738de775c2c841b334d55.zip |
x86-64: Support APX NF TLS IE with 2 operands
Support APX NF TLS IE with 2 operands.Verify it with ld and gold.
gas/
* config/tc-i386.c (md_assemble): Allow APX NF TLS IE with
2 operands.
* testsuite/gas/i386/x86-64-gottpoff.d: Updated.
* testsuite/gas/i386/x86-64-gottpoff.s: Add APX NF TLS IE
tests with 2 operands.
gold/
* testsuite/x86_64_ie_to_le.s: Add APX NF TLS IE tests with
2 operands.
* testsuite/x86_64_ie_to_le.sh: Updated.
ld/
* testsuite/ld-x86-64/tlsbindesc.s: Add APX NF TLS IE tests
with 2 operands.
* testsuite/ld-x86-64/tlsbindesc.d: Updated.
* testsuite/ld-x86-64/tlsbindesc.rd: Likewise.
Diffstat (limited to 'gold')
-rw-r--r-- | gold/testsuite/x86_64_ie_to_le.s | 1 | ||||
-rwxr-xr-x | gold/testsuite/x86_64_ie_to_le.sh | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/gold/testsuite/x86_64_ie_to_le.s b/gold/testsuite/x86_64_ie_to_le.s index 56f3dfcc35e..4bf3f4abafb 100644 --- a/gold/testsuite/x86_64_ie_to_le.s +++ b/gold/testsuite/x86_64_ie_to_le.s @@ -9,6 +9,7 @@ _start: movq foo@gottpoff(%rip), %r20 addq %r30, foo@gottpoff(%rip), %r8 addq foo@gottpoff(%rip), %rax, %r20 + {nf} addq foo@gottpoff(%rip), %r16 {nf} addq %r30, foo@gottpoff(%rip), %r8 {nf} addq foo@gottpoff(%rip), %rax, %r20 .size _start, .-_start diff --git a/gold/testsuite/x86_64_ie_to_le.sh b/gold/testsuite/x86_64_ie_to_le.sh index 29272727c5a..10e84686db8 100755 --- a/gold/testsuite/x86_64_ie_to_le.sh +++ b/gold/testsuite/x86_64_ie_to_le.sh @@ -29,5 +29,6 @@ grep -q "add[ \t]\+\$0x[a-f0-9]\+,%r16" x86_64_ie_to_le.stdout grep -q "mov[ \t]\+\$0x[a-f0-9]\+,%r20" x86_64_ie_to_le.stdout grep -q "add[ \t]\+\$0x[a-f0-9]\+,%r30,%r8" x86_64_ie_to_le.stdout grep -q "add[ \t]\+\$0x[a-f0-9]\+,%rax,%r20" x86_64_ie_to_le.stdout +grep -q "\{nf\} add[ \t]\+\$0x[a-f0-9]\+,%r16" x86_64_ie_to_le.stdout grep -q "\{nf\} add[ \t]\+\$0x[a-f0-9]\+,%r30,%r8" x86_64_ie_to_le.stdout grep -q "\{nf\} add[ \t]\+\$0x[a-f0-9]\+,%rax,%r20" x86_64_ie_to_le.stdout |