x86: Support GNU_PROPERTY_X86_FEATURE_2_TMM
authorH.J. Lu <hjl.tools@gmail.com>
Sat, 11 Jul 2020 11:04:08 +0000 (04:04 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Sat, 11 Jul 2020 11:04:20 +0000 (04:04 -0700)
commita308b89de77e782b563fe5f712397848bfd4a897
tree6bd0ffcf8ece00258d36841317e4d6bfc7d4546e
parentee9cb95ea14cfc2856a1d89a636d50c14a487de2
x86: Support GNU_PROPERTY_X86_FEATURE_2_TMM

Support GNU_PROPERTY_X86_FEATURE_2_TMM in

https://gitlab.com/x86-psABIs/x86-64-ABI/-/merge_requests/1

 #define GNU_PROPERTY_X86_FEATURE_2_TMM      (1U << 10)

binutils/

* readelf.c (decode_x86_feature_2): Handle
GNU_PROPERTY_X86_FEATURE_2_TMM.

gas/

* config/tc-i386.c (output_insn): Check i.xstate to set
GNU_PROPERTY_X86_FEATURE_2_TMM.
* testsuite/gas/i386/i386.exp: Run x86-64-property-7,
x86-64-property-8 and x86-64-property-9.
* testsuite/gas/i386/x86-64-property-7.d: New file.
* testsuite/gas/i386/x86-64-property-7.s: Likewise.
* testsuite/gas/i386/x86-64-property-8.d: Likewise.
* testsuite/gas/i386/x86-64-property-8.s: Likewise.
* testsuite/gas/i386/x86-64-property-9.d: Likewise.
* testsuite/gas/i386/x86-64-property-9.s: Likewise.

include/

* elf/common.h (GNU_PROPERTY_X86_FEATURE_2_TMM): New.
13 files changed:
binutils/ChangeLog
binutils/readelf.c
gas/ChangeLog
gas/config/tc-i386.c
gas/testsuite/gas/i386/i386.exp
gas/testsuite/gas/i386/x86-64-property-7.d [new file with mode: 0644]
gas/testsuite/gas/i386/x86-64-property-7.s [new file with mode: 0644]
gas/testsuite/gas/i386/x86-64-property-8.d [new file with mode: 0644]
gas/testsuite/gas/i386/x86-64-property-8.s [new file with mode: 0644]
gas/testsuite/gas/i386/x86-64-property-9.d [new file with mode: 0644]
gas/testsuite/gas/i386/x86-64-property-9.s [new file with mode: 0644]
include/ChangeLog
include/elf/common.h