diff options
Diffstat (limited to 'llvm/utils/UpdateTestChecks')
-rw-r--r-- | llvm/utils/UpdateTestChecks/asm.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/llvm/utils/UpdateTestChecks/asm.py b/llvm/utils/UpdateTestChecks/asm.py index 3754aa2..98b4b5d 100644 --- a/llvm/utils/UpdateTestChecks/asm.py +++ b/llvm/utils/UpdateTestChecks/asm.py @@ -165,12 +165,10 @@ ASM_FUNCTION_AARCH64_DARWIN_RE = re.compile( ) ASM_FUNCTION_ARM_DARWIN_RE = re.compile( - r"@[ \t]--[ \t]Begin[ \t]function[ \t](?P<func>[^ \t]+?)\n" - r"^[ \t]*\.globl[ \t]*_(?P=func)[ \t]*" + r"^[ \t]*\.globl[ \t]*_(?P<func>[^ \t]+)[ \t]*\@[ \t]*--[ \t]Begin[ \t]function[ \t](?P=func)\n" r"(?P<directives>.*?)" - r"^_(?P=func):\n[ \t]*" - r"(?P<body>.*?)" - r"^[ \t]*@[ \t]--[ \t]End[ \t]function", + r"^_(?P=func):.*?\n" + r"(?P<body>.*?)(?=^[ \t]*@[ \t]--[ \t]End[ \t]function)", flags=(re.M | re.S), ) @@ -593,6 +591,7 @@ def get_run_handler(triple): "riscv64": (scrub_asm_riscv, ASM_FUNCTION_RISCV_RE), "lanai": (scrub_asm_lanai, ASM_FUNCTION_LANAI_RE), "sparc": (scrub_asm_sparc, ASM_FUNCTION_SPARC_RE), + "spirv": (scrub_asm_spirv, ASM_FUNCTION_SPIRV_RE), "spirv32": (scrub_asm_spirv, ASM_FUNCTION_SPIRV_RE), "spirv64": (scrub_asm_spirv, ASM_FUNCTION_SPIRV_RE), "s390x": (scrub_asm_systemz, ASM_FUNCTION_SYSTEMZ_RE), |