[llvm] [llvm-lit] Add `sparc64` to the list of BE triple (PR #166113)
via llvm-commits
llvm-commits at lists.llvm.org
Sun Nov 2 17:13:06 PST 2025
https://github.com/koachan created https://github.com/llvm/llvm-project/pull/166113
Linux uses `sparc64` triple name on 64-bit SPARCs.
This should fix the test failure in discriminated-union.ll.
>From 6522451b11331acf062a2cacbfdec0416f02d8f9 Mon Sep 17 00:00:00 2001
From: Koakuma <koachan at protonmail.com>
Date: Mon, 3 Nov 2025 07:56:38 +0700
Subject: [PATCH] [llvm-lit] Add `sparc64` to the list of BE triple
Linux uses `sparc64` triple name on 64-bit SPARCs.
This should fix the test failure in discriminated-union.ll.
---
llvm/test/lit.cfg.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/llvm/test/lit.cfg.py b/llvm/test/lit.cfg.py
index 11a5a5785a6ec..974af4b571503 100644
--- a/llvm/test/lit.cfg.py
+++ b/llvm/test/lit.cfg.py
@@ -474,7 +474,7 @@ def enable_ptxas(ptxas_executable):
config.available_features.add("host-byteorder-" + sys.byteorder + "-endian")
if config.target_triple:
if re.match(
- r"(aarch64_be|arc|armeb|bpfeb|lanai|m68k|mips|mips64|powerpc|powerpc64|sparc|sparcv9|s390x|s390|tce|thumbeb)-.*",
+ r"(aarch64_be|arc|armeb|bpfeb|lanai|m68k|mips|mips64|powerpc|powerpc64|sparc|sparcv9|sparc64|s390x|s390|tce|thumbeb)-.*",
config.target_triple,
):
config.available_features.add("target-byteorder-big-endian")
More information about the llvm-commits
mailing list