From: H.J. Lu Date: Sat, 28 Jul 2007 16:32:01 +0000 (+0000) Subject: gas/testsuite/ X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=231af07047d23f278d0139300af79be0f3dc090e;p=binutils-gdb.git gas/testsuite/ 2007-07-28 H.J. Lu * gas/i386/x86-64-opcode.d: Updated. * gas/i386/x86-64-simd-intel.d: Likewise. * gas/i386/x86-64-simd.d: Likewise. * gas/i386/x86-64-simd.s: Add movq. opcodes/ 2007-07-28 H.J. Lu * i386-dis.c (dis386_twobyte): Change "movd" to "movK". (prefix_user_table): Likewise. Use EXq instead of EXx on "movq". --- diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index e0b6c85f02e..a938d3caf15 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,11 @@ +2007-07-28 H.J. Lu + + * gas/i386/x86-64-opcode.d: Updated. + * gas/i386/x86-64-simd-intel.d: Likewise. + * gas/i386/x86-64-simd.d: Likewise. + + * gas/i386/x86-64-simd.s: Add movq. + 2007-07-23 H.J. Lu * gas/i386/i386.exp: Run nops16-1, nops-1-i386-i686, nops-1-k8, diff --git a/gas/testsuite/gas/i386/x86-64-opcode.d b/gas/testsuite/gas/i386/x86-64-opcode.d index 912075e3bee..348476e8478 100644 --- a/gas/testsuite/gas/i386/x86-64-opcode.d +++ b/gas/testsuite/gas/i386/x86-64-opcode.d @@ -190,12 +190,12 @@ Disassembly of section .text: [ ]*[0-9a-f]+:[ ]+66 44 0f 7e f8[ ]+movd[ ]+%xmm15,%eax[ ]*(#.*)* [ ]*[0-9a-f]+:[ ]+66 44 0f 7e c0[ ]+movd[ ]+%xmm8,%eax[ ]*(#.*)* [ ]*[0-9a-f]+:[ ]+66 0f 7e f8[ ]+movd[ ]+%xmm7,%eax[ ]*(#.*)* -[ ]*[0-9a-f]+:[ ]+66 48 0f 6e c0[ ]+movd[ ]+%rax,%xmm0[ ]*(#.*)* -[ ]*[0-9a-f]+:[ ]+66 49 0f 6e c0[ ]+movd[ ]+%r8,%xmm0[ ]*(#.*)* -[ ]*[0-9a-f]+:[ ]+66 4d 0f 6e f8[ ]+movd[ ]+%r8,%xmm15[ ]*(#.*)* -[ ]*[0-9a-f]+:[ ]+66 48 0f 7e c0[ ]+movd[ ]+%xmm0,%rax[ ]*(#.*)* -[ ]*[0-9a-f]+:[ ]+66 49 0f 7e c0[ ]+movd[ ]+%xmm0,%r8[ ]*(#.*)* -[ ]*[0-9a-f]+:[ ]+66 49 0f 7e f8[ ]+movd[ ]+%xmm7,%r8[ ]*(#.*)* +[ ]*[0-9a-f]+:[ ]+66 48 0f 6e c0[ ]+movq[ ]+%rax,%xmm0[ ]*(#.*)* +[ ]*[0-9a-f]+:[ ]+66 49 0f 6e c0[ ]+movq[ ]+%r8,%xmm0[ ]*(#.*)* +[ ]*[0-9a-f]+:[ ]+66 4d 0f 6e f8[ ]+movq[ ]+%r8,%xmm15[ ]*(#.*)* +[ ]*[0-9a-f]+:[ ]+66 48 0f 7e c0[ ]+movq[ ]+%xmm0,%rax[ ]*(#.*)* +[ ]*[0-9a-f]+:[ ]+66 49 0f 7e c0[ ]+movq[ ]+%xmm0,%r8[ ]*(#.*)* +[ ]*[0-9a-f]+:[ ]+66 49 0f 7e f8[ ]+movq[ ]+%xmm7,%r8[ ]*(#.*)* [ ]*[0-9a-f]+:[ ]+f3 41 0f 7e 00[ ]+movq[ ]+\(%r8\),%xmm0[ ]*(#.*)* [ ]*[0-9a-f]+:[ ]+f3 0f 7e 00[ ]+movq[ ]+\(%rax\),%xmm0[ ]*(#.*)* [ ]*[0-9a-f]+:[ ]+f3 45 0f 7e 38[ ]+movq[ ]+\(%r8\),%xmm15[ ]*(#.*)* diff --git a/gas/testsuite/gas/i386/x86-64-simd-intel.d b/gas/testsuite/gas/i386/x86-64-simd-intel.d index 775fff5feb8..b7ac86aff06 100644 --- a/gas/testsuite/gas/i386/x86-64-simd-intel.d +++ b/gas/testsuite/gas/i386/x86-64-simd-intel.d @@ -26,6 +26,8 @@ Disassembly of section .text: [ ]*[a-f0-9]+: 66 0f 12 0d 78 56 34 12 movlpd xmm1,QWORD PTR \[rip\+0x12345678\][ ]*(#.*)? [ ]*[a-f0-9]+: 0f 13 0d 78 56 34 12 movlps QWORD PTR \[rip\+0x12345678\],xmm1[ ]*(#.*)? [ ]*[a-f0-9]+: 0f 12 0d 78 56 34 12 movlps xmm1,QWORD PTR \[rip\+0x12345678\][ ]*(#.*)? +[ ]*[a-f0-9]+: 66 0f d6 0d 78 56 34 12 movq QWORD PTR \[rip\+0x12345678\],xmm1[ ]*(#.*)? +[ ]*[a-f0-9]+: f3 0f 7e 0d 78 56 34 12 movq xmm1,QWORD PTR \[rip\+0x12345678\][ ]*(#.*)? [ ]*[a-f0-9]+: f3 0f 16 0d 78 56 34 12 movshdup xmm1,XMMWORD PTR \[rip\+0x12345678\][ ]*(#.*)? [ ]*[a-f0-9]+: f3 0f 12 0d 78 56 34 12 movsldup xmm1,XMMWORD PTR \[rip\+0x12345678\][ ]*(#.*)? [ ]*[a-f0-9]+: f3 0f 70 0d 78 56 34 12 90 pshufhw xmm1,XMMWORD PTR \[rip\+0x12345678\],0x90[ ]*(#.*)? diff --git a/gas/testsuite/gas/i386/x86-64-simd.d b/gas/testsuite/gas/i386/x86-64-simd.d index 460b4051402..12f7831a86d 100644 --- a/gas/testsuite/gas/i386/x86-64-simd.d +++ b/gas/testsuite/gas/i386/x86-64-simd.d @@ -25,6 +25,8 @@ Disassembly of section .text: [ ]*[a-f0-9]+: 66 0f 12 0d 78 56 34 12 movlpd 0x12345678\(%rip\),%xmm1[ ]*(#.*)? [ ]*[a-f0-9]+: 0f 13 0d 78 56 34 12 movlps %xmm1,0x12345678\(%rip\)[ ]*(#.*)? [ ]*[a-f0-9]+: 0f 12 0d 78 56 34 12 movlps 0x12345678\(%rip\),%xmm1[ ]*(#.*)? +[ ]*[a-f0-9]+: 66 0f d6 0d 78 56 34 12 movq %xmm1,0x12345678\(%rip\)[ ]*(#.*)? +[ ]*[a-f0-9]+: f3 0f 7e 0d 78 56 34 12 movq 0x12345678\(%rip\),%xmm1[ ]*(#.*)? [ ]*[a-f0-9]+: f3 0f 16 0d 78 56 34 12 movshdup 0x12345678\(%rip\),%xmm1[ ]*(#.*)? [ ]*[a-f0-9]+: f3 0f 12 0d 78 56 34 12 movsldup 0x12345678\(%rip\),%xmm1[ ]*(#.*)? [ ]*[a-f0-9]+: f3 0f 70 0d 78 56 34 12 90 pshufhw \$0x90,0x12345678\(%rip\),%xmm1[ ]*(#.*)? diff --git a/gas/testsuite/gas/i386/x86-64-simd.s b/gas/testsuite/gas/i386/x86-64-simd.s index 91c98b841e7..9422ac2827a 100644 --- a/gas/testsuite/gas/i386/x86-64-simd.s +++ b/gas/testsuite/gas/i386/x86-64-simd.s @@ -18,6 +18,8 @@ _start: movlpd 0x12345678(%rip),%xmm1 movlps %xmm1,0x12345678(%rip) movlps 0x12345678(%rip),%xmm1 + movq %xmm1,0x12345678(%rip) + movq 0x12345678(%rip),%xmm1 movshdup 0x12345678(%rip),%xmm1 movsldup 0x12345678(%rip),%xmm1 pshufhw $0x90,0x12345678(%rip),%xmm1 diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog index 9c6d1fae84a..0f9cebfe7fb 100644 --- a/opcodes/ChangeLog +++ b/opcodes/ChangeLog @@ -1,3 +1,9 @@ +2007-07-28 H.J. Lu + + * i386-dis.c (dis386_twobyte): Change "movd" to "movK". + (prefix_user_table): Likewise. Use EXq instead of EXx on + "movq". + 2007-07-27 Nathan Sidwell * ppc-opc (PPC7450): New. diff --git a/opcodes/i386-dis.c b/opcodes/i386-dis.c index 29fec0f4734..291c0794ae8 100644 --- a/opcodes/i386-dis.c +++ b/opcodes/i386-dis.c @@ -1019,7 +1019,7 @@ static const struct dis386 dis386_twobyte[] = { { "packssdw", { MX, EM } }, { PREGRP26 }, { PREGRP24 }, - { "movd", { MX, Edq } }, + { "movK", { MX, Edq } }, { PREGRP19 }, /* 70 */ { PREGRP22 }, @@ -1988,7 +1988,7 @@ static const struct dis386 prefix_user_table[][4] = { { { "(bad)", { EXx, XM } }, { "movq2dq",{ XM, MS } }, - { "movq", { EXx, XM } }, + { "movq", { EXq, XM } }, { "movdq2q",{ MX, XS } }, }, /* PREGRP22 */ @@ -2000,9 +2000,9 @@ static const struct dis386 prefix_user_table[][4] = { }, /* PREGRP23 */ { - { "movd", { Edq, MX } }, - { "movq", { XM, EXx } }, - { "movd", { Edq, XM } }, + { "movK", { Edq, MX } }, + { "movq", { XM, EXq } }, + { "movK", { Edq, XM } }, { "(bad)", { Ed, XM } }, }, /* PREGRP24 */