diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2006-12-13 18:00:00 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2006-12-13 18:00:00 +0000 |
commit | f48ff2ae3d74966f635449f9a69e374ed8da3da2 (patch) | |
tree | 79506b702d6f870265f288cf26261d3ed40fe8b8 /gas/testsuite | |
parent | 906156c429ff3edc3034c232da93a0393a366aa8 (diff) | |
download | gdb-f48ff2ae3d74966f635449f9a69e374ed8da3da2.zip gdb-f48ff2ae3d74966f635449f9a69e374ed8da3da2.tar.gz gdb-f48ff2ae3d74966f635449f9a69e374ed8da3da2.tar.bz2 |
gas/
2006-12-13 H.J. Lu <hongjiu.lu@intel.com>
PR gas/3712
* config/tc-i386.c (match_template): Use MAX_OPERANDS for the
number of operands. Issue an error if MAX_OPERANDS != 4. Add
the 4th operand check.
gas/testsuite/
2006-12-13 H.J. Lu <hongjiu.lu@intel.com>
PR gas/3712
* gas/i386/inval.s: Add invalid insertq.
* gas/i386/x86-64-inval.s: Likewise.
* gas/i386/inval.l: Updated.
* gas/i386/x86-64-inval.l: Likewise.
Diffstat (limited to 'gas/testsuite')
-rw-r--r-- | gas/testsuite/ChangeLog | 9 | ||||
-rw-r--r-- | gas/testsuite/gas/i386/inval.l | 2 | ||||
-rw-r--r-- | gas/testsuite/gas/i386/inval.s | 1 | ||||
-rw-r--r-- | gas/testsuite/gas/i386/x86-64-inval.l | 2 | ||||
-rw-r--r-- | gas/testsuite/gas/i386/x86-64-inval.s | 1 |
5 files changed, 15 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index fb37d77..4e8b4ff 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,12 @@ +2006-12-13 H.J. Lu <hongjiu.lu@intel.com> + + PR gas/3712 + * gas/i386/inval.s: Add invalid insertq. + * gas/i386/x86-64-inval.s: Likewise. + + * gas/i386/inval.l: Updated. + * gas/i386/x86-64-inval.l: Likewise. + 2006-12-08 Christian Groessler <chris@groessler.org> * gas/z8k/reglabel.d: New test. diff --git a/gas/testsuite/gas/i386/inval.l b/gas/testsuite/gas/i386/inval.l index 9f32368..8abcbde 100644 --- a/gas/testsuite/gas/i386/inval.l +++ b/gas/testsuite/gas/i386/inval.l @@ -46,6 +46,7 @@ .*:47: Error: .* .*:48: Error: .* .*:49: Error: .* +.*:50: Error: .* GAS LISTING .* @@ -98,3 +99,4 @@ GAS LISTING .* 47 [ ]* fcompll 28\(%ebp\) 48 [ ]* fldlw \(%eax\) 49 [ ]* movl \$%ebx,%eax + 50 [ ]* insertq \$4,\$2,%xmm2,%ebx diff --git a/gas/testsuite/gas/i386/inval.s b/gas/testsuite/gas/i386/inval.s index 1571a2f..5b440ed 100644 --- a/gas/testsuite/gas/i386/inval.s +++ b/gas/testsuite/gas/i386/inval.s @@ -47,3 +47,4 @@ foo: jaw foo fcompll 28(%ebp) fldlw (%eax) movl $%ebx,%eax + insertq $4,$2,%xmm2,%ebx diff --git a/gas/testsuite/gas/i386/x86-64-inval.l b/gas/testsuite/gas/i386/x86-64-inval.l index aa080cb..2e45b46 100644 --- a/gas/testsuite/gas/i386/x86-64-inval.l +++ b/gas/testsuite/gas/i386/x86-64-inval.l @@ -48,6 +48,7 @@ .*:49: Error: .* .*:50: Error: .* .*:51: Error: .* +.*:52: Error: .* GAS LISTING .* @@ -102,3 +103,4 @@ GAS LISTING .* 49 [ ]*pushfl # can't have 32-bit stack operands 50 [ ]*popfl # can't have 32-bit stack operands 51 [ ]*retl # can't have 32-bit stack operands + 52 [ ]*insertq \$4,\$2,%xmm2,%ebx # The last operand must be XMM register. diff --git a/gas/testsuite/gas/i386/x86-64-inval.s b/gas/testsuite/gas/i386/x86-64-inval.s index b069a28..68f4cb5 100644 --- a/gas/testsuite/gas/i386/x86-64-inval.s +++ b/gas/testsuite/gas/i386/x86-64-inval.s @@ -49,3 +49,4 @@ foo: jcxz foo # No prefix exists to select CX as a counter pushfl # can't have 32-bit stack operands popfl # can't have 32-bit stack operands retl # can't have 32-bit stack operands + insertq $4,$2,%xmm2,%ebx # The last operand must be XMM register. |