Skip to content

Commit dce6225

Browse files
committed
WIP: Addressed PR feedback
1 parent d9f9647 commit dce6225

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

clang/lib/CodeGen/CGHLSLBuiltins.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ Value *CodeGenFunction::EmitHLSLBuiltinExpr(unsigned BuiltinID,
392392
}
393393
case Builtin::BI__builtin_hlsl_dot2add: {
394394
llvm::Triple::ArchType Arch = CGM.getTarget().getTriple().getArch();
395-
assert(Arch == llvm::Triple::dxil && "Intrinsic dot2add can be executed as a builtin only on dxil");
395+
assert(Arch == llvm::Triple::dxil && "Intrinsic dot2add is only allowed for dxil architecture");
396396
Value *A = EmitScalarExpr(E->getArg(0));
397397
Value *B = EmitScalarExpr(E->getArg(1));
398398
Value *C = EmitScalarExpr(E->getArg(2));

clang/test/CodeGenHLSL/builtins/dot2add.hlsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// Test basic lowering to runtime function call.
99

1010
// CHECK-LABEL: define {{.*}}test
11-
float test(half2 p1, half2 p2, float p3) {
11+
float test_default_parameter(half2 p1, half2 p2, float p3) {
1212
// CHECK-SPIRV: %[[RES:.*]] = call {{.*}} float @_ZN4hlsl7dot2addEDv2_DhS0_f(<2 x half> {{.*}} %1, <2 x half> {{.*}} %2, float {{.*}} %3) #3 {{.*}}
1313
// CHECK-DXIL: %[[RES:.*]] = call {{.*}} float @_ZN4hlsl7dot2addEDv2_DhS0_f(<2 x half> {{.*}} %0, <2 x half> {{.*}} %1, float {{.*}} %2) #2
1414
// CHECK: ret float %[[RES]]

0 commit comments

Comments
 (0)