[llvm] Hexagon: Use -mtriple instead of -march in a couple tests (PR #176790)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 19 10:04:37 PST 2026


https://github.com/arsenm created https://github.com/llvm/llvm-project/pull/176790

Most tests were converted to avoid -march in 2024.

>From 022ea7bbe07826972147603179ba735f15f74dac Mon Sep 17 00:00:00 2001
From: Matt Arsenault <Matthew.Arsenault at amd.com>
Date: Mon, 19 Jan 2026 19:02:23 +0100
Subject: [PATCH] Hexagon: Use -mtriple instead of -march in a couple tests

Most tests were converted to avoid -march in 2024.
---
 llvm/test/CodeGen/Hexagon/fp16-promote.ll | 2 +-
 llvm/test/CodeGen/Hexagon/libcall_tail.ll | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/llvm/test/CodeGen/Hexagon/fp16-promote.ll b/llvm/test/CodeGen/Hexagon/fp16-promote.ll
index 1ef0a133ce30a..31bdb7a126e37 100644
--- a/llvm/test/CodeGen/Hexagon/fp16-promote.ll
+++ b/llvm/test/CodeGen/Hexagon/fp16-promote.ll
@@ -1,5 +1,5 @@
 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
-; RUN: llc -march=hexagon  < %s | FileCheck %s
+; RUN: llc -mtriple=hexagon--  < %s | FileCheck %s
 
 define half @freeze_half_undef() nounwind {
 ; CHECK-LABEL: freeze_half_undef:
diff --git a/llvm/test/CodeGen/Hexagon/libcall_tail.ll b/llvm/test/CodeGen/Hexagon/libcall_tail.ll
index 2ea95abe8055a..fe51971d6e75e 100644
--- a/llvm/test/CodeGen/Hexagon/libcall_tail.ll
+++ b/llvm/test/CodeGen/Hexagon/libcall_tail.ll
@@ -1,7 +1,7 @@
 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 6
 ; Test that libcalls used only by return are tail called.
 ; This tests non-float libcalls
-; RUN: llc -march=hexagon -verify-machineinstrs < %s | FileCheck %s
+; RUN: llc -mtriple=hexagon-- -verify-machineinstrs < %s | FileCheck %s
 
 define i32 @udiv(i32 %a, i32 %b) nounwind {
 ; CHECK-LABEL: udiv:



More information about the llvm-commits mailing list