diff options
author | H.J. Lu <hjl@lucon.org> | 2006-12-13 18:00:00 +0000 |
---|---|---|
committer | H.J. Lu <hjl@lucon.org> | 2006-12-13 18:00:00 +0000 |
commit | 25a174488b17fd75dfb94135834cc9f174e451bd (patch) | |
tree | b0889944bd21b80c14fa392a61854bd977a88339 /gas/testsuite | |
parent | 4628104a8b68d6e6afd778c25ccf0194f101c91a (diff) | |
download | binutils-redhat-25a174488b17fd75dfb94135834cc9f174e451bd.tar.gz |
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 fb37d77b45..4e8b4ff900 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 9f32368b7e..8abcbde95a 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 1571a2f4fa..5b440ed0b5 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 aa080cba46..2e45b4674c 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 b069a282e5..68f4cb5ed0 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. |