Skip to content

Commit 94ac3a9

Browse files
committed
add labels for test cases
1 parent 3f51563 commit 94ac3a9

File tree

5 files changed

+18
-0
lines changed

5 files changed

+18
-0
lines changed

llvm/test/CodeGen/DirectX/any.ll

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
; Make sure dxil operation function calls for any are generated for float and half.
44

5+
; CHECK-LABEL: any_bool
56
; CHECK: icmp ne i1 %{{.*}}, false
67
define noundef i1 @any_bool(i1 noundef %p0) {
78
entry:
@@ -14,6 +15,7 @@ entry:
1415
ret i1 %dx.any
1516
}
1617

18+
; CHECK-LABEL: any_int64_t
1719
; CHECK: icmp ne i64 %{{.*}}, 0
1820
define noundef i1 @any_int64_t(i64 noundef %p0) {
1921
entry:
@@ -24,6 +26,7 @@ entry:
2426
ret i1 %dx.any
2527
}
2628

29+
; CHECK-LABEL: any_int
2730
; CHECK: icmp ne i32 %{{.*}}, 0
2831
define noundef i1 @any_int(i32 noundef %p0) {
2932
entry:
@@ -34,6 +37,7 @@ entry:
3437
ret i1 %dx.any
3538
}
3639

40+
; CHECK-LABEL: any_int16_t
3741
; CHECK: icmp ne i16 %{{.*}}, 0
3842
define noundef i1 @any_int16_t(i16 noundef %p0) {
3943
entry:
@@ -44,6 +48,7 @@ entry:
4448
ret i1 %dx.any
4549
}
4650

51+
; CHECK-LABEL: any_double
4752
; CHECK: fcmp une double %{{.*}}, 0.000000e+00
4853
define noundef i1 @any_double(double noundef %p0) {
4954
entry:
@@ -54,6 +59,7 @@ entry:
5459
ret i1 %dx.any
5560
}
5661

62+
; CHECK-LABEL: any_float
5763
; CHECK: fcmp une float %{{.*}}, 0.000000e+00
5864
define noundef i1 @any_float(float noundef %p0) {
5965
entry:
@@ -64,6 +70,7 @@ entry:
6470
ret i1 %dx.any
6571
}
6672

73+
; CHECK-LABEL: any_half
6774
; CHECK: fcmp une half %{{.*}}, 0xH0000
6875
define noundef i1 @any_half(half noundef %p0) {
6976
entry:
@@ -74,6 +81,7 @@ entry:
7481
ret i1 %dx.any
7582
}
7683

84+
; CHECK-LABEL: any_bool4
7785
; CHECK: icmp ne <4 x i1> %extractvec, zeroinitialize
7886
; CHECK: extractelement <4 x i1> %{{.*}}, i64 0
7987
; CHECK: extractelement <4 x i1> %{{.*}}, i64 1

llvm/test/CodeGen/DirectX/exp-vec.ll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
; Make sure dxil operation function calls for exp are generated for float and half.
44

5+
; CHECK-LABEL: exp_float4
56
; CHECK: fmul <4 x float> <float 0x3FF7154760000000, float 0x3FF7154760000000, float 0x3FF7154760000000, float 0x3FF7154760000000>, %{{.*}}
67
; CHECK: call <4 x float> @llvm.exp2.v4f32(<4 x float> %{{.*}})
78
define noundef <4 x float> @exp_float4(<4 x float> noundef %p0) {

llvm/test/CodeGen/DirectX/exp.ll

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
; Make sure dxil operation function calls for exp are generated for float and half.
44

5+
; CHECK-LABEL: exp_float
56
; CHECK: fmul float 0x3FF7154760000000, %{{.*}}
67
; CHECK: call float @dx.op.unary.f32(i32 21, float %{{.*}})
78
define noundef float @exp_float(float noundef %a) {
@@ -13,6 +14,7 @@ entry:
1314
ret float %elt.exp
1415
}
1516

17+
; CHECK-LABEL: exp_half
1618
; CHECK: fmul half 0xH3DC5, %{{.*}}
1719
; CHECK: call half @dx.op.unary.f16(i32 21, half %{{.*}})
1820
; Function Attrs: noinline nounwind optnone

llvm/test/CodeGen/DirectX/lerp.ll

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
; Make sure dxil operation function calls for lerp are generated for float and half.
44

5+
; CHECK-LABEL: lerp_half
56
; CHECK: fsub half %{{.*}}, %{{.*}}
67
; CHECK: fmul half %{{.*}}, %{{.*}}
78
; CHECK: fadd half %{{.*}}, %{{.*}}
@@ -16,6 +17,7 @@ entry:
1617
ret half %dx.lerp
1718
}
1819

20+
; CHECK-LABEL: lerp_float
1921
; CHECK: fsub float %{{.*}}, %{{.*}}
2022
; CHECK: fmul float %{{.*}}, %{{.*}}
2123
; CHECK: fadd float %{{.*}}, %{{.*}}
@@ -32,6 +34,7 @@ entry:
3234
ret float %dx.lerp
3335
}
3436

37+
; CHECK-LABEL: lerp_float4
3538
; CHECK: fsub <4 x float> %{{.*}}, %{{.*}}
3639
; CHECK: fmul <4 x float> %{{.*}}, %{{.*}}
3740
; CHECK: fadd <4 x float> %{{.*}}, %{{.*}}

llvm/test/CodeGen/DirectX/rcp.ll

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
; Make sure dxil operation function calls for rcp are generated for float, double, and half.
44

5+
; CHECK-LABEL: rcp_float4
56
; CHECK: fdiv <4 x float> <float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00>, %{{.*}}
67
define noundef <4 x float> @rcp_float4(<4 x float> noundef %p0) {
78
entry:
@@ -12,6 +13,7 @@ entry:
1213
ret <4 x float> %dx.rcp
1314
}
1415

16+
; CHECK-LABEL: rcp_double4
1517
; CHECK: fdiv <4 x double> <double 1.000000e+00, double 1.000000e+00, double 1.000000e+00, double 1.000000e+00>, %{{.*}}
1618
define noundef <4 x double> @rcp_double4(<4 x double> noundef %p0) {
1719
entry:
@@ -22,6 +24,7 @@ entry:
2224
ret <4 x double> %dx.rcp
2325
}
2426

27+
; CHECK-LABEL: rcp_half4
2528
; CHECK: fdiv <4 x half> <half 0xH3C00, half 0xH3C00, half 0xH3C00, half 0xH3C00>, %{{.*}}
2629
define noundef <4 x half> @rcp_half4(<4 x half> noundef %p0) {
2730
entry:
@@ -32,6 +35,7 @@ entry:
3235
ret <4 x half> %dx.rcp
3336
}
3437

38+
; CHECK-LABEL: rcp_half
3539
; CHECK: fdiv half 0xH3C00, %{{.*}}
3640
define noundef half @rcp_half(half noundef %p0) {
3741
entry:

0 commit comments

Comments
 (0)