Skip to content

Commit 449b422

Browse files
Fixup nits: Code style and fwidth test triple
1 parent 5af43f8 commit 449b422

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

clang/test/CodeGenHLSL/builtins/fwidth.hlsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// RUN: %clang_cc1 -finclude-default-header -x hlsl -triple dxil-pc-shadermodel6.3-library %s \
22
// RUN: -emit-llvm -disable-llvm-passes -fnative-half-type -o - | \
33
// RUN: FileCheck %s --check-prefixes=CHECK
4-
// RUN: %clang_cc1 -finclude-default-header -x hlsl -triple spirv-pc-vulkan-compute %s \
4+
// RUN: %clang_cc1 -finclude-default-header -x hlsl -triple spirv-unknown-vulkan1.3-library %s \
55
// RUN: -emit-llvm -disable-llvm-passes -fnative-half-type -o - | \
66
// RUN: FileCheck %s --check-prefixes=CHECK-SPIRV
77

llvm/lib/Target/SPIRV/SPIRVInstructionSelector.cpp

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3582,15 +3582,12 @@ bool SPIRVInstructionSelector::selectIntrinsic(Register ResVReg,
35823582
case Intrinsic::spv_unpackhalf2x16: {
35833583
return selectExtInst(ResVReg, ResType, I, GL::UnpackHalf2x16);
35843584
}
3585-
case Intrinsic::spv_ddx_coarse: {
3585+
case Intrinsic::spv_ddx_coarse:
35863586
return selectDerivativeInst(ResVReg, ResType, I, SPIRV::OpDPdxCoarse);
3587-
}
3588-
case Intrinsic::spv_ddy_coarse: {
3587+
case Intrinsic::spv_ddy_coarse:
35893588
return selectDerivativeInst(ResVReg, ResType, I, SPIRV::OpDPdyCoarse);
3590-
}
3591-
case Intrinsic::spv_fwidth: {
3589+
case Intrinsic::spv_fwidth:
35923590
return selectDerivativeInst(ResVReg, ResType, I, SPIRV::OpFwidth);
3593-
}
35943591
default: {
35953592
std::string DiagMsg;
35963593
raw_string_ostream OS(DiagMsg);

0 commit comments

Comments
 (0)