1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 3
2 ; RUN: llc -O0 -mtriple=spirv32-unknown-unknown --spirv-ext=+SPV_INTEL_optnone %s -o - | FileCheck %s --check-prefixes=CHECK,CHECK-EXTENSION
3 ; RUN: llc -O0 -mtriple=spirv32-unknown-unknown %s -o - | FileCheck %s --check-prefixes=CHECK,CHECK-NO-EXTENSION
5 ; CHECK-EXTENSION: OpCapability OptNoneINTEL
6 ; CHECK-EXTENSION: OpExtension "SPV_INTEL_optnone"
7 ; CHECK-NO-EXTENSION-NOT: OpCapability OptNoneINTEL
8 ; CHECK-NO-EXTENSION-NOT: OpExtension "SPV_INTEL_optnone"
10 ; Function Attrs: nounwind optnone noinline
11 define spir_func void @_Z3foov() #0 {
12 ; CHECK-LABEL: _Z3foov
13 ; CHECK: %4 = OpFunction %2 DontInline %3
14 ; CHECK-NEXT: %5 = OpLabel
15 ; CHECK-NEXT: OpReturn
16 ; CHECK-NEXT: OpFunctionEnd
21 attributes #0 = { nounwind optnone noinline }
23 ;; NOTE: These prefixes are unused and the list is autogenerated. Do not add tests below this line:
24 ; CHECK-EXTENSION: {{.*}}
25 ; CHECK-NO-EXTENSION: {{.*}}