Skip to content

Commit 4ee950e

Browse files
committed
update_test_checks: support more arm64_32-apple-watchos triples
Having the version in `get_run_handlers` meant that a RUN line without the version in it would not match, and therefore UTC would generate a useless catch-all check of the form: ``` ;; NOTE: These prefixes are unused and the list is autogenerated. Do not add tests below this line: ; CHECK: {{.*}} ``` This patch also adds `arm64_32` as a base-level run handler, and assumes it will always apply to a darwin target (which is currently the case for all arm64_32-* triples I see in tree currently).
1 parent 0b4af3a commit 4ee950e

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

llvm/test/CodeGen/AArch64/lower-ptrmask-arm64_32.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 5
2-
; RUN: llc -mtriple=arm64_32-apple-watchos2.0.0 %s -o - | FileCheck %s
2+
; RUN: llc -mtriple=arm64_32-apple-watchos %s -o - | FileCheck %s
33

44
define ptr @issue94075(ptr %p) {
55
; CHECK-LABEL: issue94075:

llvm/utils/UpdateTestChecks/asm.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -534,8 +534,9 @@ def get_run_handler(triple):
534534
"i686": (scrub_asm_x86, ASM_FUNCTION_X86_RE),
535535
"x86": (scrub_asm_x86, ASM_FUNCTION_X86_RE),
536536
"i386": (scrub_asm_x86, ASM_FUNCTION_X86_RE),
537+
"arm64_32": (scrub_asm_arm_eabi, ASM_FUNCTION_AARCH64_DARWIN_RE),
537538
"arm64_32-apple-ios": (scrub_asm_arm_eabi, ASM_FUNCTION_AARCH64_DARWIN_RE),
538-
"arm64_32-apple-watchos2.0.0": (
539+
"arm64_32-apple-watchos": (
539540
scrub_asm_arm_eabi,
540541
ASM_FUNCTION_AARCH64_DARWIN_RE,
541542
),

0 commit comments

Comments
 (0)