Skip to content
This repository was archived by the owner on Feb 5, 2019. It is now read-only.

Commit 89c83dc

Browse files
committed
Fix test case label check
Several (but not all) of the labels that are checked for in this test case are checked as strings instead of labels. This can cause an apparent test case failure if they are tested in an appropriately named directory. For example, one of them that fails: define zeroext i32 @test2(i32 %A.u, i32 %B.u) { ; A8: test2 ; A8: uxtab r0, r0, r1 Output that causes it to fail: . . . .file "/home/seurer/llvm/llvm-test2/test/CodeGen/Thumb2/thumb2-uxt_rot.ll" . . . .globl test2 .align 1 .type test2,%function .code 16 @ @test2 .thumb_func test2: .fnstart The "A8: test2" matches on the directory name instead of the label. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@253702 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent 368c7cb commit 89c83dc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/CodeGen/Thumb2/thumb2-uxt_rot.ll

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,17 @@
33
; rdar://11318438
44

55
define zeroext i8 @test1(i32 %A.u) {
6-
; A8: test1
6+
; A8-LABEL: test1:
77
; A8: uxtb r0, r0
88
%B.u = trunc i32 %A.u to i8
99
ret i8 %B.u
1010
}
1111

1212
define zeroext i32 @test2(i32 %A.u, i32 %B.u) {
13-
; A8: test2
13+
; A8-LABEL: test2:
1414
; A8: uxtab r0, r0, r1
1515

16-
; M3: test2
16+
; M3-LABEL: test2:
1717
; M3: uxtb r1, r1
1818
; M3-NOT: uxtab
1919
; M3: add r0, r1
@@ -24,7 +24,7 @@ define zeroext i32 @test2(i32 %A.u, i32 %B.u) {
2424
}
2525

2626
define zeroext i32 @test3(i32 %A.u) {
27-
; A8-LABEL: test3
27+
; A8-LABEL: test3:
2828
; A8: ubfx r0, r0, #8, #16
2929
%B.u = lshr i32 %A.u, 8
3030
%C.u = shl i32 %A.u, 24

0 commit comments

Comments
 (0)