File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -965,7 +965,8 @@ def MakeDouble : DXILOp<101, makeDouble> {
965
965
let Doc = "creates a double value";
966
966
let intrinsics = [IntrinSelect<int_dx_asdouble>];
967
967
let arguments = [Int32Ty, Int32Ty];
968
- let result = DoubleTy;
968
+ let result = OverloadTy;
969
+ let overloads = [Overloads<DXIL1_0, [DoubleTy]>];
969
970
let stages = [Stages<DXIL1_0, [all_stages]>];
970
971
let attributes = [Attributes<DXIL1_0, [ReadNone]>];
971
972
}
Original file line number Diff line number Diff line change 4
4
; DirectX op
5
5
6
6
define noundef double @asdouble_scalar (i32 noundef %low , i32 noundef %high ) {
7
- ; CHECK: call double @dx.op.makeDouble(i32 101, i32 %low, i32 %high)
7
+ ; CHECK: call double @dx.op.makeDouble.f64 (i32 101, i32 %low, i32 %high)
8
8
%ret = call double @llvm.dx.asdouble.i32 (i32 %low , i32 %high )
9
9
ret double %ret
10
10
}
11
11
12
12
declare double @llvm.dx.asdouble.i32 (i32 , i32 )
13
13
14
14
define noundef <3 x double > @asdouble_vec (<3 x i32 > noundef %low , <3 x i32 > noundef %high ) {
15
- ; CHECK: call double @dx.op.makeDouble(i32 101, i32 %low.i0, i32 %high.i0)
16
- ; CHECK: call double @dx.op.makeDouble(i32 101, i32 %low.i1, i32 %high.i1)
17
- ; CHECK: call double @dx.op.makeDouble(i32 101, i32 %low.i2, i32 %high.i2)
15
+ ; CHECK: call double @dx.op.makeDouble.f64 (i32 101, i32 %low.i0, i32 %high.i0)
16
+ ; CHECK: call double @dx.op.makeDouble.f64 (i32 101, i32 %low.i1, i32 %high.i1)
17
+ ; CHECK: call double @dx.op.makeDouble.f64 (i32 101, i32 %low.i2, i32 %high.i2)
18
18
%ret = call <3 x double > @llvm.dx.asdouble.v3i32 (<3 x i32 > %low , <3 x i32 > %high )
19
19
ret <3 x double > %ret
20
20
}
You can’t perform that action at this time.
0 commit comments