File tree Expand file tree Collapse file tree 2 files changed +5
-8
lines changed
test/CodeGen/SPIRV/extensions Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Original file line number Diff line number Diff line change 11; 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-extensions=SPV_INTEL_optnone %s -o - | FileCheck %s --check-prefix =CHECK,CHECK-EXTENSION
3- ; RUN: llc -O0 -mtriple=spirv32-unknown-unknown %s -o - | FileCheck %s --check-prefix =CHECK,CHECK-NO-EXTENSION
2+ ; RUN: llc -O0 -mtriple=spirv32-unknown-unknown --spirv-extensions=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
44
55; CHECK-EXTENSION: OpCapability OptNoneINTEL
66; CHECK-EXTENSION: OpExtension "SPV_INTEL_optnone"
77; CHECK-NO-EXTENSION-NOT: OpCapability OptNoneINTEL
88; CHECK-NO-EXTENSION-NOT: OpExtension "SPV_INTEL_optnone"
99
10- ;; Per SPIR-V spec:
11- ;; FunctionControlDontInlineMask = 0x2 (2)
12- ; CHECK-EXTENSION: %[[#]] = OpFunction %[[#]] DontInline
13-
1410; Function Attrs: nounwind optnone noinline
1511define spir_func void @_Z3foov () #0 {
16- ; CHECK-LABEL: _Z3foov:
12+ ; CHECK-LABEL: _Z3foov
1713; CHECK: %4 = OpFunction %2 DontInline %3
1814; CHECK-NEXT: %5 = OpLabel
1915; CHECK-NEXT: OpReturn
2319}
2420
2521attributes #0 = { nounwind optnone noinline }
22+
2623;; NOTE: These prefixes are unused and the list is autogenerated. Do not add tests below this line:
2724; CHECK-EXTENSION: {{.*}}
2825; CHECK-NO-EXTENSION: {{.*}}
Original file line number Diff line number Diff line change @@ -206,7 +206,7 @@ class string:
206206# for this function. Then we match that when the variable is assigned with
207207# OpFunction and match its body.
208208ASM_FUNCTION_SPIRV_RE = re .compile (
209- r'OpName (?P<var>%[0-9]+) "(?P<func>[^"]+)".*(?P<body>(?P=var) = OpFunction.+?OpFunctionEnd)' ,
209+ r'OpName (?P<var>%[0-9]+) "(?P<func>[^"]+)(?P<func_name_separator>) ".*(?P<body>(?P=var) = OpFunction.+?OpFunctionEnd)' ,
210210 flags = (re .M | re .S ),
211211)
212212
You can’t perform that action at this time.
0 commit comments