================
@@ -0,0 +1,111 @@
+; RUN: split-file %s %t
+; RUN: not opt -S -dxil-intrinsic-expansion \
+; RUN:   -mtriple=dxil-pc-shadermodel6.0-vertex %t/direct.ll 2>&1 \
+; RUN:   | FileCheck %s --check-prefix=VERTEX
+; RUN: not opt -S -dxil-intrinsic-expansion \
+; RUN:   -mtriple=dxil-pc-shadermodel6.7-vertex %t/direct.ll 2>&1 \
+; RUN:   | FileCheck %s --check-prefix=VERTEX
+; RUN: not opt -S -dxil-intrinsic-expansion \
+; RUN:   -mtriple=dxil-pc-shadermodel6.6-library %t/library.ll 2>&1 \
+; RUN:   | FileCheck %s --check-prefix=LIBRARY
+; RUN: not opt -S -dxil-intrinsic-expansion \
+; RUN:   -mtriple=dxil-pc-shadermodel6.7-library %t/library.ll 2>&1 \
+; RUN:   | FileCheck %s --check-prefix=LIBRARY
+; RUN: opt -S -dxil-intrinsic-expansion \
+; RUN:   -mtriple=dxil-pc-shadermodel6.6-library %t/allowed.ll \
+; RUN:   | FileCheck %s --check-prefix=EMULATED \
+; RUN:     --implicit-check-not=llvm.dx.quad.all
+; RUN: opt -S -dxil-intrinsic-expansion \
+; RUN:   -mtriple=dxil-pc-shadermodel6.7-library %t/allowed.ll \
+; RUN:   | FileCheck %s --check-prefix=NATIVE
+; RUN: opt -S -dxil-intrinsic-expansion \
+; RUN:   -mtriple=dxil-pc-shadermodel6.6-vertex %t/unused.ll \
+; RUN:   | FileCheck %s --check-prefix=UNUSED
+
+; VERTEX: error: 'QuadAll' is not supported in 'vertex' shaders for DirectX; 
supported stages: 'compute', 'amplification', 'mesh', 'pixel', 'node' (function 
'vote')
+; LIBRARY: error: 'QuadAll' is not supported in 'vertex' shaders for DirectX; 
supported stages: 'compute', 'amplification', 'mesh', 'pixel', 'node' (function 
'vertex')
+; EMULATED: call i32 @llvm.dx.quad.read.across.x.i32
+; NATIVE: call i1 @llvm.dx.quad.all
+; UNUSED: define void @vertex()
+
----------------
inbelic wrote:

nit: can we put these inline

https://github.com/llvm/llvm-project/pull/244046
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to