diff options
author | Cui,Lili <lili.cui@intel.com> | 2020-06-09 10:43:39 +0800 |
---|---|---|
committer | Cui,Lili <lili.cui@intel.com> | 2020-09-24 10:38:15 +0800 |
commit | 81d54bb7aec30fa09ee564c9a51765dc7c019799 (patch) | |
tree | c07124d5a8d2d6c9f4011f118afe10445ef2cc25 /gas/config | |
parent | 7469ddd78f8a5adc46dd1a8f883a74066ae4185b (diff) | |
download | binutils-81d54bb7aec30fa09ee564c9a51765dc7c019799.zip binutils-81d54bb7aec30fa09ee564c9a51765dc7c019799.tar.gz binutils-81d54bb7aec30fa09ee564c9a51765dc7c019799.tar.bz2 |
Add support for Intel TDX instructions.
gas/
* NEWS: Add TDX.
* config/tc-i386.c (cpu_arch): Add .tdx.
(cpu_noarch): Likewise.
* doc/c-i386.texi: Document tdx.
* testsuite/gas/i386/i386.exp: Run tdx tests.
* testsuite/gas/i386/tdx.d: Likewise.
* testsuite/gas/i386/tdx.s: Likewise.
* testsuite/gas/i386/x86-64-tdx.d: Likewise.
* testsuite/gas/i386/x86-64-tdx.s: Likewise.
opcodes/
* i386-dis.c (enum): Add PREFIX_0F01_REG_1_RM_5,
PREFIX_0F01_REG_1_RM_6, PREFIX_0F01_REG_1_RM_7,
X86_64_0F01_REG_1_RM_5_P_2, X86_64_0F01_REG_1_RM_6_P_2,
X86_64_0F01_REG_1_RM_7_P_2.
(prefix_table): Likewise.
(x86_64_table): Likewise.
(rm_table): Likewise.
* i386-gen.c (cpu_flag_init): Add CPU_TDX_FLAGS
and CPU_ANY_TDX_FLAGS.
(cpu_flags): Add CpuTDX.
* i386-opc.h (enum): Add CpuTDX.
(i386_cpu_flags): Add cputdx.
* i386-opc.tbl: Add TDX insns.
* i386-init.h: Regenerate.
* i386-tbl.h: Likewise.
Diffstat (limited to 'gas/config')
-rw-r--r-- | gas/config/tc-i386.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c index 60b2fea..4891c45a 100644 --- a/gas/config/tc-i386.c +++ b/gas/config/tc-i386.c @@ -1220,6 +1220,8 @@ static const arch_entry cpu_arch[] = CPU_AVX512_BF16_FLAGS, 0 }, { STRING_COMMA_LEN (".avx512_vp2intersect"), PROCESSOR_UNKNOWN, CPU_AVX512_VP2INTERSECT_FLAGS, 0 }, + { STRING_COMMA_LEN (".tdx"), PROCESSOR_UNKNOWN, + CPU_TDX_FLAGS, 0 }, { STRING_COMMA_LEN (".enqcmd"), PROCESSOR_UNKNOWN, CPU_ENQCMD_FLAGS, 0 }, { STRING_COMMA_LEN (".serialize"), PROCESSOR_UNKNOWN, @@ -1282,6 +1284,7 @@ static const noarch_entry cpu_noarch[] = { STRING_COMMA_LEN ("noavx512_bf16"), CPU_ANY_AVX512_BF16_FLAGS }, { STRING_COMMA_LEN ("noavx512_vp2intersect"), CPU_ANY_AVX512_VP2INTERSECT_FLAGS }, + { STRING_COMMA_LEN ("notdx"), CPU_ANY_TDX_FLAGS }, { STRING_COMMA_LEN ("noenqcmd"), CPU_ANY_ENQCMD_FLAGS }, { STRING_COMMA_LEN ("noserialize"), CPU_ANY_SERIALIZE_FLAGS }, { STRING_COMMA_LEN ("notsxldtrk"), CPU_ANY_TSXLDTRK_FLAGS }, |