1 # RUN: llvm-mc --disassemble %s -triple=x86_64 | FileCheck %s
4 # CHECK-NEXT: orl $16, %fs:776
5 0xf0 0x64 0x83 0x0c 0x25 0x08 0x03 0x00 0x00 0x10
7 # CHECK: movq %fs:768, %rdi
8 0x64 0x48 0x8b 0x3c 0x25 0x00 0x03 0x00 0x00
18 # CHECK: movl 32(%rbp), %eax
21 # CHECK: movl %es:32(%rbp), %eax
24 # CHECK: movl %es:32(%rbp), %eax
25 0x2e 0x26 0x8b 0x45 0x20
27 # Test that multiple prefixes stack.
28 # (todo- the correct disassembly is actually more like "es movl %cs:32(%rbp), %eax"
29 # but we don't support that)
30 # CHECK: movl %cs:32(%rbp), %eax
31 0x26 0x2e 0x8b 0x45 0x20
33 # Test that 0xf3 as part of the opcode works.
34 # CHECK: cvtdq2pd (%rax), %xmm0
47 # Test that multiple redundant prefixes work (redundant, but valid x86).
53 # Test that a prefix on it's own works. It's debatable as to if this is
54 # something that is considered valid, but however as LLVM's own disassembler
55 # has decided to disassemble prefixes as being separate opcodes, it therefore
56 # should be capable of re-consuming it's own output.
59 # ***IMPORTANT ^-- this must be at the end of the file to be a valid test ***