Debian Codegraph @

llvm/test/CodeGen/SPIRV/extensions/enable-all-extensions-avoid-invalid.ll

raw
1 ; RUN: llc -verify-machineinstrs -O0 -mtriple=spirv1.6-vulkan1.3-compute --spirv-ext=all %s -o - | FileCheck %s
2 ; RUN: %if spirv-tools %{ llc -O0 -mtriple=spirv1.6-vulkan1.3-compute --spirv-ext=all %s -o - -filetype=obj | spirv-val --target-env vulkan1.3 %}
3
4 ; CHECK-NOT: OpExtension "SPV_KHR_no_integer_wrap_decoration"
5
6 define internal void @foo(i32 %i) local_unnamed_addr {
7 %sub.i = sub nsw i32 0, %i
8 ret void
9 }
10
11 define internal void @main() local_unnamed_addr #0 {
12 entry:
13 ret void
14 }
15
16 attributes #0 = { "hlsl.numthreads"="1,1,1" "hlsl.shader"="compute" }