From f48ff2ae3d74966f635449f9a69e374ed8da3da2 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Wed, 13 Dec 2006 18:00:00 +0000 Subject: gas/ 2006-12-13 H.J. Lu 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 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. --- gas/testsuite/ChangeLog | 9 +++++++++ gas/testsuite/gas/i386/inval.l | 2 ++ gas/testsuite/gas/i386/inval.s | 1 + gas/testsuite/gas/i386/x86-64-inval.l | 2 ++ gas/testsuite/gas/i386/x86-64-inval.s | 1 + 5 files changed, 15 insertions(+) (limited to 'gas/testsuite') 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 + + 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 * 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. -- cgit v1.1