1
- ; RUN: opt -S -passes= dxil-op-lower -mtriple=dxil-pc-shadermodel6.3-library %s | FileCheck %s
1
+ ; RUN: opt -S -scalarizer - dxil-op-lower -mtriple=dxil-pc-shadermodel6.3-library %s | FileCheck %s
2
2
3
3
; Make sure dxil operation function calls for floor are generated for float and half.
4
4
@@ -19,13 +19,13 @@ entry:
19
19
define noundef <4 x float > @floor_float4 (<4 x float > noundef %a ) {
20
20
entry:
21
21
; CHECK: [[ee0:%.*]] = extractelement <4 x float> %a, i64 0
22
- ; CHECK: [[ie0:%.*]] = call float @dx.op.unary.f32(i32 19 , float [[ee0]])
22
+ ; CHECK: [[ie0:%.*]] = call float @dx.op.unary.f32(i32 27 , float [[ee0]])
23
23
; CHECK: [[ee1:%.*]] = extractelement <4 x float> %a, i64 1
24
- ; CHECK: [[ie1:%.*]] = call float @dx.op.unary.f32(i32 19 , float [[ee1]])
24
+ ; CHECK: [[ie1:%.*]] = call float @dx.op.unary.f32(i32 27 , float [[ee1]])
25
25
; CHECK: [[ee2:%.*]] = extractelement <4 x float> %a, i64 2
26
- ; CHECK: [[ie2:%.*]] = call float @dx.op.unary.f32(i32 19 , float [[ee2]])
26
+ ; CHECK: [[ie2:%.*]] = call float @dx.op.unary.f32(i32 27 , float [[ee2]])
27
27
; CHECK: [[ee3:%.*]] = extractelement <4 x float> %a, i64 3
28
- ; CHECK: [[ie3:%.*]] = call float @dx.op.unary.f32(i32 19 , float [[ee3]])
28
+ ; CHECK: [[ie3:%.*]] = call float @dx.op.unary.f32(i32 27 , float [[ee3]])
29
29
; CHECK: insertelement <4 x float> poison, float [[ie0]], i64 0
30
30
; CHECK: insertelement <4 x float> %{{.*}}, float [[ie1]], i64 1
31
31
; CHECK: insertelement <4 x float> %{{.*}}, float [[ie2]], i64 2
0 commit comments