diff options
author | Craig Topper <craig.topper@gmail.com> | 2013-07-31 02:47:52 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2013-07-31 02:47:52 +0000 |
commit | 418eb3df746816293dd013b82264f43e501ec093 (patch) | |
tree | bcd56d26a9b070ddda19c1a53d5e6c1f67ecb5e2 /test | |
parent | d832d32f57bc6d2bebf60e0befebc955d84aae12 (diff) | |
download | llvm-418eb3df746816293dd013b82264f43e501ec093.tar.gz llvm-418eb3df746816293dd013b82264f43e501ec093.tar.bz2 llvm-418eb3df746816293dd013b82264f43e501ec093.tar.xz |
Changed register names (and pointer keywords) to be lower case when using Intel X86 assembler syntax.
Patch by Richard Mitton.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187476 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/CodeGen/X86/fast-cc-merge-stack-adj.ll | 2 | ||||
-rw-r--r-- | test/CodeGen/X86/fast-cc-pass-in-regs.ll | 8 | ||||
-rw-r--r-- | test/CodeGen/X86/fp_constant_op.ll | 12 | ||||
-rw-r--r-- | test/CodeGen/X86/lea-2.ll | 2 | ||||
-rw-r--r-- | test/CodeGen/X86/shift-coalesce.ll | 4 | ||||
-rw-r--r-- | test/CodeGen/X86/store_op_load_fold2.ll | 8 | ||||
-rw-r--r-- | test/MC/Disassembler/X86/intel-syntax.txt | 52 |
7 files changed, 44 insertions, 44 deletions
diff --git a/test/CodeGen/X86/fast-cc-merge-stack-adj.ll b/test/CodeGen/X86/fast-cc-merge-stack-adj.ll index 5121ed1322..d9cfaa4c26 100644 --- a/test/CodeGen/X86/fast-cc-merge-stack-adj.ll +++ b/test/CodeGen/X86/fast-cc-merge-stack-adj.ll @@ -1,5 +1,5 @@ ; RUN: llc < %s -mcpu=generic -march=x86 -x86-asm-syntax=intel | FileCheck %s -; CHECK: add ESP, 8 +; CHECK: add esp, 8 target triple = "i686-pc-linux-gnu" diff --git a/test/CodeGen/X86/fast-cc-pass-in-regs.ll b/test/CodeGen/X86/fast-cc-pass-in-regs.ll index b60b68bd38..ac898e69df 100644 --- a/test/CodeGen/X86/fast-cc-pass-in-regs.ll +++ b/test/CodeGen/X86/fast-cc-pass-in-regs.ll @@ -5,25 +5,25 @@ declare x86_fastcallcc i64 @callee(i64 inreg) define i64 @caller() { %X = call x86_fastcallcc i64 @callee( i64 4294967299 ) ; <i64> [#uses=1] -; CHECK: mov{{.*}}EDX, 1 +; CHECK: mov{{.*}}edx, 1 ret i64 %X } define x86_fastcallcc i64 @caller2(i64 inreg %X) { ret i64 %X -; CHECK: mov{{.*}}EAX, ECX +; CHECK: mov{{.*}}eax, ecx } declare x86_thiscallcc i64 @callee2(i32) define i64 @caller3() { %X = call x86_thiscallcc i64 @callee2( i32 3 ) -; CHECK: mov{{.*}}ECX, 3 +; CHECK: mov{{.*}}ecx, 3 ret i64 %X } define x86_thiscallcc i32 @caller4(i32 %X) { ret i32 %X -; CHECK: mov{{.*}}EAX, ECX +; CHECK: mov{{.*}}eax, ecx } diff --git a/test/CodeGen/X86/fp_constant_op.ll b/test/CodeGen/X86/fp_constant_op.ll index 3cd32e606b..9a1337ab6c 100644 --- a/test/CodeGen/X86/fp_constant_op.ll +++ b/test/CodeGen/X86/fp_constant_op.ll @@ -7,40 +7,40 @@ define double @foo_add(double %P) { ret double %tmp.1 } ; CHECK-LABEL: foo_add: -; CHECK: fadd DWORD PTR +; CHECK: fadd dword ptr define double @foo_mul(double %P) { %tmp.1 = fmul double %P, 1.230000e+02 ; <double> [#uses=1] ret double %tmp.1 } ; CHECK-LABEL: foo_mul: -; CHECK: fmul DWORD PTR +; CHECK: fmul dword ptr define double @foo_sub(double %P) { %tmp.1 = fsub double %P, 1.230000e+02 ; <double> [#uses=1] ret double %tmp.1 } ; CHECK-LABEL: foo_sub: -; CHECK: fadd DWORD PTR +; CHECK: fadd dword ptr define double @foo_subr(double %P) { %tmp.1 = fsub double 1.230000e+02, %P ; <double> [#uses=1] ret double %tmp.1 } ; CHECK-LABEL: foo_subr: -; CHECK: fsub QWORD PTR +; CHECK: fsub qword ptr define double @foo_div(double %P) { %tmp.1 = fdiv double %P, 1.230000e+02 ; <double> [#uses=1] ret double %tmp.1 } ; CHECK-LABEL: foo_div: -; CHECK: fdiv DWORD PTR +; CHECK: fdiv dword ptr define double @foo_divr(double %P) { %tmp.1 = fdiv double 1.230000e+02, %P ; <double> [#uses=1] ret double %tmp.1 } ; CHECK-LABEL: foo_divr: -; CHECK: fdiv QWORD PTR +; CHECK: fdiv qword ptr diff --git a/test/CodeGen/X86/lea-2.ll b/test/CodeGen/X86/lea-2.ll index 21128096e6..82cefb728c 100644 --- a/test/CodeGen/X86/lea-2.ll +++ b/test/CodeGen/X86/lea-2.ll @@ -7,7 +7,7 @@ define i32 @test1(i32 %A, i32 %B) { ; The above computation of %tmp4 should match a single lea, without using ; actual add instructions. ; CHECK-NOT: add -; CHECK: lea {{[A-Z]+}}, DWORD PTR [{{[A-Z]+}} + 4*{{[A-Z]+}} - 5] +; CHECK: lea {{[a-z]+}}, dword ptr [{{[a-z]+}} + 4*{{[a-z]+}} - 5] ret i32 %tmp4 } diff --git a/test/CodeGen/X86/shift-coalesce.ll b/test/CodeGen/X86/shift-coalesce.ll index 4f27e97fb3..5241042d0c 100644 --- a/test/CodeGen/X86/shift-coalesce.ll +++ b/test/CodeGen/X86/shift-coalesce.ll @@ -1,7 +1,7 @@ ; RUN: llc < %s -march=x86 -x86-asm-syntax=intel | \ -; RUN: grep "shld.*CL" +; RUN: grep "shld.*cl" ; RUN: llc < %s -march=x86 -x86-asm-syntax=intel | \ -; RUN: not grep "mov CL, BL" +; RUN: not grep "mov cl, bl" ; PR687 diff --git a/test/CodeGen/X86/store_op_load_fold2.ll b/test/CodeGen/X86/store_op_load_fold2.ll index 6e4fe90053..705fdcdc13 100644 --- a/test/CodeGen/X86/store_op_load_fold2.ll +++ b/test/CodeGen/X86/store_op_load_fold2.ll @@ -17,10 +17,10 @@ cond_true2732.preheader: ; preds = %entry store i64 %tmp2676.us.us, i64* %tmp2666 ret i32 0 -; INTEL: and {{E..}}, DWORD PTR [360] -; INTEL: and DWORD PTR [356], {{E..}} -; FIXME: mov DWORD PTR [360], {{E..}} -; The above line comes out as 'mov 360, EAX', but when the register is ECX it works? +; INTEL: and {{e..}}, dword ptr [360] +; INTEL: and dword ptr [356], {{e..}} +; FIXME: mov dword ptr [360], {{e..}} +; The above line comes out as 'mov 360, eax', but when the register is ecx it works? ; ATT: andl 360, %{{e..}} ; ATT: andl %{{e..}}, 356 diff --git a/test/MC/Disassembler/X86/intel-syntax.txt b/test/MC/Disassembler/X86/intel-syntax.txt index 57e602f150..6c0c239fb8 100644 --- a/test/MC/Disassembler/X86/intel-syntax.txt +++ b/test/MC/Disassembler/X86/intel-syntax.txt @@ -12,70 +12,70 @@ # CHECK: movsq 0x48 0xa5 -# CHECK: pop FS +# CHECK: pop fs 0x0f 0xa1 -# CHECK: pop GS +# CHECK: pop gs 0x0f 0xa9 -# CHECK: in AL, DX +# CHECK: in al, dx 0xec # CHECK: nop 0x90 -# CHECK: xchg EAX, R8D +# CHECK: xchg eax, r8d 0x41 0x90 -# CHECK: xchg RAX, R8 +# CHECK: xchg rax, r8 0x49 0x90 -# CHECK: add AL, 0 +# CHECK: add al, 0 0x04 0x00 -# CHECK: add AX, 0 +# CHECK: add ax, 0 0x66 0x05 0x00 0x00 -# CHECK: add EAX, 0 +# CHECK: add eax, 0 0x05 0x00 0x00 0x00 0x00 -# CHECK: add RAX, 0 +# CHECK: add rax, 0 0x48 0x05 0x00 0x00 0x00 0x00 -# CHECK: adc AL, 0 +# CHECK: adc al, 0 0x14 0x00 -# CHECK: adc AX, 0 +# CHECK: adc ax, 0 0x66 0x15 0x00 0x00 -# CHECK: adc EAX, 0 +# CHECK: adc eax, 0 0x15 0x00 0x00 0x00 0x00 -# CHECK: adc RAX, 0 +# CHECK: adc rax, 0 0x48 0x15 0x00 0x00 0x00 0x00 -# CHECK: cmp AL, 0 +# CHECK: cmp al, 0 0x3c 0x00 -# CHECK: cmp AX, 0 +# CHECK: cmp ax, 0 0x66 0x3d 0x00 0x00 -# CHECK: cmp EAX, 0 +# CHECK: cmp eax, 0 0x3d 0x00 0x00 0x00 0x00 -# CHECK: cmp RAX, 0 +# CHECK: cmp rax, 0 0x48 0x3d 0x00 0x00 0x00 0x00 -# CHECK: test AL, 0 +# CHECK: test al, 0 0xa8 0x00 -# CHECK: test AX, 0 +# CHECK: test ax, 0 0x66 0xa9 0x00 0x00 -# CHECK: test EAX, 0 +# CHECK: test eax, 0 0xa9 0x00 0x00 0x00 0x00 -# CHECK: test RAX, 0 +# CHECK: test rax, 0 0x48 0xa9 0x00 0x00 0x00 0x00 # CHECK: sysret @@ -105,17 +105,17 @@ # CHECK: retf 0x66 0xcb -# CHECK: vpgatherqq YMM2, QWORD PTR [RDI + 2*YMM1], YMM0 +# CHECK: vpgatherqq ymm2, qword ptr [rdi + 2*ymm1], ymm0 0xc4 0xe2 0xfd 0x91 0x14 0x4f -# CHECK: vpgatherdd XMM10, DWORD PTR [R15 + 2*XMM9], XMM8 +# CHECK: vpgatherdd xmm10, dword ptr [r15 + 2*xmm9], xmm8 0xc4 0x02 0x39 0x90 0x14 0x4f -# CHECK: xsave64 OPAQUE PTR [RAX] +# CHECK: xsave64 opaque ptr [rax] 0x48 0x0f 0xae 0x20 -# CHECK: xrstor64 OPAQUE PTR [RAX] +# CHECK: xrstor64 opaque ptr [rax] 0x48 0x0f 0xae 0x28 -# CHECK: xsaveopt64 OPAQUE PTR [RAX] +# CHECK: xsaveopt64 opaque ptr [rax] 0x48 0x0f 0xae 0x30 |