Skip to content

Commit 0846b5c

Browse files
committed
fixup! Manually fixed tests
1 parent e8f5d42 commit 0846b5c

File tree

6 files changed

+38
-50
lines changed

6 files changed

+38
-50
lines changed

llvm/test/CodeGen/AMDGPU/artificial-terminators.mir

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -34,18 +34,14 @@ body: |
3434
; CHECK-NEXT: S_BRANCH %bb.1
3535
; CHECK-NEXT: {{ $}}
3636
; CHECK-NEXT: bb.1:
37-
; CHECK-NEXT: successors: %bb.5(0x30000000), %bb.2(0x50000000)
37+
; CHECK-NEXT: successors: %bb.4(0x30000000), %bb.2(0x50000000)
3838
; CHECK-NEXT: {{ $}}
3939
; CHECK-NEXT: [[V_CMP_LT_I32_e64_:%[0-9]+]]:sreg_32 = V_CMP_LT_I32_e64 [[V_ADD_U32_e64_3]], [[S_MOV_B32_1]], implicit $exec
4040
; CHECK-NEXT: [[S_XOR_B32_:%[0-9]+]]:sreg_32 = S_XOR_B32 $exec_lo, [[V_CMP_LT_I32_e64_]], implicit-def $scc
41-
; CHECK-NEXT: $exec_lo = S_MOV_B32_term [[S_XOR_B32_]]
42-
; CHECK-NEXT: S_CBRANCH_EXECNZ %bb.2, implicit $exec
43-
; CHECK-NEXT: {{ $}}
44-
; CHECK-NEXT: bb.5:
45-
; CHECK-NEXT: successors: %bb.4(0x80000000)
46-
; CHECK-NEXT: {{ $}}
4741
; CHECK-NEXT: [[COPY3:%[0-9]+]]:sreg_32 = COPY [[V_CMP_LT_I32_e64_]]
48-
; CHECK-NEXT: S_BRANCH %bb.4
42+
; CHECK-NEXT: $exec_lo = S_MOV_B32_term [[S_XOR_B32_]]
43+
; CHECK-NEXT: S_CBRANCH_EXECZ %bb.4, implicit $exec
44+
; CHECK-NEXT: S_BRANCH %bb.2
4945
; CHECK-NEXT: {{ $}}
5046
; CHECK-NEXT: bb.2:
5147
; CHECK-NEXT: successors: %bb.4(0x40000000), %bb.3(0x40000000)
@@ -64,7 +60,7 @@ body: |
6460
; CHECK-NEXT: S_BRANCH %bb.4
6561
; CHECK-NEXT: {{ $}}
6662
; CHECK-NEXT: bb.4:
67-
; CHECK-NEXT: [[PHI:%[0-9]+]]:sreg_32 = PHI [[COPY3]], %bb.5, [[S_OR_B32_]], %bb.2, [[S_OR_B32_]], %bb.3
63+
; CHECK-NEXT: [[PHI:%[0-9]+]]:sreg_32 = PHI [[COPY3]], %bb.1, [[S_OR_B32_]], %bb.2, [[S_OR_B32_]], %bb.3
6864
; CHECK-NEXT: $exec_lo = S_OR_B32 $exec_lo, [[PHI]], implicit-def $scc
6965
; CHECK-NEXT: S_ENDPGM 0
7066
bb.0:

llvm/test/CodeGen/PowerPC/knowCRBitSpill.ll

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,5 +137,3 @@ if.end14: ; preds = %if.end11
137137
declare signext i32 @fn2(...)
138138
declare signext i32 @fn3(...)
139139
declare signext i32 @fn4(...)
140-
;; NOTE: These prefixes are unused and the list is autogenerated. Do not add tests below this line:
141-
; CHECK: {{.*}}

llvm/test/CodeGen/WebAssembly/implicit-def.ll

Lines changed: 22 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,12 @@ target triple = "wasm32-unknown-unknown"
77
; CONST_XXX instructions to provide an explicit push.
88

99
; CHECK-LABEL: implicit_def_i32:
10-
; CHECK: i32.const $push{{[0-9]+}}=, 0{{$}}
11-
; CHECK: i32.const $push{{[0-9]+}}=, 0{{$}}
12-
; CHECK: i32.const $push[[R:[0-9]+]]=, 0{{$}}
13-
; CHECK-NEXT: return $pop[[R]]{{$}}
10+
; CHECK: i32.const $push{{[0-9]+}}=, 0{{$}}
11+
; CHECK: i32.const $push{{[0-9]+}}=, 0{{$}}
12+
; CHECK: i32.const $push{{[0-9]+}}=, 0{{$}}
13+
; CHECK-NOT: i32.const
14+
; CHECK: local.get $push[[R:[0-9]+]]=, 0{{$}}
15+
; CHECK: return $pop[[R]]{{$}}
1416
define i32 @implicit_def_i32() {
1517
br i1 undef, label %A, label %X
1618

@@ -31,8 +33,10 @@ X: ; preds = %0, C
3133
}
3234

3335
; CHECK-LABEL: implicit_def_i64:
34-
; CHECK: i64.const $push[[R:[0-9]+]]=, 0{{$}}
35-
; CHECK-NEXT: return $pop[[R]]{{$}}
36+
; CHECK: i64.const $push{{[0-9]+}}=, 0{{$}}
37+
; CHECK-NOT: i64.const
38+
; CHECK: local.get $push[[R:[0-9]+]]=, 0{{$}}
39+
; CHECK: return $pop[[R]]{{$}}
3640
define i64 @implicit_def_i64() {
3741
br i1 undef, label %A, label %X
3842

@@ -53,8 +57,10 @@ X: ; preds = %0, C
5357
}
5458

5559
; CHECK-LABEL: implicit_def_f32:
56-
; CHECK: f32.const $push[[R:[0-9]+]]=, 0x0p0{{$}}
57-
; CHECK-NEXT: return $pop[[R]]{{$}}
60+
; CHECK: f32.const $push{{[0-9]+}}=, 0x0p0{{$}}
61+
; CHECK-NOT: f32.const
62+
; CHECK: local.get $push[[R:[0-9]+]]=, 0{{$}}
63+
; CHECK: return $pop[[R]]{{$}}
5864
define float @implicit_def_f32() {
5965
br i1 undef, label %A, label %X
6066

@@ -75,8 +81,10 @@ X: ; preds = %0, C
7581
}
7682

7783
; CHECK-LABEL: implicit_def_f64:
78-
; CHECK: f64.const $push[[R:[0-9]+]]=, 0x0p0{{$}}
79-
; CHECK-NEXT: return $pop[[R]]{{$}}
84+
; CHECK: f64.const $push{{[0-9]+}}=, 0x0p0{{$}}
85+
; CHECK-NOT: f64.const
86+
; CHECK: local.get $push[[R:[0-9]+]]=, 0{{$}}
87+
; CHECK: return $pop[[R]]{{$}}
8088
define double @implicit_def_f64() {
8189
br i1 undef, label %A, label %X
8290

@@ -97,8 +105,10 @@ X: ; preds = %0, C
97105
}
98106

99107
; CHECK-LABEL: implicit_def_v4i32:
100-
; CHECK: v128.const $push[[R:[0-9]+]]=, 0, 0{{$}}
101-
; CHECK-NEXT: return $pop[[R]]{{$}}
108+
; CHECK: v128.const $push{{[0-9]+}}=, 0, 0, 0, 0{{$}}
109+
; CHECK-NOT: v128.const
110+
; CHECK: local.get $push[[R:[0-9]+]]=, 0{{$}}
111+
; CHECK: return $pop[[R]]{{$}}
102112
define <4 x i32> @implicit_def_v4i32() {
103113
br i1 undef, label %A, label %X
104114

@@ -117,5 +127,3 @@ X: ; preds = %0, C
117127
%i = phi <4 x i32> [ <i32 1, i32 1, i32 1, i32 1>, %0 ], [ %h, %C ]
118128
ret <4 x i32> %i
119129
}
120-
;; NOTE: These prefixes are unused and the list is autogenerated. Do not add tests below this line:
121-
; CHECK: {{.*}}

llvm/test/CodeGen/X86/branchfolding-debugloc.ll

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1+
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 5
12
; RUN: llc < %s | FileCheck %s
23
;
34
; The test code is generated from the following source code:
4-
;
5+
;
56
; 1 extern int bar(int x);
67
; 2
78
; 3 int foo(int *begin, int *end) {
@@ -16,14 +17,12 @@
1617
; 12 }
1718
; 13 return ret;
1819
; 14 }
19-
;
20+
;
2021
; CHECK: # %entry
2122
; CHECK-NOT: # %for.body
2223
; CHECK: .loc 1 6 3
2324
; CHECK-NEXT: je [[BB:.LBB[^ ]+]]
24-
; CHECK: [[BB]]:
25-
; CHECK: xorl %ebp, %ebp
26-
; CHECK-NEXT: .LBB{{.*}} # %for.end
25+
; CHECK: [[BB]]: # %for.end
2726

2827
target triple = "x86_64-unknown-linux-gnu"
2928

llvm/test/CodeGen/X86/taildup-heapallocsite.ll

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 5
12
; RUN: llc < %s -tail-dup-placement-threshold=4 | FileCheck %s
23

34
; Based on test case from PR43695:
@@ -35,25 +36,19 @@ cond.end: ; preds = %entry, %cond.true
3536

3637
; CHECK-LABEL: taildupit: # @taildupit
3738
; CHECK: testq
38-
; CHECK: je
39+
; CHECK: je [[CALL:.+]]
40+
; CHECK: movl
41+
; CHECK: [[CALL]]:
3942
; CHECK: callq alloc
4043
; CHECK-NEXT: [[L1:.Ltmp[0-9]+]]
4144
; CHECK: jmp f2 # TAILCALL
42-
; CHECK: callq alloc
43-
; CHECK-NEXT: [[L3:.Ltmp[0-9]+]]
44-
; CHECK: jmp f2 # TAILCALL
4545

4646
; CHECK-LABEL: .short 4423 # Record kind: S_GPROC32_ID
4747
; CHECK: .short 4446 # Record kind: S_HEAPALLOCSITE
4848
; CHECK-NEXT: .secrel32 [[L0:.Ltmp[0-9]+]]
4949
; CHECK-NEXT: .secidx [[L0]]
5050
; CHECK-NEXT: .short [[L1]]-[[L0]]
5151
; CHECK-NEXT: .long 3
52-
; CHECK: .short 4446 # Record kind: S_HEAPALLOCSITE
53-
; CHECK-NEXT: .secrel32 [[L2:.Ltmp[0-9]+]]
54-
; CHECK-NEXT: .secidx [[L2]]
55-
; CHECK-NEXT: .short [[L3]]-[[L2]]
56-
; CHECK-NEXT: .long 3
5752

5853
declare dso_local ptr @alloc(i32)
5954

llvm/test/DebugInfo/COFF/pieces.ll

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,12 @@
3737
; ASM-LABEL: loop_csr: # @loop_csr
3838
; ASM: #DEBUG_VALUE: loop_csr:o <- [DW_OP_LLVM_fragment 0 32] 0
3939
; ASM: #DEBUG_VALUE: loop_csr:o <- [DW_OP_LLVM_fragment 32 32] 0
40-
; ASM: # %bb.2: # %for.body.preheader
40+
; ASM: # %bb.1: # %for.body.preheader
4141
; ASM: xorl %edi, %edi
4242
; ASM: xorl %esi, %esi
4343
; ASM: [[oy_ox_start:\.Ltmp[0-9]+]]:
4444
; ASM: .p2align 4
45-
; ASM: .LBB0_3: # %for.body
45+
; ASM: .LBB0_2: # %for.body
4646
; ASM: #DEBUG_VALUE: loop_csr:o <- [DW_OP_LLVM_fragment 0 32] $edi
4747
; ASM: #DEBUG_VALUE: loop_csr:o <- [DW_OP_LLVM_fragment 32 32] $esi
4848
; ASM: .cv_loc 0 1 13 11 # t.c:13:11
@@ -58,19 +58,11 @@
5858
; ASM: [[oy_start:\.Ltmp[0-9]+]]:
5959
; ASM: #DEBUG_VALUE: loop_csr:o <- [DW_OP_LLVM_fragment 32 32] $esi
6060
; ASM: cmpl n(%rip), %eax
61-
; ASM: jl .LBB0_3
62-
; ASM: [[loopskip_start:\.Ltmp[0-9]+]]:
63-
; ASM: #DEBUG_VALUE: loop_csr:o <- [DW_OP_LLVM_fragment 0 32] 0
64-
; ASM: xorl %esi, %esi
65-
; ASM: xorl %edi, %edi
61+
; ASM: jl .LBB0_2
6662
; ASM: [[oy_end:\.Ltmp[0-9]+]]:
6763
; ASM: addl %edi, %esi
6864
; ASM: movl %esi, %eax
6965

70-
; XXX FIXME: the debug value line after loopskip_start should be repeated
71-
; because both fields of 'o' are zero flowing into this block. However, it
72-
; appears livedebugvalues doesn't account for fragments.
73-
7466
; ASM-LABEL: pad_right: # @pad_right
7567
; ASM: movq %rcx, %rax
7668
; ASM: [[pad_right_tmp:\.Ltmp[0-9]+]]:

0 commit comments

Comments
 (0)