[llvm] Hexagon: Use -mtriple instead of -march in a couple tests (PR #176790)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 19 10:05:06 PST 2026
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-backend-hexagon
Author: Matt Arsenault (arsenm)
<details>
<summary>Changes</summary>
Most tests were converted to avoid -march in 2024.
---
Full diff: https://github.com/llvm/llvm-project/pull/176790.diff
2 Files Affected:
- (modified) llvm/test/CodeGen/Hexagon/fp16-promote.ll (+1-1)
- (modified) llvm/test/CodeGen/Hexagon/libcall_tail.ll (+1-1)
``````````diff
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:
``````````
</details>
https://github.com/llvm/llvm-project/pull/176790
More information about the llvm-commits
mailing list