Skip to content

Commit 91af3da

Browse files
committed
restore old non-autogenerated file
1 parent 813479a commit 91af3da

25 files changed

+248
-335
lines changed

llvm/test/CodeGen/AArch64/arm64-vector-ext.ll

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
1-
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 6
21
; RUN: llc < %s -mtriple=arm64-eabi -aarch64-neon-syntax=apple | FileCheck %s
32

3+
;CHECK: @func30
4+
;CHECK: movi.4h v1, #1
5+
;CHECK: and.8b v0, v0, v1
6+
;CHECK: ushll.4s v0, v0, #0
7+
;CHECK: str q0, [x0]
8+
;CHECK: ret
9+
410
%T0_30 = type <4 x i1>
511
%T1_30 = type <4 x i32>
612
define void @func30(%T0_30 %v0, ptr %p1) {
7-
; CHECK-LABEL: func30:
8-
; CHECK: // %bb.0:
9-
; CHECK-NEXT: movi.4h v1, #1
10-
; CHECK-NEXT: and.8b v0, v0, v1
11-
; CHECK-NEXT: ushll.4s v0, v0, #0
12-
; CHECK-NEXT: str q0, [x0]
13-
; CHECK-NEXT: ret
1413
%r = zext %T0_30 %v0 to %T1_30
1514
store %T1_30 %r, ptr %p1
1615
ret void
@@ -19,11 +18,9 @@ define void @func30(%T0_30 %v0, ptr %p1) {
1918
; Extend from v1i1 was crashing things (PR20791). Make sure we do something
2019
; sensible instead.
2120
define <1 x i32> @autogen_SD7918() {
22-
; CHECK-LABEL: autogen_SD7918:
23-
; CHECK: // %bb.0:
24-
; CHECK-NEXT: movi.2d v0, #0000000000000000
25-
; CHECK-NEXT: // kill: def $d0 killed $d0 killed $q0
26-
; CHECK-NEXT: ret
21+
; CHECK-LABEL: autogen_SD7918
22+
; CHECK: movi.2d v0, #0000000000000000
23+
; CHECK-NEXT: ret
2724
%I29 = insertelement <1 x i1> zeroinitializer, i1 false, i32 0
2825
%ZE = zext <1 x i1> %I29 to <1 x i32>
2926
ret <1 x i32> %ZE

llvm/test/CodeGen/AArch64/arm64-vshuffle.ll

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
1-
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 6
21
; RUN: llc < %s -mtriple=arm64-apple-ios7.0 -mcpu=cyclone | FileCheck %s
32

43
define <8 x i1> @test1() {
54
; CHECK-LABEL: test1:
65
; CHECK: ; %bb.0: ; %entry
76
; CHECK-NEXT: movi.16b v0, #0
8-
; CHECK-NEXT: ; kill: def $d0 killed $d0 killed $q0
97
; CHECK-NEXT: ret
108
entry:
119
%Shuff = shufflevector <8 x i1> <i1 0, i1 1, i1 2, i1 3, i1 4, i1 5, i1 6,
@@ -60,14 +58,9 @@ bb:
6058
; CHECK: .byte 0 ; 0x0
6159
; CHECK: .byte 0 ; 0x0
6260
define <16 x i1> @test4(ptr %ptr, i32 %v) {
63-
; CHECK-LABEL: test4:
64-
; CHECK: ; %bb.0: ; %bb
65-
; CHECK-NEXT: Lloh0:
66-
; CHECK-NEXT: adrp x8, lCPI3_0@PAGE
67-
; CHECK-NEXT: Lloh1:
68-
; CHECK-NEXT: ldr q0, [x8, lCPI3_0@PAGEOFF]
69-
; CHECK-NEXT: ret
70-
; CHECK-NEXT: .loh AdrpLdr Lloh0, Lloh1
61+
; CHECK-LABEL: _test4:
62+
; CHECK: adrp x[[REG3:[0-9]+]], lCPI3_0@PAGE
63+
; CHECK: ldr q[[REG2:[0-9]+]], [x[[REG3]], lCPI3_0@PAGEOFF]
7164
bb:
7265
%Shuff = shufflevector <16 x i1> zeroinitializer,
7366
<16 x i1> <i1 0, i1 1, i1 1, i1 0, i1 0, i1 1, i1 0, i1 0, i1 0, i1 1,

llvm/test/CodeGen/ARM/readcyclecounter.ll

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 6
21
; RUN: llc -mtriple=armv7-none-linux-gnueabi < %s | FileCheck %s
32
; RUN: llc -mtriple=thumbv7-none-linux-gnueabi < %s | FileCheck %s
43
; RUN: llc -mtriple=armv7-none-linux-gnueabi -mattr=-perfmon < %s | FileCheck %s --check-prefix=CHECK-NO-PERFMON
@@ -18,8 +17,9 @@ define i64 @get_count() {
1817
; As usual, exact registers only sort of matter but the cycle-count had better
1918
; end up in r0 in the end.
2019

20+
; CHECK: mrc p15, #0, r0, c9, c13, #0
21+
; CHECK: {{movs?}} r1, #0
2122

23+
; CHECK-NO-PERFMON: {{movs?}} r0, #0
24+
; CHECK-NO-PERFMON: {{movs?}} r1, #0
2225
}
23-
;; NOTE: These prefixes are unused and the list is autogenerated. Do not add tests below this line:
24-
; CHECK: {{.*}}
25-
; CHECK-NO-PERFMON: {{.*}}

llvm/test/CodeGen/AVR/calling-conv/c/return_aggr.ll

Lines changed: 10 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,14 @@
1-
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 6
21
; RUN: llc < %s -mtriple=avr | FileCheck %s
32

43
; CHECK-LABEL: ret_struct_i8_i16_i8
54
define { i8, i16, i8 } @ret_struct_i8_i16_i8() {
6-
; CHECK-LABEL: ret_struct_i8_i16_i8:
7-
; CHECK: ; %bb.0: ; %start
8-
; CHECK-NEXT: ldi r22, 64
9-
; CHECK-NEXT: ldi r18, 0
10-
; CHECK-NEXT: ldi r19, 4
11-
; CHECK-NEXT: ldi r25, 11
12-
; CHECK-NEXT: mov r23, r18
13-
; CHECK-NEXT: mov r24, r19
14-
; CHECK-NEXT: ret
155
start:
166
; for some reason the i16 is loaded to r24:r25
177
; and then moved to r23:r24
8+
; CHECK: ldi r22, 64
9+
; CHECK-NEXT: r23,
10+
; CHECK-NEXT: r24,
11+
; CHECK-NEXT: r25, 11
1812
%0 = insertvalue {i8, i16, i8} undef, i8 64, 0
1913
%1 = insertvalue {i8, i16, i8} %0, i16 1024, 1
2014
%2 = insertvalue {i8, i16, i8} %1, i8 11, 2
@@ -23,16 +17,13 @@ start:
2317

2418
; CHECK-LABEL: ret_struct_i32_i16
2519
define { i32, i16 } @ret_struct_i32_i16() {
26-
; CHECK-LABEL: ret_struct_i32_i16:
27-
; CHECK: ; %bb.0: ; %start
28-
; CHECK-NEXT: ldi r18, 4
29-
; CHECK-NEXT: ldi r19, 3
30-
; CHECK-NEXT: ldi r20, 2
31-
; CHECK-NEXT: ldi r21, 1
32-
; CHECK-NEXT: ldi r22, 0
33-
; CHECK-NEXT: ldi r23, 8
34-
; CHECK-NEXT: ret
3520
start:
21+
; CHECK: ldi r18, 4
22+
; CHECK-NEXT: ldi r19, 3
23+
; CHECK-NEXT: ldi r20, 2
24+
; CHECK-NEXT: ldi r21, 1
25+
; CHECK-NEXT: ldi r22, 0
26+
; CHECK-NEXT: ldi r23, 8
3627
%0 = insertvalue { i32, i16 } undef, i32 16909060, 0
3728
%1 = insertvalue { i32, i16 } %0, i16 2048, 1
3829
ret { i32, i16} %1

llvm/test/CodeGen/BPF/BTF/filename.ll

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 6
21
; RUN: llc -mtriple=bpfel -filetype=asm -o - %s | FileCheck -check-prefixes=CHECK %s
32
; RUN: llc -mtriple=bpfeb -filetype=asm -o - %s | FileCheck -check-prefixes=CHECK %s
43

@@ -9,22 +8,6 @@
98

109
; Function Attrs: norecurse nounwind readnone uwtable
1110
define dso_local i32 @test() local_unnamed_addr #0 !dbg !7 {
12-
; CHECK-LABEL: test:
13-
; CHECK: .Ltest$local:
14-
; CHECK-NEXT: .type .Ltest$local,@function
15-
; CHECK-NEXT: .Lfunc_begin0:
16-
; CHECK-NEXT: .file 1 "/home/yhs/ttmp" "/home/yhs/ttmp/t.c"
17-
; CHECK-NEXT: .loc 1 1 0 # /home/yhs/ttmp/t.c:1:0
18-
; CHECK-NEXT: .cfi_startproc
19-
; CHECK-NEXT: # %bb.0:
20-
; CHECK-NEXT: w0 = 0
21-
; CHECK-NEXT: .Ltmp0:
22-
; CHECK-NEXT: .loc 1 1 14 prologue_end # /home/yhs/ttmp/t.c:1:14
23-
; CHECK-NEXT: .Ltmp1:
24-
; CHECK-NEXT: .Ltmp2:
25-
; CHECK-NEXT: exit
26-
; CHECK-NEXT: .Ltmp3:
27-
; CHECK-NEXT: .Ltmp4:
2811
ret i32 0, !dbg !11
2912
}
3013

llvm/test/CodeGen/BPF/BTF/func-unused-arg.ll

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 6
21
; RUN: llc -mtriple=bpfel -filetype=asm -o - %s | FileCheck -check-prefixes=CHECK %s
32
; RUN: llc -mtriple=bpfeb -filetype=asm -o - %s | FileCheck -check-prefixes=CHECK %s
43

@@ -9,24 +8,6 @@
98

109
; Function Attrs: nounwind readnone
1110
define dso_local i32 @f1(i32) local_unnamed_addr #0 !dbg !7 {
12-
; CHECK-LABEL: f1:
13-
; CHECK: .Lf1$local:
14-
; CHECK-NEXT: .type .Lf1$local,@function
15-
; CHECK-NEXT: .Lfunc_begin0:
16-
; CHECK-NEXT: .file 1 "/DNE" "t.c"
17-
; CHECK-NEXT: .loc 1 1 0 # t.c:1:0
18-
; CHECK-NEXT: .cfi_sections .debug_frame
19-
; CHECK-NEXT: .cfi_startproc
20-
; CHECK-NEXT: # %bb.0:
21-
; CHECK-NEXT: #DEBUG_VALUE: f1:a1 <- $w1
22-
; CHECK-NEXT: w0 = 0
23-
; CHECK-NEXT: .Ltmp0:
24-
; CHECK-NEXT: .loc 1 1 18 prologue_end # t.c:1:18
25-
; CHECK-NEXT: .Ltmp1:
26-
; CHECK-NEXT: .Ltmp2:
27-
; CHECK-NEXT: exit
28-
; CHECK-NEXT: .Ltmp3:
29-
; CHECK-NEXT: .Ltmp4:
3011
call void @llvm.dbg.value(metadata i32 %0, metadata !12, metadata !DIExpression()), !dbg !13
3112
ret i32 0, !dbg !14
3213
}

llvm/test/CodeGen/BPF/fi_ri.ll

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,19 @@
1-
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 6
21
; RUN: llc < %s -mtriple=bpf -mcpu=v1 | FileCheck %s
32

43
%struct.key_t = type { i32, [16 x i8] }
54

65
; Function Attrs: nounwind uwtable
76
define i32 @test() #0 {
8-
; CHECK-LABEL: test:
9-
; CHECK: # %bb.0:
10-
; CHECK-NEXT: r6 = 0
11-
; CHECK-NEXT: *(u32 *)(r10 - 8) = r6
12-
; CHECK-NEXT: *(u64 *)(r10 - 16) = r6
13-
; CHECK-NEXT: *(u64 *)(r10 - 24) = r6
14-
; CHECK-NEXT: r1 = r10
15-
; CHECK-NEXT: r1 += -20
16-
; CHECK-NEXT: call test1
17-
; CHECK-NEXT: r0 = r6
18-
; CHECK-NEXT: exit
197
%key = alloca %struct.key_t, align 4
8+
; CHECK: r1 = 0
9+
; CHECK: *(u32 *)(r10 - 8) = r1
10+
; CHECK: *(u64 *)(r10 - 16) = r1
11+
; CHECK: *(u64 *)(r10 - 24) = r1
2012
call void @llvm.memset.p0.i64(ptr align 4 %key, i8 0, i64 20, i1 false)
13+
; CHECK: r1 = r10
14+
; CHECK: r1 += -20
2115
%1 = getelementptr inbounds %struct.key_t, ptr %key, i64 0, i32 1, i64 0
16+
; CHECK: call test1
2217
call void @test1(ptr %1) #3
2318
ret i32 0
2419
}
Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,18 @@
1-
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 6
21
; RUN: llc < %s -mtriple=bpfel -mattr=+alu32 -verify-machineinstrs | FileCheck %s
32
; RUN: llc < %s -mtriple=bpfeb -mattr=+alu32 -verify-machineinstrs | FileCheck %s
43

54
; Test that %w works as input constraint
65
; CHECK-LABEL: test_inlineasm_w_input_constraint
76
define dso_local i32 @test_inlineasm_w_input_constraint() {
8-
; CHECK-LABEL: test_inlineasm_w_input_constraint:
9-
; CHECK: .Ltest_inlineasm_w_input_constraint$local:
10-
; CHECK-NEXT: .type .Ltest_inlineasm_w_input_constraint$local,@function
11-
; CHECK-NEXT: .cfi_startproc
12-
; CHECK-NEXT: # %bb.0:
13-
; CHECK-NEXT: w0 = 42
14-
; CHECK-NEXT: #APP
15-
; CHECK-NEXT: w0 = w0
16-
; CHECK-NEXT: #NO_APP
17-
; CHECK-NEXT: exit
187
tail call void asm sideeffect "w0 = $0", "w"(i32 42)
8+
; CHECK: w0 = w1
199
ret i32 42
2010
}
2111

2212
; Test that %w works as output constraint
2313
; CHECK-LABEL: test_inlineasm_w_output_constraint
2414
define dso_local i32 @test_inlineasm_w_output_constraint() {
25-
; CHECK-LABEL: test_inlineasm_w_output_constraint:
26-
; CHECK: .Ltest_inlineasm_w_output_constraint$local:
27-
; CHECK-NEXT: .type .Ltest_inlineasm_w_output_constraint$local,@function
28-
; CHECK-NEXT: .cfi_startproc
29-
; CHECK-NEXT: # %bb.0:
30-
; CHECK-NEXT: #APP
31-
; CHECK-NEXT: w0 = 42
32-
; CHECK-NEXT: #NO_APP
33-
; CHECK-NEXT: exit
3415
%1 = tail call i32 asm sideeffect "$0 = $1", "=w,i"(i32 42)
16+
; CHECK: w0 = 42
3517
ret i32 %1
3618
}

llvm/test/CodeGen/BPF/rodata_1.ll

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 6
21
; RUN: llc < %s -mtriple=bpfel -mcpu=v1 -verify-machineinstrs | FileCheck %s
32
; RUN: llc < %s -mtriple=bpfeb -mcpu=v1 -verify-machineinstrs | FileCheck %s
43

@@ -32,24 +31,17 @@
3231
; Function Attrs: nounwind
3332
define i32 @test() local_unnamed_addr #0 {
3433
; CHECK-LABEL: test:
35-
; CHECK: # %bb.0: # %entry
36-
; CHECK-NEXT: r1 = g1 ll
37-
; CHECK-NEXT: r0 = 0
38-
; CHECK-NEXT: *(u8 *)(r1 + 1) = r0
39-
; CHECK-NEXT: *(u8 *)(r1 + 0) = r0
40-
; CHECK-NEXT: r2 = 1
41-
; CHECK-NEXT: *(u8 *)(r1 + 2) = r2
42-
; CHECK-NEXT: r1 = g2 ll
43-
; CHECK-NEXT: *(u32 *)(r1 + 8) = r2
44-
; CHECK-NEXT: *(u32 *)(r1 + 4) = r0
45-
; CHECK-NEXT: *(u32 *)(r1 + 0) = r0
46-
; CHECK-NEXT: *(u32 *)(r1 + 12) = r0
47-
; CHECK-NEXT: *(u32 *)(r1 + 16) = r0
48-
; CHECK-NEXT: exit
4934

5035
entry:
5136
tail call void @llvm.memcpy.p0.p0.i64(ptr @g1, ptr @test.t1, i64 3, i1 false)
5237
tail call void @llvm.memcpy.p0.p0.i64(ptr align 4 @g2, ptr align 4 @test.t2, i64 20, i1 false)
38+
; CHECK: r1 = g1
39+
; CHECK: r2 = 0
40+
; CHECK: *(u8 *)(r1 + 1) = r2
41+
; CHECK: r3 = 1
42+
; CHECK: *(u8 *)(r1 + 2) = r3
43+
; CHECK: r1 = g2
44+
; CHECK: *(u32 *)(r1 + 8) = r3
5345
ret i32 0
5446
}
5547
; CHECK: .section .rodata,"a",@progbits

llvm/test/CodeGen/BPF/rodata_2.ll

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 6
21
; RUN: llc < %s -mtriple=bpfel -mcpu=v1 -verify-machineinstrs | FileCheck %s
32
; RUN: llc < %s -mtriple=bpfeb -mcpu=v1 -verify-machineinstrs | FileCheck %s
43

@@ -30,24 +29,21 @@
3029
; Function Attrs: nounwind
3130
define i32 @test() local_unnamed_addr #0 {
3231
; CHECK-LABEL: test:
33-
; CHECK: # %bb.0: # %entry
34-
; CHECK-NEXT: r1 = g ll
35-
; CHECK-NEXT: r2 = 3
36-
; CHECK-NEXT: *(u32 *)(r1 + 24) = r2
37-
; CHECK-NEXT: r2 = 2
38-
; CHECK-NEXT: *(u32 *)(r1 + 20) = r2
39-
; CHECK-NEXT: r2 = 1
40-
; CHECK-NEXT: *(u32 *)(r1 + 16) = r2
41-
; CHECK-NEXT: r0 = 0
42-
; CHECK-NEXT: *(u32 *)(r1 + 28) = r0
43-
; CHECK-NEXT: *(u32 *)(r1 + 12) = r0
44-
; CHECK-NEXT: *(u32 *)(r1 + 8) = r0
45-
; CHECK-NEXT: *(u32 *)(r1 + 4) = r0
46-
; CHECK-NEXT: *(u32 *)(r1 + 0) = r0
47-
; CHECK-NEXT: exit
4832

4933
entry:
5034
tail call void @llvm.memcpy.p0.p0.i64(ptr align 4 @g, ptr align 4 @test.t2, i64 32, i1 false)
35+
; CHECK: r1 = g ll
36+
; CHECK: r2 = 3
37+
; CHECK: *(u32 *)(r1 + 24) = r2
38+
; CHECK: r2 = 2
39+
; CHECK: *(u32 *)(r1 + 20) = r2
40+
; CHECK: r2 = 1
41+
; CHECK: *(u32 *)(r1 + 16) = r2
42+
; CHECK: r2 = 0
43+
; CHECK: *(u32 *)(r1 + 28) = r2
44+
; CHECK: *(u32 *)(r1 + 8) = r2
45+
; CHECK: *(u32 *)(r1 + 4) = r2
46+
; CHECK: *(u32 *)(r1 + 0) = r2
5147
ret i32 0
5248
}
5349
; CHECK: .section .rodata.cst32,"aM",@progbits,32

0 commit comments

Comments
 (0)