diff options
author | Luke Lau <luke@igalia.com> | 2023-01-06 13:55:28 +0000 |
---|---|---|
committer | Luke Lau <luke@igalia.com> | 2023-01-10 10:58:23 +0000 |
commit | f085d089f9db37f8a3d0e3d15c5a478574a4327d (patch) | |
tree | bee41f802922cba76827224ba35cda7c4e2f1b36 /llvm/utils/UpdateTestChecks/asm.py | |
parent | 0e9956204db3802ac94a7727bf2fe35c753cc8f5 (diff) | |
download | llvm-f085d089f9db37f8a3d0e3d15c5a478574a4327d.zip llvm-f085d089f9db37f8a3d0e3d15c5a478574a4327d.tar.gz llvm-f085d089f9db37f8a3d0e3d15c5a478574a4327d.tar.bz2 |
[UpdateTestChecks] Add wasm64 target
wasm32 was already supported, so here I've just reused the same regex. I'm not sure if this is actually correct: I don't know for certain if wasm32 and wasm64 have different output formats, but it seems to work.
Reviewed By: dschuff, asb
Differential Revision: https://reviews.llvm.org/D141130
Diffstat (limited to 'llvm/utils/UpdateTestChecks/asm.py')
-rw-r--r-- | llvm/utils/UpdateTestChecks/asm.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/llvm/utils/UpdateTestChecks/asm.py b/llvm/utils/UpdateTestChecks/asm.py index 56bdb56..f32c6ec 100644 --- a/llvm/utils/UpdateTestChecks/asm.py +++ b/llvm/utils/UpdateTestChecks/asm.py @@ -172,7 +172,7 @@ ASM_FUNCTION_ARM_IOS_RE = re.compile( r'^[ \t]*@[ \t]--[ \t]End[ \t]function', flags=(re.M | re.S)) -ASM_FUNCTION_WASM32_RE = re.compile( +ASM_FUNCTION_WASM_RE = re.compile( r'^_?(?P<func>[^:]+):[ \t]*#+[ \t]*@"?(?P=func)"?\n' r'(?P<body>.*?)\n' r'^\s*(\.Lfunc_end[0-9]+:\n|end_function)', @@ -413,7 +413,7 @@ def scrub_asm_systemz(asm, args): asm = common.SCRUB_TRAILING_WHITESPACE_RE.sub(r'', asm) return asm -def scrub_asm_wasm32(asm, args): +def scrub_asm_wasm(asm, args): # Scrub runs of whitespace out of the assembly, but leave the leading # whitespace in place. asm = common.SCRUB_WHITESPACE_RE.sub(r' ', asm) @@ -509,7 +509,8 @@ def get_run_handler(triple): 'lanai': (scrub_asm_lanai, ASM_FUNCTION_LANAI_RE), 'sparc': (scrub_asm_sparc, ASM_FUNCTION_SPARC_RE), 's390x': (scrub_asm_systemz, ASM_FUNCTION_SYSTEMZ_RE), - 'wasm32': (scrub_asm_wasm32, ASM_FUNCTION_WASM32_RE), + 'wasm32': (scrub_asm_wasm, ASM_FUNCTION_WASM_RE), + 'wasm64': (scrub_asm_wasm, ASM_FUNCTION_WASM_RE), 've': (scrub_asm_ve, ASM_FUNCTION_VE_RE), 'csky': (scrub_asm_csky, ASM_FUNCTION_CSKY_RE), 'nvptx': (scrub_asm_nvptx, ASM_FUNCTION_NVPTX_RE), |