Skip to content

Commit 02787fa

Browse files
committed
Empty match for func_name_separator and update test
1 parent 8291c40 commit 02787fa

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed
Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,15 @@
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
1511
define 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
@@ -23,6 +19,7 @@ entry:
2319
}
2420

2521
attributes #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: {{.*}}

llvm/utils/UpdateTestChecks/asm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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.
208208
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)',
210210
flags=(re.M | re.S),
211211
)
212212

0 commit comments

Comments
 (0)