Skip to content

Commit ec1922b

Browse files
authored
[DirectX] fix fail test (#108468)
Fix fails in floor.ll. 1. Need to enable scalarizer. 2. Need to use 27 for floor.
1 parent 2ca75df commit ec1922b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

llvm/test/CodeGen/DirectX/floor.ll

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
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
22

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

@@ -19,13 +19,13 @@ entry:
1919
define noundef <4 x float> @floor_float4(<4 x float> noundef %a) {
2020
entry:
2121
; 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]])
2323
; 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]])
2525
; 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]])
2727
; 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]])
2929
; CHECK: insertelement <4 x float> poison, float [[ie0]], i64 0
3030
; CHECK: insertelement <4 x float> %{{.*}}, float [[ie1]], i64 1
3131
; CHECK: insertelement <4 x float> %{{.*}}, float [[ie2]], i64 2

0 commit comments

Comments
 (0)