aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2004-07-22 10:45:40 +0000
committerNick Clifton <nickc@redhat.com>2004-07-22 10:45:40 +0000
commit526355d21789871e2fb5f86b3b9086776e8e6195 (patch)
treed2de2a54f5964e0d4e5306c9c9958c535f19a310 /gas
parent4a1135b80857f75e83de84501e79f9ed03ace36c (diff)
downloadgdb-526355d21789871e2fb5f86b3b9086776e8e6195.zip
gdb-526355d21789871e2fb5f86b3b9086776e8e6195.tar.gz
gdb-526355d21789871e2fb5f86b3b9086776e8e6195.tar.bz2
oops - omitted from previous delta
Diffstat (limited to 'gas')
-rw-r--r--gas/testsuite/gas/i386/x86-64-inval.s39
1 files changed, 39 insertions, 0 deletions
diff --git a/gas/testsuite/gas/i386/x86-64-inval.s b/gas/testsuite/gas/i386/x86-64-inval.s
index be532d5..7ceb9f1 100644
--- a/gas/testsuite/gas/i386/x86-64-inval.s
+++ b/gas/testsuite/gas/i386/x86-64-inval.s
@@ -1,5 +1,11 @@
.text
# All the following should be illegal for x86-64
+ aaa # illegal
+ aad # illegal
+ aam # illegal
+ aas # illegal
+ arpl %ax,%ax # illegal
+ bound %eax,(%rax) # illegal
calll *%eax # 32-bit data size not allowed
calll *(%ax) # 32-bit data size not allowed
calll *(%eax) # 32-bit data size not allowed
@@ -7,8 +13,41 @@
calll *(%rax) # 32-bit data size not allowed
callq *(%ax) # 32-bit data size not allowed
callw *(%ax) # no 16-bit addressing
+ daa # illegal
+ das # illegal
+ enterl $0,$0 # can't have 32-bit stack operands
+ into # illegal
foo: jcxz foo # No prefix exists to select CX as a counter
+ jmpl *%eax # 32-bit data size not allowed
+ jmpl *(%rax) # 32-bit data size not allowed
+ lahf # illegal
+ lcalll $0,$0 # illegal
+ lcallq $0,$0 # illegal
+ ldsl %eax,(%rax) # illegal
+ ldsq %rax,(%rax) # illegal
+ lesl %eax,(%rax) # illegal
+ lesq %rax,(%rax) # illegal
+ ljmpl $0,$0 # illegal
+ ljmpq $0,$0 # illegal
+ ljmpq *(%rax) # 64-bit data size not allowed
+ loopw foo # No prefix exists to select CX as a counter
+ loopew foo # No prefix exists to select CX as a counter
+ loopnew foo # No prefix exists to select CX as a counter
+ loopnzw foo # No prefix exists to select CX as a counter
+ loopzw foo # No prefix exists to select CX as a counter
+ leavel # can't have 32-bit stack operands
+ pop %ds # illegal
+ pop %es # illegal
+ pop %ss # illegal
+ popa # illegal
popl %eax # can't have 32-bit stack operands
+ push %cs # illegal
+ push %ds # illegal
+ push %es # illegal
+ push %ss # illegal
+ pusha # illegal
pushl %eax # can't have 32-bit stack operands
pushfl # can't have 32-bit stack operands
popfl # can't have 32-bit stack operands
+ retl # can't have 32-bit stack operands
+ sahf # illegal