From c602b726a86072898d548da3c46128905c633d1a Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Wed, 31 Dec 2014 07:24:23 +0000 Subject: [PATCH] [X86] Update disassembler tests for absolute move instructions to check the encodings. This provides testing for r225036. 64-bit mode is still broken. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@225037 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/MC/Disassembler/X86/moffs.txt | 74 +++++++++++++++--------------- 1 file changed, 37 insertions(+), 37 deletions(-) diff --git a/test/MC/Disassembler/X86/moffs.txt b/test/MC/Disassembler/X86/moffs.txt index dd2664cb773..d9b7f185d6e 100644 --- a/test/MC/Disassembler/X86/moffs.txt +++ b/test/MC/Disassembler/X86/moffs.txt @@ -1,86 +1,86 @@ -# RUN: llvm-mc --disassemble --print-imm-hex %s -triple=i686-linux-gnu-code16 | FileCheck --check-prefix=16 %s -# RUN: llvm-mc --disassemble --print-imm-hex %s -triple=i686-linux-gnu | FileCheck --check-prefix=32 %s -# RUN: llvm-mc --disassemble --print-imm-hex %s -triple=x86_64-linux-gnu | FileCheck --check-prefix=64 %s +# RUN: llvm-mc --disassemble --show-encoding --print-imm-hex %s -triple=i686-linux-gnu-code16 | FileCheck --check-prefix=16 %s +# RUN: llvm-mc --disassemble --show-encoding --print-imm-hex %s -triple=i686-linux-gnu | FileCheck --check-prefix=32 %s +# RUN: llvm-mc --disassemble --show-encoding --print-imm-hex %s -triple=x86_64-linux-gnu | FileCheck --check-prefix=64 %s -# 16: movb 0x5a5a, %al -# 32: movb 0x5a5a5a5a, %al +# 16: movb 0x5a5a, %al # encoding: [0xa0,0x5a,0x5a] +# 32: movb 0x5a5a5a5a, %al # encoding: [0xa0,0x5a,0x5a,0x5a,0x5a] # 64: movabsb 0x5a5a5a5a5a5a5a5a, %al 0xa0 0x5a 0x5a 0x5a 0x5a 0x5a 0x5a 0x5a 0x5a -# 16: movb 0x5a5a5a5a, %al -# 32: movb 0x5a5a, %al +# 16: movb 0x5a5a5a5a, %al # encoding: [0x67,0xa0,0x5a,0x5a,0x5a,0x5a] +# 32: movb 0x5a5a, %al # encoding: [0x67,0xa0,0x5a,0x5a] # 64: movabsb 0x5a5a5a5a, %al 0x67 0xa0 0x5a 0x5a 0x5a 0x5a 0x5a 0x5a 0x5a 0x5a -# 16: movw 0x5a5a, %ax -# 32: movl 0x5a5a5a5a, %eax +# 16: movw 0x5a5a, %ax # encoding: [0xa1,0x5a,0x5a] +# 32: movl 0x5a5a5a5a, %eax # encoding: [0xa1,0x5a,0x5a,0x5a,0x5a] # 64: movabsl 0x5a5a5a5a5a5a5a5a, %eax 0xa1 0x5a 0x5a 0x5a 0x5a 0x5a 0x5a 0x5a 0x5a -# 16: movw 0x5a5a5a5a, %ax -# 32: movl 0x5a5a, %eax +# 16: movw 0x5a5a5a5a, %ax # encoding: [0x67,0xa1,0x5a,0x5a,0x5a,0x5a] +# 32: movl 0x5a5a, %eax # encoding: [0x67,0xa1,0x5a,0x5a] # 64: movabsl 0x5a5a5a5a, %eax 0x67 0xa1 0x5a 0x5a 0x5a 0x5a 0x5a 0x5a 0x5a 0x5a -# 16: movl 0x5a5a, %eax -# 32: movw 0x5a5a5a5a, %ax +# 16: movl 0x5a5a, %eax # encoding: [0x66,0xa1,0x5a,0x5a] +# 32: movw 0x5a5a5a5a, %ax # encoding: [0x66,0xa1,0x5a,0x5a,0x5a,0x5a] # 64: movabsw 0x5a5a5a5a5a5a5a5a, %ax 0x66 0xa1 0x5a 0x5a 0x5a 0x5a 0x5a 0x5a 0x5a 0x5a -# 16: movl 0x5a5a5a5a, %eax -# 32: movw 0x5a5a, %ax +# 16: movl 0x5a5a5a5a, %eax # encoding: [0x67,0x66,0xa1,0x5a,0x5a,0x5a,0x5a] +# 32: movw 0x5a5a, %ax # encoding: [0x67,0x66,0xa1,0x5a,0x5a] # 64: movabsw 0x5a5a5a5a, %ax 0x66 0x67 0xa1 0x5a 0x5a 0x5a 0x5a 0x5a 0x5a 0x5a 0x5a -# 16: movl 0x5a5a5a5a, %eax -# 32: movw 0x5a5a, %ax +# 16: movl 0x5a5a5a5a, %eax # encoding: [0x67,0x66,0xa1,0x5a,0x5a,0x5a,0x5a] +# 32: movw 0x5a5a, %ax # encoding: [0x67,0x66,0xa1,0x5a,0x5a] # 64: movabsw 0x5a5a5a5a, %ax 0x67 0x66 0xa1 0x5a 0x5a 0x5a 0x5a 0x5a 0x5a 0x5a 0x5a -# 16: movl %es:0x5a5a5a5a, %eax -# 32: movw %es:0x5a5a, %ax +# 16: movl %es:0x5a5a5a5a, %eax # encoding: [0x67,0x66,0x26,0xa1,0x5a,0x5a,0x5a,0x5a] +# 32: movw %es:0x5a5a, %ax # encoding: [0x67,0x66,0x26,0xa1,0x5a,0x5a] # 64: movabsw %es:0x5a5a5a5a, %ax -0x67 0x26 0x66 0xa1 0x5a 0x5a 0x5a 0x5a 0x5a 0x5a 0x5a 0x5a +0x67 0x26 0x66 0xa1 0x5a 0x5a 0x5a 0x5a 0x5a 0x5a 0x5a 0x5a # encoding: [0xa0,0x5a,0x5a] -# 16: movb %al, 0x5a5a -# 32: movb %al, 0x5a5a5a5a +# 16: movb %al, 0x5a5a # encoding: [0xa2,0x5a,0x5a] +# 32: movb %al, 0x5a5a5a5a # encoding: [0xa2,0x5a,0x5a,0x5a,0x5a] # 64: movabsb %al, 0x5a5a5a5a5a5a5a5a -0xa2 0x5a 0x5a 0x5a 0x5a 0x5a 0x5a 0x5a 0x5a +0xa2 0x5a 0x5a 0x5a 0x5a 0x5a 0x5a 0x5a 0x5a # encoding: [0xa0,0x5a,0x5a] -# 16: movb %al, 0x5a5a5a5a -# 32: movb %al, 0x5a5a +# 16: movb %al, 0x5a5a5a5a # encoding: [0x67,0xa2,0x5a,0x5a,0x5a,0x5a] +# 32: movb %al, 0x5a5a # encoding: [0x67,0xa2,0x5a,0x5a] # 64: movabsb %al, 0x5a5a5a5a 0x67 0xa2 0x5a 0x5a 0x5a 0x5a 0x5a 0x5a 0x5a 0x5a -# 16: movw %ax, 0x5a5a -# 32: movl %eax, 0x5a5a5a5a +# 16: movw %ax, 0x5a5a # encoding: [0xa3,0x5a,0x5a] +# 32: movl %eax, 0x5a5a5a5a # encoding: [0xa3,0x5a,0x5a,0x5a,0x5a] # 64: movabsl %eax, 0x5a5a5a5a5a5a5a5a 0xa3 0x5a 0x5a 0x5a 0x5a 0x5a 0x5a 0x5a 0x5a -# 16: movw %ax, %gs:0x5a5a5a5a -# 32: movl %eax, %gs:0x5a5a +# 16: movw %ax, %gs:0x5a5a5a5a # encoding: [0x67,0x65,0xa3,0x5a,0x5a,0x5a,0x5a] +# 32: movl %eax, %gs:0x5a5a # encoding: [0x67,0x65,0xa3,0x5a,0x5a] # 64: movabsl %eax, %gs:0x5a5a5a5a 0x65 0x67 0xa3 0x5a 0x5a 0x5a 0x5a 0x5a 0x5a 0x5a 0x5a -# 16: movl %eax, 0x5a5a -# 32: movw %ax, 0x5a5a5a5a +# 16: movl %eax, 0x5a5a # encoding: [0x66,0xa3,0x5a,0x5a] +# 32: movw %ax, 0x5a5a5a5a # encoding: [0x66,0xa3,0x5a,0x5a,0x5a,0x5a] # 64: movabsw %ax, 0x5a5a5a5a5a5a5a5a 0x66 0xa3 0x5a 0x5a 0x5a 0x5a 0x5a 0x5a 0x5a 0x5a -# 16: movl %eax, 0x5a5a5a5a -# 32: movw %ax, 0x5a5a +# 16: movl %eax, 0x5a5a5a5a # encoding: [0x67,0x66,0xa3,0x5a,0x5a,0x5a,0x5a] +# 32: movw %ax, 0x5a5a # encoding: [0x67,0x66,0xa3,0x5a,0x5a] # 64: movabsw %ax, 0x5a5a5a5a 0x66 0x67 0xa3 0x5a 0x5a 0x5a 0x5a 0x5a 0x5a 0x5a 0x5a -# 16: movl %eax, 0x5a5a5a5a -# 32: movw %ax, 0x5a5a +# 16: movl %eax, 0x5a5a5a5a # encoding: [0x67,0x66,0xa3,0x5a,0x5a,0x5a,0x5a] +# 32: movw %ax, 0x5a5a # encoding: [0x67,0x66,0xa3,0x5a,0x5a] # 64: movabsw %ax, 0x5a5a5a5a 0x67 0x66 0xa3 0x5a 0x5a 0x5a 0x5a 0x5a 0x5a 0x5a 0x5a -# 16: movl %eax, %es:0x5a5a5a5a -# 32: movw %ax, %es:0x5a5a +# 16: movl %eax, %es:0x5a5a5a5a # encoding: [0x67,0x66,0x26,0xa3,0x5a,0x5a,0x5a,0x5a] +# 32: movw %ax, %es:0x5a5a # encoding: [0x67,0x66,0x26,0xa3,0x5a,0x5a] # 64: movabsw %ax, %es:0x5a5a5a5a 0x67 0x26 0x66 0xa3 0x5a 0x5a 0x5a 0x5a 0x5a 0x5a 0x5a 0x5a