From d7d9a9f820395ecfe06c80fa12bf9cf60f455482 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Mon, 5 Jul 2010 17:14:22 +0000 Subject: [PATCH] Replace rdrnd with rdrand. gas/testsuite/ 2010-07-05 H.J. Lu AVX Programming Reference (June, 2010) * gas/i386/rdrnd.s: Replace rdrnd with rdrand. * gas/i386/rdrnd-intel.d: Likewise. * gas/i386/rdrnd.d: Likewise. * gas/i386/x86-64-rdrnd-intel.d: Likewise. * gas/i386/x86-64-rdrnd.d: Likewise. * gas/i386/x86-64-rdrnd.s: Likewise. opcodes/ 2010-07-05 H.J. Lu AVX Programming Reference (June, 2010) * i386-dis.c (mod_table): Replace rdrnd with rdrand. * i386-opc.tbl: Likewise. * i386-tbl.h: Regenerated. --- gas/testsuite/ChangeLog | 10 +++++++++ gas/testsuite/gas/i386/rdrnd-intel.d | 8 +++---- gas/testsuite/gas/i386/rdrnd.d | 8 +++---- gas/testsuite/gas/i386/rdrnd.s | 8 +++---- gas/testsuite/gas/i386/x86-64-rdrnd-intel.d | 24 ++++++++++----------- gas/testsuite/gas/i386/x86-64-rdrnd.d | 24 ++++++++++----------- gas/testsuite/gas/i386/x86-64-rdrnd.s | 24 ++++++++++----------- opcodes/ChangeLog | 7 ++++++ opcodes/i386-dis.c | 2 +- opcodes/i386-opc.tbl | 2 +- opcodes/i386-tbl.h | 2 +- 11 files changed, 68 insertions(+), 51 deletions(-) diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index fbe6d721ae3..4a9790688dd 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,13 @@ +2010-07-05 H.J. Lu + + AVX Programming Reference (June, 2010) + * gas/i386/rdrnd.s: Replace rdrnd with rdrand. + * gas/i386/rdrnd-intel.d: Likewise. + * gas/i386/rdrnd.d: Likewise. + * gas/i386/x86-64-rdrnd-intel.d: Likewise. + * gas/i386/x86-64-rdrnd.d: Likewise. + * gas/i386/x86-64-rdrnd.s: Likewise. + 2010-07-05 H.J. Lu PR gas/10531 diff --git a/gas/testsuite/gas/i386/rdrnd-intel.d b/gas/testsuite/gas/i386/rdrnd-intel.d index 80dda0b31e5..57423fa7fbf 100644 --- a/gas/testsuite/gas/i386/rdrnd-intel.d +++ b/gas/testsuite/gas/i386/rdrnd-intel.d @@ -8,8 +8,8 @@ Disassembly of section .text: 0+ : -[ ]*[a-f0-9]+: 66 0f c7 f3 rdrnd bx -[ ]*[a-f0-9]+: 0f c7 f3 rdrnd ebx -[ ]*[a-f0-9]+: 66 0f c7 f3 rdrnd bx -[ ]*[a-f0-9]+: 0f c7 f3 rdrnd ebx +[ ]*[a-f0-9]+: 66 0f c7 f3 rdrand bx +[ ]*[a-f0-9]+: 0f c7 f3 rdrand ebx +[ ]*[a-f0-9]+: 66 0f c7 f3 rdrand bx +[ ]*[a-f0-9]+: 0f c7 f3 rdrand ebx #pass diff --git a/gas/testsuite/gas/i386/rdrnd.d b/gas/testsuite/gas/i386/rdrnd.d index f085c2662a8..3b16c84566a 100644 --- a/gas/testsuite/gas/i386/rdrnd.d +++ b/gas/testsuite/gas/i386/rdrnd.d @@ -7,8 +7,8 @@ Disassembly of section .text: 0+ : -[ ]*[a-f0-9]+: 66 0f c7 f3 rdrnd %bx -[ ]*[a-f0-9]+: 0f c7 f3 rdrnd %ebx -[ ]*[a-f0-9]+: 66 0f c7 f3 rdrnd %bx -[ ]*[a-f0-9]+: 0f c7 f3 rdrnd %ebx +[ ]*[a-f0-9]+: 66 0f c7 f3 rdrand %bx +[ ]*[a-f0-9]+: 0f c7 f3 rdrand %ebx +[ ]*[a-f0-9]+: 66 0f c7 f3 rdrand %bx +[ ]*[a-f0-9]+: 0f c7 f3 rdrand %ebx #pass diff --git a/gas/testsuite/gas/i386/rdrnd.s b/gas/testsuite/gas/i386/rdrnd.s index b3e0e69939e..7fc0fdf1734 100644 --- a/gas/testsuite/gas/i386/rdrnd.s +++ b/gas/testsuite/gas/i386/rdrnd.s @@ -2,9 +2,9 @@ .text foo: - rdrnd %bx - rdrnd %ebx + rdrand %bx + rdrand %ebx .intel_syntax noprefix - rdrnd bx - rdrnd ebx + rdrand bx + rdrand ebx diff --git a/gas/testsuite/gas/i386/x86-64-rdrnd-intel.d b/gas/testsuite/gas/i386/x86-64-rdrnd-intel.d index 293fe369e91..0bb87985e91 100644 --- a/gas/testsuite/gas/i386/x86-64-rdrnd-intel.d +++ b/gas/testsuite/gas/i386/x86-64-rdrnd-intel.d @@ -8,16 +8,16 @@ Disassembly of section .text: 0+ : -[ ]*[a-f0-9]+: 66 0f c7 f3 rdrnd bx -[ ]*[a-f0-9]+: 0f c7 f3 rdrnd ebx -[ ]*[a-f0-9]+: 48 0f c7 f3 rdrnd rbx -[ ]*[a-f0-9]+: 66 41 0f c7 f0 rdrnd r8w -[ ]*[a-f0-9]+: 41 0f c7 f0 rdrnd r8d -[ ]*[a-f0-9]+: 49 0f c7 f0 rdrnd r8 -[ ]*[a-f0-9]+: 66 0f c7 f3 rdrnd bx -[ ]*[a-f0-9]+: 0f c7 f3 rdrnd ebx -[ ]*[a-f0-9]+: 48 0f c7 f3 rdrnd rbx -[ ]*[a-f0-9]+: 66 41 0f c7 f0 rdrnd r8w -[ ]*[a-f0-9]+: 41 0f c7 f0 rdrnd r8d -[ ]*[a-f0-9]+: 49 0f c7 f0 rdrnd r8 +[ ]*[a-f0-9]+: 66 0f c7 f3 rdrand bx +[ ]*[a-f0-9]+: 0f c7 f3 rdrand ebx +[ ]*[a-f0-9]+: 48 0f c7 f3 rdrand rbx +[ ]*[a-f0-9]+: 66 41 0f c7 f0 rdrand r8w +[ ]*[a-f0-9]+: 41 0f c7 f0 rdrand r8d +[ ]*[a-f0-9]+: 49 0f c7 f0 rdrand r8 +[ ]*[a-f0-9]+: 66 0f c7 f3 rdrand bx +[ ]*[a-f0-9]+: 0f c7 f3 rdrand ebx +[ ]*[a-f0-9]+: 48 0f c7 f3 rdrand rbx +[ ]*[a-f0-9]+: 66 41 0f c7 f0 rdrand r8w +[ ]*[a-f0-9]+: 41 0f c7 f0 rdrand r8d +[ ]*[a-f0-9]+: 49 0f c7 f0 rdrand r8 #pass diff --git a/gas/testsuite/gas/i386/x86-64-rdrnd.d b/gas/testsuite/gas/i386/x86-64-rdrnd.d index 90c0f9ac3d1..8e971f6b234 100644 --- a/gas/testsuite/gas/i386/x86-64-rdrnd.d +++ b/gas/testsuite/gas/i386/x86-64-rdrnd.d @@ -7,16 +7,16 @@ Disassembly of section .text: 0+ : -[ ]*[a-f0-9]+: 66 0f c7 f3 rdrnd %bx -[ ]*[a-f0-9]+: 0f c7 f3 rdrnd %ebx -[ ]*[a-f0-9]+: 48 0f c7 f3 rdrnd %rbx -[ ]*[a-f0-9]+: 66 41 0f c7 f0 rdrnd %r8w -[ ]*[a-f0-9]+: 41 0f c7 f0 rdrnd %r8d -[ ]*[a-f0-9]+: 49 0f c7 f0 rdrnd %r8 -[ ]*[a-f0-9]+: 66 0f c7 f3 rdrnd %bx -[ ]*[a-f0-9]+: 0f c7 f3 rdrnd %ebx -[ ]*[a-f0-9]+: 48 0f c7 f3 rdrnd %rbx -[ ]*[a-f0-9]+: 66 41 0f c7 f0 rdrnd %r8w -[ ]*[a-f0-9]+: 41 0f c7 f0 rdrnd %r8d -[ ]*[a-f0-9]+: 49 0f c7 f0 rdrnd %r8 +[ ]*[a-f0-9]+: 66 0f c7 f3 rdrand %bx +[ ]*[a-f0-9]+: 0f c7 f3 rdrand %ebx +[ ]*[a-f0-9]+: 48 0f c7 f3 rdrand %rbx +[ ]*[a-f0-9]+: 66 41 0f c7 f0 rdrand %r8w +[ ]*[a-f0-9]+: 41 0f c7 f0 rdrand %r8d +[ ]*[a-f0-9]+: 49 0f c7 f0 rdrand %r8 +[ ]*[a-f0-9]+: 66 0f c7 f3 rdrand %bx +[ ]*[a-f0-9]+: 0f c7 f3 rdrand %ebx +[ ]*[a-f0-9]+: 48 0f c7 f3 rdrand %rbx +[ ]*[a-f0-9]+: 66 41 0f c7 f0 rdrand %r8w +[ ]*[a-f0-9]+: 41 0f c7 f0 rdrand %r8d +[ ]*[a-f0-9]+: 49 0f c7 f0 rdrand %r8 #pass diff --git a/gas/testsuite/gas/i386/x86-64-rdrnd.s b/gas/testsuite/gas/i386/x86-64-rdrnd.s index b1b3d1c7bca..2d9df167e9d 100644 --- a/gas/testsuite/gas/i386/x86-64-rdrnd.s +++ b/gas/testsuite/gas/i386/x86-64-rdrnd.s @@ -2,17 +2,17 @@ .text foo: - rdrnd %bx - rdrnd %ebx - rdrnd %rbx - rdrnd %r8w - rdrnd %r8d - rdrnd %r8 + rdrand %bx + rdrand %ebx + rdrand %rbx + rdrand %r8w + rdrand %r8d + rdrand %r8 .intel_syntax noprefix - rdrnd bx - rdrnd ebx - rdrnd rbx - rdrnd r8w - rdrnd r8d - rdrnd r8 + rdrand bx + rdrand ebx + rdrand rbx + rdrand r8w + rdrand r8d + rdrand r8 diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog index 96fffad2131..6b3b56c0550 100644 --- a/opcodes/ChangeLog +++ b/opcodes/ChangeLog @@ -1,3 +1,10 @@ +2010-07-05 H.J. Lu + + AVX Programming Reference (June, 2010) + * i386-dis.c (mod_table): Replace rdrnd with rdrand. + * i386-opc.tbl: Likewise. + * i386-tbl.h: Regenerated. + 2010-07-05 H.J. Lu * i386-opc.h (CpuFSGSBase): Fix a typo in comments. diff --git a/opcodes/i386-dis.c b/opcodes/i386-dis.c index 224540e1a8e..1f9d01db104 100644 --- a/opcodes/i386-dis.c +++ b/opcodes/i386-dis.c @@ -10450,7 +10450,7 @@ static const struct dis386 mod_table[][2] = { { /* MOD_0FC7_REG_6 */ { PREFIX_TABLE (PREFIX_0FC7_REG_6) }, - { "rdrnd", { Ev } }, + { "rdrand", { Ev } }, }, { /* MOD_0FC7_REG_7 */ diff --git a/opcodes/i386-opc.tbl b/opcodes/i386-opc.tbl index ef487206032..010a6327c3d 100644 --- a/opcodes/i386-opc.tbl +++ b/opcodes/i386-opc.tbl @@ -2394,7 +2394,7 @@ vpclmulhqhqdq, 3, 0x6644, 0x11, 1, CpuAVX|CpuPCLMUL, Modrm|Vex|VexOpcode=2|VexVV rdfsbase, 1, 0xf30fae, 0x0, 2, CpuFSGSBase, Modrm|No_bSuf|No_wSuf|No_lSuf|No_sSuf|No_qSuf|No_ldSuf, { Reg32|Reg64 } rdgsbase, 1, 0xf30fae, 0x1, 2, CpuFSGSBase, Modrm|No_bSuf|No_wSuf|No_lSuf|No_sSuf|No_qSuf|No_ldSuf, { Reg32|Reg64 } -rdrnd, 1, 0xfc7, 0x6, 2, CpuRdRnd, Modrm|No_bSuf|No_wSuf|No_lSuf|No_sSuf|No_qSuf|No_ldSuf, { Reg16|Reg32|Reg64 } +rdrand, 1, 0xfc7, 0x6, 2, CpuRdRnd, Modrm|No_bSuf|No_wSuf|No_lSuf|No_sSuf|No_qSuf|No_ldSuf, { Reg16|Reg32|Reg64 } wrfsbase, 1, 0xf30fae, 0x2, 2, CpuFSGSBase, Modrm|No_bSuf|No_wSuf|No_lSuf|No_sSuf|No_qSuf|No_ldSuf, { Reg32|Reg64 } wrgsbase, 1, 0xf30fae, 0x3, 2, CpuFSGSBase, Modrm|No_bSuf|No_wSuf|No_lSuf|No_sSuf|No_qSuf|No_ldSuf, { Reg32|Reg64 } vcvtph2ps, 2, 0x6613, None, 1, CpuF16C, Modrm|Vex|VexOpcode=1|VexW=1|IgnoreSize|No_bSuf|No_wSuf|No_lSuf|No_sSuf|No_qSuf|No_ldSuf, { Qword|Unspecified|BaseIndex|Disp8|Disp16|Disp32|Disp32S|RegXMM, RegXMM } diff --git a/opcodes/i386-tbl.h b/opcodes/i386-tbl.h index 1bc2e533b69..806ad6ef2d0 100644 --- a/opcodes/i386-tbl.h +++ b/opcodes/i386-tbl.h @@ -27311,7 +27311,7 @@ const insn_template i386_optab[] = { { { 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } } } }, - { "rdrnd", 1, 0xfc7, 0x6, 2, + { "rdrand", 1, 0xfc7, 0x6, 2, { { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0 } }, -- 2.30.2