[llvm] [UTC] Support arm64-apple-macosx in update_llc_test_checks.py. (PR #73568)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 27 13:06:54 PST 2023


https://github.com/fhahn created https://github.com/llvm/llvm-project/pull/73568

arm64-apple-macosx is the default triple (usually with the macOS version number) on arm64 macOS. Support it in update_llc_test_checks.py.

>From 776805c3ca48aafd9a73fc8504ebaf46e5a05da3 Mon Sep 17 00:00:00 2001
From: Florian Hahn <flo at fhahn.com>
Date: Mon, 27 Nov 2023 21:03:27 +0000
Subject: [PATCH] [UTC] Support arm64-apple-macosx in
 update_llc_test_checks.py.

arm64-apple-macosx is the default triple (usually with the macOS version
number) on arm64 macOS. Support it in update_llc_test_checks.py.
---
 .../update_llc_test_checks/Inputs/aarch64_function_name.ll       | 1 +
 .../Inputs/aarch64_function_name.ll.expected                     | 1 +
 llvm/utils/UpdateTestChecks/asm.py                               | 1 +
 3 files changed, 3 insertions(+)

diff --git a/llvm/test/tools/UpdateTestChecks/update_llc_test_checks/Inputs/aarch64_function_name.ll b/llvm/test/tools/UpdateTestChecks/update_llc_test_checks/Inputs/aarch64_function_name.ll
index d4072fa870896bd..36166d8d37e2dde 100644
--- a/llvm/test/tools/UpdateTestChecks/update_llc_test_checks/Inputs/aarch64_function_name.ll
+++ b/llvm/test/tools/UpdateTestChecks/update_llc_test_checks/Inputs/aarch64_function_name.ll
@@ -2,6 +2,7 @@
 
 ; RUN: llc -mtriple=aarch64-unknown-linux < %s | FileCheck --check-prefix=LINUX %s
 ; RUN: llc -mtriple=aarch64-apple-darwin < %s | FileCheck --check-prefix=DARWIN %s
+; RUN: llc -mtriple=arm64-apple-macosx < %s | FileCheck --check-prefix=DARWIN %s
 
 define hidden i32 @"_Z54bar$ompvariant$bar"() {
 entry:
diff --git a/llvm/test/tools/UpdateTestChecks/update_llc_test_checks/Inputs/aarch64_function_name.ll.expected b/llvm/test/tools/UpdateTestChecks/update_llc_test_checks/Inputs/aarch64_function_name.ll.expected
index 8367156d9e51bea..1118656bad7b608 100644
--- a/llvm/test/tools/UpdateTestChecks/update_llc_test_checks/Inputs/aarch64_function_name.ll.expected
+++ b/llvm/test/tools/UpdateTestChecks/update_llc_test_checks/Inputs/aarch64_function_name.ll.expected
@@ -3,6 +3,7 @@
 
 ; RUN: llc -mtriple=aarch64-unknown-linux < %s | FileCheck --check-prefix=LINUX %s
 ; RUN: llc -mtriple=aarch64-apple-darwin < %s | FileCheck --check-prefix=DARWIN %s
+; RUN: llc -mtriple=arm64-apple-macosx < %s | FileCheck --check-prefix=DARWIN %s
 
 define hidden i32 @"_Z54bar$ompvariant$bar"() {
 ; LINUX-LABEL: _Z54bar$ompvariant$bar:
diff --git a/llvm/utils/UpdateTestChecks/asm.py b/llvm/utils/UpdateTestChecks/asm.py
index 7c3c60032e21301..f0c456a1648df4e 100644
--- a/llvm/utils/UpdateTestChecks/asm.py
+++ b/llvm/utils/UpdateTestChecks/asm.py
@@ -552,6 +552,7 @@ def get_run_handler(triple):
         "arm64e": (scrub_asm_arm_eabi, ASM_FUNCTION_AARCH64_DARWIN_RE),
         "arm64ec": (scrub_asm_arm_eabi, ASM_FUNCTION_AARCH64_RE),
         "arm64-apple-ios": (scrub_asm_arm_eabi, ASM_FUNCTION_AARCH64_DARWIN_RE),
+        "arm64-apple-macosx": (scrub_asm_arm_eabi, ASM_FUNCTION_AARCH64_DARWIN_RE),
         "armv7-apple-ios": (scrub_asm_arm_eabi, ASM_FUNCTION_ARM_IOS_RE),
         "armv7-apple-darwin": (scrub_asm_arm_eabi, ASM_FUNCTION_ARM_DARWIN_RE),
         "thumb": (scrub_asm_arm_eabi, ASM_FUNCTION_ARM_RE),



More information about the llvm-commits mailing list