1 # RUN: llvm-mc --disassemble --print-imm-hex %s -triple=i686-linux-gnu-code16 | FileCheck --check-prefix=16 %s 2 # RUN: llvm-mc --disassemble --print-imm-hex %s -triple=i686-linux-gnu | FileCheck --check-prefix=32 %s 3 # RUN: llvm-mc --disassemble --print-imm-hex %s -triple=x86_64-linux-gnu | FileCheck --check-prefix=64 %s 4 5 # 16: movb 0x5a5a, %al 6 # 32: movb 0x5a5a5a5a, %al 7 # 64: movabsb 0x5a5a5a5a5a5a5a5a, %al 8 0xa0 0x5a 0x5a 0x5a 0x5a 0x5a 0x5a 0x5a 0x5a 9 10 # 16: movb 0x5a5a5a5a, %al 11 # 32: movb 0x5a5a, %al 12 # 64: movabsb 0x5a5a5a5a, %al 13 0x67 0xa0 0x5a 0x5a 0x5a 0x5a 0x5a 0x5a 0x5a 0x5a 14 15 # 16: movw 0x5a5a, %ax 16 # 32: movl 0x5a5a5a5a, %eax 17 # 64: movabsl 0x5a5a5a5a5a5a5a5a, %eax 18 0xa1 0x5a 0x5a 0x5a 0x5a 0x5a 0x5a 0x5a 0x5a 19 20 # 16: movw 0x5a5a5a5a, %ax 21 # 32: movl 0x5a5a, %eax 22 # 64: movabsl 0x5a5a5a5a, %eax 23 0x67 0xa1 0x5a 0x5a 0x5a 0x5a 0x5a 0x5a 0x5a 0x5a 24 25 # 16: movl 0x5a5a, %eax 26 # 32: movw 0x5a5a5a5a, %ax 27 # 64: movabsw 0x5a5a5a5a5a5a5a5a, %ax 28 0x66 0xa1 0x5a 0x5a 0x5a 0x5a 0x5a 0x5a 0x5a 0x5a 29 30 # 16: movl 0x5a5a5a5a, %eax 31 # 32: movw 0x5a5a, %ax 32 # 64: movabsw 0x5a5a5a5a, %ax 33 0x66 0x67 0xa1 0x5a 0x5a 0x5a 0x5a 0x5a 0x5a 0x5a 0x5a 34 35 # 16: movl 0x5a5a5a5a, %eax 36 # 32: movw 0x5a5a, %ax 37 # 64: movabsw 0x5a5a5a5a, %ax 38 0x67 0x66 0xa1 0x5a 0x5a 0x5a 0x5a 0x5a 0x5a 0x5a 0x5a 39 40 # 16: movl %es:0x5a5a5a5a, %eax 41 # 32: movw %es:0x5a5a, %ax 42 # 64: movabsw %es:0x5a5a5a5a, %ax 43 0x67 0x26 0x66 0xa1 0x5a 0x5a 0x5a 0x5a 0x5a 0x5a 0x5a 0x5a 44 45 46 47 # 16: movb %al, 0x5a5a 48 # 32: movb %al, 0x5a5a5a5a 49 # 64: movabsb %al, 0x5a5a5a5a5a5a5a5a 50 0xa2 0x5a 0x5a 0x5a 0x5a 0x5a 0x5a 0x5a 0x5a 51 52 # 16: movb %al, 0x5a5a5a5a 53 # 32: movb %al, 0x5a5a 54 # 64: movabsb %al, 0x5a5a5a5a 55 0x67 0xa2 0x5a 0x5a 0x5a 0x5a 0x5a 0x5a 0x5a 0x5a 56 57 # 16: movw %ax, 0x5a5a 58 # 32: movl %eax, 0x5a5a5a5a 59 # 64: movabsl %eax, 0x5a5a5a5a5a5a5a5a 60 0xa3 0x5a 0x5a 0x5a 0x5a 0x5a 0x5a 0x5a 0x5a 61 62 # 16: movw %ax, %gs:0x5a5a5a5a 63 # 32: movl %eax, %gs:0x5a5a 64 # 64: movabsl %eax, %gs:0x5a5a5a5a 65 0x65 0x67 0xa3 0x5a 0x5a 0x5a 0x5a 0x5a 0x5a 0x5a 0x5a 66 67 # 16: movl %eax, 0x5a5a 68 # 32: movw %ax, 0x5a5a5a5a 69 # 64: movabsw %ax, 0x5a5a5a5a5a5a5a5a 70 0x66 0xa3 0x5a 0x5a 0x5a 0x5a 0x5a 0x5a 0x5a 0x5a 71 72 # 16: movl %eax, 0x5a5a5a5a 73 # 32: movw %ax, 0x5a5a 74 # 64: movabsw %ax, 0x5a5a5a5a 75 0x66 0x67 0xa3 0x5a 0x5a 0x5a 0x5a 0x5a 0x5a 0x5a 0x5a 76 77 # 16: movl %eax, 0x5a5a5a5a 78 # 32: movw %ax, 0x5a5a 79 # 64: movabsw %ax, 0x5a5a5a5a 80 0x67 0x66 0xa3 0x5a 0x5a 0x5a 0x5a 0x5a 0x5a 0x5a 0x5a 81 82 # 16: movl %eax, %es:0x5a5a5a5a 83 # 32: movw %ax, %es:0x5a5a 84 # 64: movabsw %ax, %es:0x5a5a5a5a 85 0x67 0x26 0x66 0xa3 0x5a 0x5a 0x5a 0x5a 0x5a 0x5a 0x5a 0x5a 86 87