Skip to content

Commit 4a0f534

Browse files
committed
Remove '%test_' prefix from SIMD filetests
1 parent d19f727 commit 4a0f534

12 files changed

+41
-45
lines changed

cranelift/filetests/filetests/isa/x86/simd-conversion-binemit.clif

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ test binemit
22
target x86_64
33

44
; Ensure raw_bitcast emits no instructions.
5-
function %test_raw_bitcast_i16x8_to_b32x4() {
5+
function %raw_bitcast_i16x8_to_b32x4() {
66
block0:
77
[-, %rbx] v0 = bconst.b16 true
88
[-, %xmm2] v1 = scalar_to_vector.b16x8 v0

cranelift/filetests/filetests/isa/x86/simd-lane-access-binemit-for-size.clif

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,28 +5,28 @@ target x86_64
55

66
;; These scalar_to_vector tests avoid the use of REX prefixes with the speed_and_size optimization flag.
77

8-
function %test_scalar_to_vector_b8() {
8+
function %scalar_to_vector_b8() {
99
block0:
1010
[-, %rax] v0 = bconst.b8 true
1111
[-, %xmm0] v1 = scalar_to_vector.b8x16 v0 ; bin: 66 0f 6e c0
1212
return
1313
}
1414

15-
function %test_scalar_to_vector_i16() {
15+
function %scalar_to_vector_i16() {
1616
block0:
1717
[-, %rbx] v0 = iconst.i16 42
1818
[-, %xmm2] v1 = scalar_to_vector.i16x8 v0 ; bin: 66 0f 6e d3
1919
return
2020
}
2121

22-
function %test_scalar_to_vector_b32() {
22+
function %scalar_to_vector_b32() {
2323
block0:
2424
[-, %rcx] v0 = bconst.b32 false
2525
[-, %xmm3] v1 = scalar_to_vector.b32x4 v0 ; bin: 66 0f 6e d9
2626
return
2727
}
2828

29-
function %test_scalar_to_vector_i64() {
29+
function %scalar_to_vector_i64() {
3030
block0:
3131
[-, %rdx] v0 = iconst.i64 42
3232
[-, %xmm7] v1 = scalar_to_vector.i64x2 v0 ; bin: 66 48 0f 6e fa

cranelift/filetests/filetests/isa/x86/simd-lane-access-binemit.clif

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ target x86_64 haswell
55
; for insertlane, floats are legalized differently than integers and booleans; integers and
66
; booleans use x86_pinsr which is manually placed in the IR so that it can be binemit-tested
77

8-
function %test_insertlane_b8() {
8+
function %insertlane_b8() {
99
block0:
1010
[-, %rax] v0 = bconst.b8 true
1111
[-, %rbx] v1 = bconst.b8 false
@@ -14,7 +14,7 @@ block0:
1414
return
1515
}
1616

17-
function %test_insertlane_i16() {
17+
function %insertlane_i16() {
1818
block0:
1919
[-, %rax] v0 = iconst.i16 4
2020
[-, %rbx] v1 = iconst.i16 5
@@ -23,7 +23,7 @@ block0:
2323
return
2424
}
2525

26-
function %test_insertlane_i32() {
26+
function %insertlane_i32() {
2727
block0:
2828
[-, %rax] v0 = iconst.i32 42
2929
[-, %rbx] v1 = iconst.i32 99
@@ -32,7 +32,7 @@ block0:
3232
return
3333
}
3434

35-
function %test_insertlane_b64() {
35+
function %insertlane_b64() {
3636
block0:
3737
[-, %rax] v0 = bconst.b64 true
3838
[-, %rbx] v1 = bconst.b64 false
@@ -44,31 +44,31 @@ block0:
4444
; for extractlane, floats are legalized differently than integers and booleans; integers and
4545
; booleans use x86_pextr which is manually placed in the IR so that it can be binemit-tested
4646

47-
function %test_extractlane_b8() {
47+
function %extractlane_b8() {
4848
block0:
4949
[-, %rax] v0 = bconst.b8 true
5050
[-, %xmm0] v1 = splat.b8x16 v0
5151
[-, %rax] v2 = x86_pextr v1, 10 ; bin: 66 0f 3a 14 c0 0a
5252
return
5353
}
5454

55-
function %test_extractlane_i16() {
55+
function %extractlane_i16() {
5656
block0:
5757
[-, %rax] v0 = iconst.i16 4
5858
[-, %xmm1] v1 = splat.i16x8 v0
5959
[-, %rax] v2 = x86_pextr v1, 4 ; bin: 66 0f 3a 15 c8 04
6060
return
6161
}
6262

63-
function %test_extractlane_i32() {
63+
function %extractlane_i32() {
6464
block0:
6565
[-, %rax] v0 = iconst.i32 42
6666
[-, %xmm4] v1 = splat.i32x4 v0
6767
[-, %rcx] v2 = x86_pextr v1, 2 ; bin: 66 0f 3a 16 e1 02
6868
return
6969
}
7070

71-
function %test_extractlane_b64() {
71+
function %extractlane_b64() {
7272
block0:
7373
[-, %rax] v0 = bconst.b64 false
7474
[-, %xmm2] v1 = splat.b64x2 v0
@@ -78,15 +78,15 @@ block0:
7878

7979
;; shuffle
8080

81-
function %test_pshufd() {
81+
function %pshufd() {
8282
block0:
8383
[-, %rax] v0 = iconst.i32 42
8484
[-, %xmm0] v1 = scalar_to_vector.i32x4 v0 ; bin: 66 40 0f 6e c0
8585
[-, %xmm0] v2 = x86_pshufd v1, 0 ; bin: 66 0f 70 c0 00
8686
return
8787
}
8888

89-
function %test_pshufb() {
89+
function %pshufb() {
9090
block0:
9191
[-, %rax] v0 = iconst.i8 42
9292
[-, %xmm0] v1 = scalar_to_vector.i8x16 v0 ; bin: 66 40 0f 6e c0

cranelift/filetests/filetests/isa/x86/simd-lane-access-compile.clif

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ set enable_simd
55
target x86_64
66

77
; Ensure that scalar_to_vector emits no instructions for floats (already exist in an XMM register)
8-
function %test_scalar_to_vector_f32() -> f32x4 baldrdash_system_v {
8+
function %scalar_to_vector_f32() -> f32x4 baldrdash_system_v {
99
block0:
1010
v0 = f32const 0x0.42
1111
v1 = scalar_to_vector.f32x4 v0

cranelift/filetests/filetests/isa/x86/simd-lane-access-legalize.clif

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ target x86_64 skylake
44

55
;; shuffle
66

7-
function %test_shuffle_different_ssa_values() -> i8x16 {
7+
function %shuffle_different_ssa_values() -> i8x16 {
88
block0:
99
v0 = vconst.i8x16 0x00
1010
v1 = vconst.i8x16 0x01
@@ -18,7 +18,7 @@ block0:
1818
; nextln: v6 = x86_pshufb v1, v5
1919
; nextln: v2 = bor v4, v6
2020

21-
function %test_shuffle_same_ssa_value() -> i8x16 {
21+
function %shuffle_same_ssa_value() -> i8x16 {
2222
block0:
2323
v1 = vconst.i8x16 0x01
2424
v2 = shuffle v1, v1, 0x13000000000000000000000000000000 ; pick the fourth lane of v1 and the rest from the first lane of v1
@@ -30,7 +30,7 @@ block0:
3030

3131
;; splat
3232

33-
function %test_splat_i32() -> i32x4 {
33+
function %splat_i32() -> i32x4 {
3434
block0:
3535
v0 = iconst.i32 42
3636
v1 = splat.i32x4 v0
@@ -43,7 +43,7 @@ block0:
4343
; nextln: return v1
4444
; nextln: }
4545

46-
function %test_splat_i64() -> i64x2 {
46+
function %splat_i64() -> i64x2 {
4747
block0:
4848
v0 = iconst.i64 42
4949
v1 = splat.i64x2 v0
@@ -55,7 +55,7 @@ block0:
5555
; nextln: v1 = x86_pinsr v2, 1, v0
5656
; nextln: return v1
5757

58-
function %test_splat_b16() -> b16x8 {
58+
function %splat_b16() -> b16x8 {
5959
block0:
6060
v0 = bconst.b16 true
6161
v1 = splat.b16x8 v0
@@ -70,7 +70,7 @@ block0:
7070
; nextln: v1 = raw_bitcast.b16x8 v5
7171
; nextln: return v1
7272

73-
function %test_splat_i8() -> i8x16 {
73+
function %splat_i8() -> i8x16 {
7474
block0:
7575
v0 = iconst.i8 42
7676
v1 = splat.i8x16 v0

cranelift/filetests/filetests/isa/x86/simd-lane-access-run.clif

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
test run
22
set enable_simd
33

4-
function %test_shuffle_different_ssa_values() -> b1 {
4+
function %shuffle_different_ssa_values() -> b1 {
55
block0:
66
v0 = vconst.i8x16 0x00
77
v1 = vconst.i8x16 [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 42]
@@ -13,7 +13,7 @@ block0:
1313
}
1414
; run
1515

16-
function %test_shuffle_same_ssa_value() -> b1 {
16+
function %shuffle_same_ssa_value() -> b1 {
1717
block0:
1818
v0 = vconst.i8x16 0x01000000_00000000_00000000_00000000 ; note where lane 15 is when written with hexadecimal syntax
1919
v1 = shuffle v0, v0, 0x0f0f0f0f_0f0f0f0f_0f0f0f0f_0f0f0f0f ; use the last lane of v0 to fill all lanes
@@ -56,7 +56,7 @@ block0:
5656

5757
; TODO once SIMD vector comparison is implemented, remove use of extractlane below
5858

59-
function %test_insertlane_b8() -> b8 {
59+
function %insertlane_b8() -> b8 {
6060
block0:
6161
v1 = bconst.b8 true
6262
v2 = vconst.b8x16 [false false false false false false false false false false false false false
@@ -67,7 +67,7 @@ block0:
6767
}
6868
; run
6969

70-
function %test_insertlane_f32() -> b1 {
70+
function %insertlane_f32() -> b1 {
7171
block0:
7272
v0 = f32const 0x42.42
7373
v1 = vconst.f32x4 0x00
@@ -78,7 +78,7 @@ block0:
7878
}
7979
; run
8080

81-
function %test_insertlane_f64_lane1() -> b1 {
81+
function %insertlane_f64_lane1() -> b1 {
8282
block0:
8383
v0 = f64const 0x42.42
8484
v1 = vconst.f64x2 0x00
@@ -89,7 +89,7 @@ block0:
8989
}
9090
; run
9191

92-
function %test_insertlane_f64_lane0() -> b1 {
92+
function %insertlane_f64_lane0() -> b1 {
9393
block0:
9494
v0 = f64const 0x42.42
9595
v1 = vconst.f64x2 0x00
@@ -100,7 +100,7 @@ block0:
100100
}
101101
; run
102102

103-
function %test_extractlane_b8() -> b8 {
103+
function %extractlane_b8() -> b8 {
104104
block0:
105105
v1 = vconst.b8x16 [false false false false false false false false false false true false false
106106
false false false]
@@ -109,7 +109,7 @@ block0:
109109
}
110110
; run
111111

112-
function %test_extractlane_i16() -> b1 {
112+
function %extractlane_i16() -> b1 {
113113
block0:
114114
v0 = vconst.i16x8 0x00080007000600050004000300020001
115115
v1 = extractlane v0, 1
@@ -118,7 +118,7 @@ block0:
118118
}
119119
; run
120120

121-
function %test_extractlane_f32() -> b1 {
121+
function %extractlane_f32() -> b1 {
122122
block0:
123123
v0 = f32const 0x42.42
124124
v1 = vconst.f32x4 [0x00.00 0x00.00 0x00.00 0x42.42]
@@ -128,7 +128,7 @@ block0:
128128
}
129129
; run
130130

131-
function %test_extractlane_i32_with_vector_reuse() -> b1 {
131+
function %extractlane_i32_with_vector_reuse() -> b1 {
132132
block0:
133133
v0 = iconst.i32 42
134134
v1 = iconst.i32 99
@@ -147,7 +147,7 @@ block0:
147147
}
148148
; run
149149

150-
function %test_extractlane_f32_with_vector_reuse() -> b1 {
150+
function %extractlane_f32_with_vector_reuse() -> b1 {
151151
block0:
152152
v0 = f32const 0x42.42
153153
v1 = f32const 0x99.99

cranelift/filetests/filetests/isa/x86/simd-vconst-binemit.clif

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ set opt_level=speed_and_size
33
set enable_simd
44
target x86_64
55

6-
function %test_vconst_b8() {
6+
function %vconst_b8() {
77
block0:
88
[-, %xmm2] v0 = vconst.b8x16 0x01 ; bin: 0f 10 15 00000008 PCRelRodata4(15)
99
[-, %xmm3] v1 = vconst.b8x16 0x02 ; bin: 0f 10 1d 00000011 PCRelRodata4(31)

cranelift/filetests/filetests/isa/x86/simd-vconst-compile.clif

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ set enable_probestack=false
44
target x86_64 haswell
55

66
; use baldrdash calling convention here for simplicity (avoids prologue, epilogue)
7-
function %test_vconst_i32() -> i32x4 baldrdash_system_v {
7+
function %vconst_i32() -> i32x4 baldrdash_system_v {
88
block0:
99
v0 = vconst.i32x4 0x1234
1010
return v0

cranelift/filetests/filetests/isa/x86/simd-vconst-optimized-binemit.clif

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@ test binemit
22
set enable_simd
33
target x86_64
44

5-
; TODO move to vconst-compile.clif or vconst-binemit.clif
6-
7-
function %test_vconst_optimizations() {
5+
function %vconst_optimizations() {
86
block0:
97
[-, %xmm4] v0 = vconst.b8x16 0x00 ; bin: 66 0f ef e4
108
[-, %xmm7] v1 = vconst.b8x16 0xffffffffffffffffffffffffffffffff ; bin: 66 0f 74 ff

cranelift/filetests/filetests/isa/x86/simd-vconst-optimized-run.clif

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@ test run
22
set enable_simd
33
target x86_64
44

5-
; TODO move to vconst-run.clif
6-
7-
function %test_vconst_zeroes() -> b1 {
5+
function %vconst_zeroes() -> b1 {
86
block0:
97
v0 = vconst.i8x16 0x00
108
v1 = extractlane v0, 4
@@ -13,7 +11,7 @@ block0:
1311
}
1412
; run
1513

16-
function %test_vconst_ones() -> b1 {
14+
function %vconst_ones() -> b1 {
1715
block0:
1816
v0 = vconst.i8x16 0xffffffffffffffffffffffffffffffff
1917
v1 = extractlane v0, 2

cranelift/filetests/filetests/isa/x86/simd-vconst-rodata.clif

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@ test rodata
22
set enable_simd=true
33
target x86_64 haswell
44

5-
function %test_vconst_i32() -> i32x4 {
5+
function %vconst_i32() -> i32x4 {
66
block0:
77
v0 = vconst.i32x4 0x1234
88
return v0
99
}
1010

1111
; sameln: [34, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
1212

13-
function %test_vconst_b16() -> b16x8 {
13+
function %vconst_b16() -> b16x8 {
1414
block0:
1515
v0 = vconst.b16x8 [true false true false true false true true]
1616
return v0

cranelift/filetests/filetests/isa/x86/simd-vconst-run.clif

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
test run
22
set enable_simd
33

4-
function %test_vconst_syntax() -> b1 {
4+
function %vconst_syntax() -> b1 {
55
block0:
66
v0 = vconst.i32x4 0x00000004_00000003_00000002_00000001 ; build constant using hexadecimal syntax
77
v1 = vconst.i32x4 [1 2 3 4] ; build constant using literal list syntax

0 commit comments

Comments
 (0)