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 1
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-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
4
4
5
5
; CHECK-EXTENSION: OpCapability OptNoneINTEL
6
6
; CHECK-EXTENSION: OpExtension "SPV_INTEL_optnone"
7
7
; CHECK-NO-EXTENSION-NOT: OpCapability OptNoneINTEL
8
8
; CHECK-NO-EXTENSION-NOT: OpExtension "SPV_INTEL_optnone"
9
9
10
- ;; Per SPIR-V spec:
11
- ;; FunctionControlDontInlineMask = 0x2 (2)
12
- ; CHECK-EXTENSION: %[[#]] = OpFunction %[[#]] DontInline
13
-
14
10
; Function Attrs: nounwind optnone noinline
15
11
define spir_func void @_Z3foov () #0 {
16
- ; CHECK-LABEL: _Z3foov:
12
+ ; CHECK-LABEL: _Z3foov
17
13
; CHECK: %4 = OpFunction %2 DontInline %3
18
14
; CHECK-NEXT: %5 = OpLabel
19
15
; CHECK-NEXT: OpReturn
23
19
}
24
20
25
21
attributes #0 = { nounwind optnone noinline }
22
+
26
23
;; NOTE: These prefixes are unused and the list is autogenerated. Do not add tests below this line:
27
24
; CHECK-EXTENSION: {{.*}}
28
25
; CHECK-NO-EXTENSION: {{.*}}
Original file line number Diff line number Diff line change @@ -206,7 +206,7 @@ class string:
206
206
# for this function. Then we match that when the variable is assigned with
207
207
# OpFunction and match its body.
208
208
ASM_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)' ,
210
210
flags = (re .M | re .S ),
211
211
)
212
212
You can’t perform that action at this time.
0 commit comments