diff options
author | Stephen Lin <stephenwlin@gmail.com> | 2013-07-13 20:38:47 +0000 |
---|---|---|
committer | Stephen Lin <stephenwlin@gmail.com> | 2013-07-13 20:38:47 +0000 |
commit | b4dc0233c9f70e8cf946822811f233bb613a02e9 (patch) | |
tree | 6cb47482e15d250ae95e5c6c96abd2afb56f6fca /test/CodeGen/X86/fast-isel-gep.ll | |
parent | ae4e1a94e3fb7d1d2d0eec6eb7d04b74326c8453 (diff) | |
download | llvm-b4dc0233c9f70e8cf946822811f233bb613a02e9.tar.gz llvm-b4dc0233c9f70e8cf946822811f233bb613a02e9.tar.bz2 llvm-b4dc0233c9f70e8cf946822811f233bb613a02e9.tar.xz |
Convert CodeGen/*/*.ll tests to use the new CHECK-LABEL for easier debugging. No functionality change and all tests pass after conversion.
This was done with the following sed invocation to catch label lines demarking function boundaries:
sed -i '' "s/^;\( *\)\([A-Z0-9_]*\):\( *\)test\([A-Za-z0-9_-]*\):\( *\)$/;\1\2-LABEL:\3test\4:\5/g" test/CodeGen/*/*.ll
which was written conservatively to avoid false positives rather than false negatives. I scanned through all the changes and everything looks correct.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186258 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/fast-isel-gep.ll')
-rw-r--r-- | test/CodeGen/X86/fast-isel-gep.ll | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/test/CodeGen/X86/fast-isel-gep.ll b/test/CodeGen/X86/fast-isel-gep.ll index f0375f8602..4e47c7455c 100644 --- a/test/CodeGen/X86/fast-isel-gep.ll +++ b/test/CodeGen/X86/fast-isel-gep.ll @@ -9,11 +9,11 @@ define i32 @test1(i32 %t3, i32* %t1) nounwind { %t9 = getelementptr i32* %t1, i32 %t3 ; <i32*> [#uses=1] %t15 = load i32* %t9 ; <i32> [#uses=1] ret i32 %t15 -; X32: test1: +; X32-LABEL: test1: ; X32: movl (%eax,%ecx,4), %eax ; X32: ret -; X64: test1: +; X64-LABEL: test1: ; X64: movslq %e[[A0:di|cx]], %rax ; X64: movl (%r[[A1:si|dx]],%rax,4), %eax ; X64: ret @@ -23,11 +23,11 @@ define i32 @test2(i64 %t3, i32* %t1) nounwind { %t9 = getelementptr i32* %t1, i64 %t3 ; <i32*> [#uses=1] %t15 = load i32* %t9 ; <i32> [#uses=1] ret i32 %t15 -; X32: test2: +; X32-LABEL: test2: ; X32: movl (%edx,%ecx,4), %e ; X32: ret -; X64: test2: +; X64-LABEL: test2: ; X64: movl (%r[[A1]],%r[[A0]],4), %eax ; X64: ret } @@ -42,12 +42,12 @@ entry: ret i8 %B -; X32: test3: +; X32-LABEL: test3: ; X32: movl 4(%esp), %eax ; X32: movb -2(%eax), %al ; X32: ret -; X64: test3: +; X64-LABEL: test3: ; X64: movb -2(%r[[A0]]), %al ; X64: ret @@ -66,9 +66,9 @@ entry: %tmp2 = load double* %arrayidx ; <double> [#uses=1] ret double %tmp2 -; X32: test4: +; X32-LABEL: test4: ; X32: 128(%e{{.*}},%e{{.*}},8) -; X64: test4: +; X64-LABEL: test4: ; X64: 128(%r{{.*}},%r{{.*}},8) } @@ -80,7 +80,7 @@ define i64 @test5(i8* %A, i32 %I, i64 %B) nounwind { %v10 = load i64* %v9 %v11 = add i64 %B, %v10 ret i64 %v11 -; X64: test5: +; X64-LABEL: test5: ; X64: movslq %e[[A1]], %rax ; X64-NEXT: (%r[[A0]],%rax), ; X64: ret @@ -113,7 +113,7 @@ declare i8* @_ZNK18G__FastAllocString4dataEv() nounwind ; PR10605 / rdar://9930964 - Don't fold loads incorrectly. The load should ; happen before the store. define i32 @test7({i32,i32,i32}* %tmp1, i32 %tmp71, i32 %tmp63) nounwind { -; X64: test7: +; X64-LABEL: test7: ; X64: movl 8({{%rdi|%rcx}}), %eax ; X64: movl $4, 8({{%rdi|%rcx}}) |