diff options
author | Dan Gohman <gohman@apple.com> | 2010-05-20 16:16:00 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-05-20 16:16:00 +0000 |
commit | e5e4ff974df52aa870085904b6670c4d22ada0ac (patch) | |
tree | ebb96ecea81cbe36f1c49c0640efbd36dcdcd873 /test/MC | |
parent | 100804f494a4e17f588a1c62f5bb1eee4a67c8a9 (diff) | |
download | llvm-e5e4ff974df52aa870085904b6670c4d22ada0ac.tar.gz llvm-e5e4ff974df52aa870085904b6670c4d22ada0ac.tar.bz2 llvm-e5e4ff974df52aa870085904b6670c4d22ada0ac.tar.xz |
Fix assembly parsing and encoding of the pushf and popf family of
instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@104231 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC')
-rw-r--r-- | test/MC/AsmParser/X86/x86_32-bit_cat.s | 12 | ||||
-rw-r--r-- | test/MC/AsmParser/X86/x86_32-new-encoder.s | 9 | ||||
-rw-r--r-- | test/MC/AsmParser/X86/x86_64-new-encoder.s | 8 |
3 files changed, 29 insertions, 0 deletions
diff --git a/test/MC/AsmParser/X86/x86_32-bit_cat.s b/test/MC/AsmParser/X86/x86_32-bit_cat.s index c1efe293c0..9002c60488 100644 --- a/test/MC/AsmParser/X86/x86_32-bit_cat.s +++ b/test/MC/AsmParser/X86/x86_32-bit_cat.s @@ -163,6 +163,18 @@ // CHECK: popw 32493 popw 0x7eed +// CHECK: pushf + pushfl + +// CHECK: pushfl + pushfl + +// CHECK: popf + popfl + +// CHECK: popfl + popfl + // CHECK: clc clc diff --git a/test/MC/AsmParser/X86/x86_32-new-encoder.s b/test/MC/AsmParser/X86/x86_32-new-encoder.s index 6c08776167..1c02f8823a 100644 --- a/test/MC/AsmParser/X86/x86_32-new-encoder.s +++ b/test/MC/AsmParser/X86/x86_32-new-encoder.s @@ -75,3 +75,12 @@ int $4 int $255 // CHECK: int $255 // CHECK: encoding: [0xcd,0xff] + +// CHECK: pushfl # encoding: [0x9c] + pushf +// CHECK: pushfl # encoding: [0x9c] + pushfl +// CHECK: popfl # encoding: [0x9d] + popf +// CHECK: popfl # encoding: [0x9d] + popfl diff --git a/test/MC/AsmParser/X86/x86_64-new-encoder.s b/test/MC/AsmParser/X86/x86_64-new-encoder.s index f119eaa210..bc8ad21ba7 100644 --- a/test/MC/AsmParser/X86/x86_64-new-encoder.s +++ b/test/MC/AsmParser/X86/x86_64-new-encoder.s @@ -76,3 +76,11 @@ movb 0, %al // CHECK: movb 0, %al # encoding: [0x8a,0x04,0x25,A,A,A,A] movw 0, %ax // CHECK: movw 0, %ax # encoding: [0x66,0x8b,0x04,0x25,A,A,A,A] movl 0, %eax // CHECK: movl 0, %eax # encoding: [0x8b,0x04,0x25,A,A,A,A] +// CHECK: pushfq # encoding: [0x9c] + pushf +// CHECK: pushfq # encoding: [0x9c] + pushfq +// CHECK: popfq # encoding: [0x9d] + popf +// CHECK: popfq # encoding: [0x9d] + popfq |