Skip to content

Commit 3100ed3

Browse files
addring test comments
1 parent 2e1f4dd commit 3100ed3

File tree

5 files changed

+14
-3
lines changed

5 files changed

+14
-3
lines changed

clang/test/CodeGenHLSL/builtins/clip.hlsl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// RUN: %clang_cc1 -finclude-default-header -x hlsl -triple dxil-pc-shadermodel6.3-pixel %s -fnative-half-type -emit-llvm -o - | FileCheck %s
2-
// RUN: %clang_cc1 -finclude-default-header -x hlsl -triple spirv-vulkan-pixel %s -fnative-half-type -emit-llvm -o - | FileCheck %s --check-prefix=SPIRV
1+
// RUN: %clang_cc1 -finclude-default-header -triple dxil-pc-shadermodel6.3-pixel %s -fnative-half-type -emit-llvm -o - | FileCheck %s
2+
// RUN: %clang_cc1 -finclude-default-header -triple spirv-vulkan-pixel %s -fnative-half-type -emit-llvm -o - | FileCheck %s --check-prefix=SPIRV
33

44

55
void test_scalar(float Buf) {

llvm/lib/Target/DirectX/DXIL.td

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -776,7 +776,6 @@ def Discard : DXILOp<82, discard> {
776776
let arguments = [Int1Ty];
777777
let result = VoidTy;
778778
let stages = [Stages<DXIL1_0, [pixel]>];
779-
let attributes = [Attributes<DXIL1_0, [ReadNone]>];
780779
}
781780

782781
def ThreadId : DXILOp<93, threadId> {
File renamed without changes.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
; RUN: not opt -S -dxil-op-lower -mtriple=dxil-pc-shadermodel6.3-library %s 2>&1 | FileCheck %s
2+
3+
; DXIL operation discard does not support no bool overload type
4+
5+
; CHECK: invalid intrinsic signature
6+
; CHECK: call void @llvm.dx.discard(double %p)
7+
;
8+
define void @discard_double(double noundef %p) {
9+
entry:
10+
call void @llvm.dx.discard(double %p)
11+
ret void
12+
}

0 commit comments

Comments
 (0)