From: H.J. Lu Date: Mon, 16 Jul 2007 19:16:44 +0000 (+0000) Subject: gas/testsuite/ X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1405105681b49399baa02f6d88173ff0ec1edab3;p=binutils-gdb.git gas/testsuite/ 2007-07-16 H.J. Lu * gas/i386/simd.s: Add tests for punpcklbw, punpckldq, punpcklwd and punpcklqdq. * gas/i386/x86-64-simd.s: Likewise. * gas/i386/simd-intel.d: Updated. * gas/i386/simd.d: Likewise. * gas/i386/x86-64-simd-intel.d: Likewise. * gas/i386/x86-64-simd.d: Likewise. opcodes/ 2007-07-16 H.J. Lu * i386-dis.c (EMq): Removed. (EMx): New. (prefix_user_table): Replace EMq with EMx. --- diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index 210e5f63bb2..77937316f4d 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,14 @@ +2007-07-16 H.J. Lu + + * gas/i386/simd.s: Add tests for punpcklbw, punpckldq, + punpcklwd and punpcklqdq. + * gas/i386/x86-64-simd.s: Likewise. + + * gas/i386/simd-intel.d: Updated. + * gas/i386/simd.d: Likewise. + * gas/i386/x86-64-simd-intel.d: Likewise. + * gas/i386/x86-64-simd.d: Likewise. + 2007-07-14 Nick Clifton * gas/arm/arm.s: Add tests for re-aliasing a previously removed diff --git a/gas/testsuite/gas/i386/simd-intel.d b/gas/testsuite/gas/i386/simd-intel.d index 7f4cc102b5c..a63b8c57f4b 100644 --- a/gas/testsuite/gas/i386/simd-intel.d +++ b/gas/testsuite/gas/i386/simd-intel.d @@ -33,5 +33,9 @@ Disassembly of section .text: [ ]*[a-f0-9]+: 0f 60 0d 78 56 34 12 punpcklbw mm1,DWORD PTR ds:0x12345678 [ ]*[a-f0-9]+: 0f 62 0d 78 56 34 12 punpckldq mm1,DWORD PTR ds:0x12345678 [ ]*[a-f0-9]+: 0f 61 0d 78 56 34 12 punpcklwd mm1,DWORD PTR ds:0x12345678 +[ ]*[a-f0-9]+: 66 0f 60 0d 78 56 34 12 punpcklbw xmm1,XMMWORD PTR ds:0x12345678 +[ ]*[a-f0-9]+: 66 0f 62 0d 78 56 34 12 punpckldq xmm1,XMMWORD PTR ds:0x12345678 +[ ]*[a-f0-9]+: 66 0f 61 0d 78 56 34 12 punpcklwd xmm1,XMMWORD PTR ds:0x12345678 +[ ]*[a-f0-9]+: 66 0f 6c 0d 78 56 34 12 punpcklqdq xmm1,XMMWORD PTR ds:0x12345678 [ ]*[a-f0-9]+: 66 0f 2e 0d 78 56 34 12 ucomisd xmm1,QWORD PTR ds:0x12345678 [ ]*[a-f0-9]+: 0f 2e 0d 78 56 34 12 ucomiss xmm1,DWORD PTR ds:0x12345678 diff --git a/gas/testsuite/gas/i386/simd.d b/gas/testsuite/gas/i386/simd.d index 38a296af15d..b04c27b0316 100644 --- a/gas/testsuite/gas/i386/simd.d +++ b/gas/testsuite/gas/i386/simd.d @@ -32,5 +32,9 @@ Disassembly of section .text: [ ]*[a-f0-9]+: 0f 60 0d 78 56 34 12 punpcklbw 0x12345678,%mm1 [ ]*[a-f0-9]+: 0f 62 0d 78 56 34 12 punpckldq 0x12345678,%mm1 [ ]*[a-f0-9]+: 0f 61 0d 78 56 34 12 punpcklwd 0x12345678,%mm1 +[ ]*[a-f0-9]+: 66 0f 60 0d 78 56 34 12 punpcklbw 0x12345678,%xmm1 +[ ]*[a-f0-9]+: 66 0f 62 0d 78 56 34 12 punpckldq 0x12345678,%xmm1 +[ ]*[a-f0-9]+: 66 0f 61 0d 78 56 34 12 punpcklwd 0x12345678,%xmm1 +[ ]*[a-f0-9]+: 66 0f 6c 0d 78 56 34 12 punpcklqdq 0x12345678,%xmm1 [ ]*[a-f0-9]+: 66 0f 2e 0d 78 56 34 12 ucomisd 0x12345678,%xmm1 [ ]*[a-f0-9]+: 0f 2e 0d 78 56 34 12 ucomiss 0x12345678,%xmm1 diff --git a/gas/testsuite/gas/i386/simd.s b/gas/testsuite/gas/i386/simd.s index cd0cf93cb26..592cd5e9f90 100644 --- a/gas/testsuite/gas/i386/simd.s +++ b/gas/testsuite/gas/i386/simd.s @@ -25,5 +25,9 @@ _start: punpcklbw 0x12345678,%mm1 punpckldq 0x12345678,%mm1 punpcklwd 0x12345678,%mm1 + punpcklbw 0x12345678,%xmm1 + punpckldq 0x12345678,%xmm1 + punpcklwd 0x12345678,%xmm1 + punpcklqdq 0x12345678,%xmm1 ucomisd 0x12345678,%xmm1 ucomiss 0x12345678,%xmm1 diff --git a/gas/testsuite/gas/i386/x86-64-simd-intel.d b/gas/testsuite/gas/i386/x86-64-simd-intel.d index 799a9b314cf..775fff5feb8 100644 --- a/gas/testsuite/gas/i386/x86-64-simd-intel.d +++ b/gas/testsuite/gas/i386/x86-64-simd-intel.d @@ -33,5 +33,9 @@ Disassembly of section .text: [ ]*[a-f0-9]+: 0f 60 0d 78 56 34 12 punpcklbw mm1,DWORD PTR \[rip\+0x12345678\][ ]*(#.*)? [ ]*[a-f0-9]+: 0f 62 0d 78 56 34 12 punpckldq mm1,DWORD PTR \[rip\+0x12345678\][ ]*(#.*)? [ ]*[a-f0-9]+: 0f 61 0d 78 56 34 12 punpcklwd mm1,DWORD PTR \[rip\+0x12345678\][ ]*(#.*)? +[ ]*[a-f0-9]+: 66 0f 60 0d 78 56 34 12 punpcklbw xmm1,XMMWORD PTR \[rip\+0x12345678\][ ]*(#.*)? +[ ]*[a-f0-9]+: 66 0f 62 0d 78 56 34 12 punpckldq xmm1,XMMWORD PTR \[rip\+0x12345678\][ ]*(#.*)? +[ ]*[a-f0-9]+: 66 0f 61 0d 78 56 34 12 punpcklwd xmm1,XMMWORD PTR \[rip\+0x12345678\][ ]*(#.*)? +[ ]*[a-f0-9]+: 66 0f 6c 0d 78 56 34 12 punpcklqdq xmm1,XMMWORD PTR \[rip\+0x12345678\][ ]*(#.*)? [ ]*[a-f0-9]+: 66 0f 2e 0d 78 56 34 12 ucomisd xmm1,QWORD PTR \[rip\+0x12345678\][ ]*(#.*)? [ ]*[a-f0-9]+: 0f 2e 0d 78 56 34 12 ucomiss xmm1,DWORD PTR \[rip\+0x12345678\][ ]*(#.*)? diff --git a/gas/testsuite/gas/i386/x86-64-simd.d b/gas/testsuite/gas/i386/x86-64-simd.d index f00b2c15ed8..460b4051402 100644 --- a/gas/testsuite/gas/i386/x86-64-simd.d +++ b/gas/testsuite/gas/i386/x86-64-simd.d @@ -32,5 +32,9 @@ Disassembly of section .text: [ ]*[a-f0-9]+: 0f 60 0d 78 56 34 12 punpcklbw 0x12345678\(%rip\),%mm1[ ]*(#.*)? [ ]*[a-f0-9]+: 0f 62 0d 78 56 34 12 punpckldq 0x12345678\(%rip\),%mm1[ ]*(#.*)? [ ]*[a-f0-9]+: 0f 61 0d 78 56 34 12 punpcklwd 0x12345678\(%rip\),%mm1[ ]*(#.*)? +[ ]*[a-f0-9]+: 66 0f 60 0d 78 56 34 12 punpcklbw 0x12345678\(%rip\),%xmm1[ ]*(#.*)? +[ ]*[a-f0-9]+: 66 0f 62 0d 78 56 34 12 punpckldq 0x12345678\(%rip\),%xmm1[ ]*(#.*)? +[ ]*[a-f0-9]+: 66 0f 61 0d 78 56 34 12 punpcklwd 0x12345678\(%rip\),%xmm1[ ]*(#.*)? +[ ]*[a-f0-9]+: 66 0f 6c 0d 78 56 34 12 punpcklqdq 0x12345678\(%rip\),%xmm1[ ]*(#.*)? [ ]*[a-f0-9]+: 66 0f 2e 0d 78 56 34 12 ucomisd 0x12345678\(%rip\),%xmm1[ ]*(#.*)? [ ]*[a-f0-9]+: 0f 2e 0d 78 56 34 12 ucomiss 0x12345678\(%rip\),%xmm1[ ]*(#.*)? diff --git a/gas/testsuite/gas/i386/x86-64-simd.s b/gas/testsuite/gas/i386/x86-64-simd.s index 579c1ecbeda..91c98b841e7 100644 --- a/gas/testsuite/gas/i386/x86-64-simd.s +++ b/gas/testsuite/gas/i386/x86-64-simd.s @@ -25,5 +25,9 @@ _start: punpcklbw 0x12345678(%rip),%mm1 punpckldq 0x12345678(%rip),%mm1 punpcklwd 0x12345678(%rip),%mm1 + punpcklbw 0x12345678(%rip),%xmm1 + punpckldq 0x12345678(%rip),%xmm1 + punpcklwd 0x12345678(%rip),%xmm1 + punpcklqdq 0x12345678(%rip),%xmm1 ucomisd 0x12345678(%rip),%xmm1 ucomiss 0x12345678(%rip),%xmm1 diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog index 35de03eae66..88261056c91 100644 --- a/opcodes/ChangeLog +++ b/opcodes/ChangeLog @@ -1,3 +1,9 @@ +2007-07-16 H.J. Lu + + * i386-dis.c (EMq): Removed. + (EMx): New. + (prefix_user_table): Replace EMq with EMx. + 2007-07-16 Nick Clifton * po/nl.po: Updated translation. diff --git a/opcodes/i386-dis.c b/opcodes/i386-dis.c index 3d6540127ba..29fec0f4734 100644 --- a/opcodes/i386-dis.c +++ b/opcodes/i386-dis.c @@ -309,7 +309,7 @@ fetch_data (struct disassemble_info *info, bfd_byte *addr) #define XM { OP_XMM, 0 } #define EM { OP_EM, v_mode } #define EMd { OP_EM, d_mode } -#define EMq { OP_EM, q_mode } +#define EMx { OP_EM, x_mode } #define EXd { OP_EX, d_mode } #define EXq { OP_EX, q_mode } #define EXx { OP_EX, x_mode } @@ -2568,7 +2568,7 @@ static const struct dis386 prefix_user_table[][4] = { { { "punpcklbw",{ MX, EMd } }, { "(bad)", { XX } }, - { "punpcklbw",{ MX, EMq } }, + { "punpcklbw",{ MX, EMx } }, { "(bad)", { XX } }, }, @@ -2576,7 +2576,7 @@ static const struct dis386 prefix_user_table[][4] = { { { "punpcklwd",{ MX, EMd } }, { "(bad)", { XX } }, - { "punpcklwd",{ MX, EMq } }, + { "punpcklwd",{ MX, EMx } }, { "(bad)", { XX } }, }, @@ -2584,7 +2584,7 @@ static const struct dis386 prefix_user_table[][4] = { { { "punpckldq",{ MX, EMd } }, { "(bad)", { XX } }, - { "punpckldq",{ MX, EMq } }, + { "punpckldq",{ MX, EMx } }, { "(bad)", { XX } }, }, };