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/CodeGen/X86 | |
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/CodeGen/X86')
-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 |
6 files changed, 18 insertions, 18 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 |