[llvm] 9441103 - [Hexagon][test] Fix some tests on linux-musl
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Tue May 31 19:55:59 PDT 2022
Author: Fangrui Song
Date: 2022-05-31T19:55:50-07:00
New Revision: 944110353b970fc99de3f012292b4c29d4d91999
URL: https://github.com/llvm/llvm-project/commit/944110353b970fc99de3f012292b4c29d4d91999
DIFF: https://github.com/llvm/llvm-project/commit/944110353b970fc99de3f012292b4c29d4d91999.diff
LOG: [Hexagon][test] Fix some tests on linux-musl
-march=hexagon uses the default target triple and changes the arch part of
hexagon. On linux-musl, this essentially becomes hexagon-unknown-linux-musl
which has different code generation. Use -mtriple instead.
Link: https://github.com/llvm/llvm-project/issues/48936
Added:
Modified:
llvm/test/CodeGen/Hexagon/csr-stubs-spill-threshold.ll
llvm/test/CodeGen/Hexagon/long-calls.ll
llvm/test/CodeGen/Hexagon/mlong-calls.ll
llvm/test/CodeGen/Hexagon/pic-regusage.ll
llvm/test/CodeGen/Hexagon/runtime-stkchk.ll
Removed:
################################################################################
diff --git a/llvm/test/CodeGen/Hexagon/csr-stubs-spill-threshold.ll b/llvm/test/CodeGen/Hexagon/csr-stubs-spill-threshold.ll
index afbef217911ad..30d3a6605d3de 100644
--- a/llvm/test/CodeGen/Hexagon/csr-stubs-spill-threshold.ll
+++ b/llvm/test/CodeGen/Hexagon/csr-stubs-spill-threshold.ll
@@ -1,4 +1,4 @@
-; RUN: llc -march=hexagon -O2 -spill-func-threshold=2 < %s | FileCheck %s
+; RUN: llc -mtriple=hexagon -O2 -spill-func-threshold=2 < %s | FileCheck %s
declare i32 @f0(i32, i32, i32, i32, i32, i32)
diff --git a/llvm/test/CodeGen/Hexagon/long-calls.ll b/llvm/test/CodeGen/Hexagon/long-calls.ll
index 628362783c9c0..916e74f4fdc1e 100644
--- a/llvm/test/CodeGen/Hexagon/long-calls.ll
+++ b/llvm/test/CodeGen/Hexagon/long-calls.ll
@@ -1,4 +1,4 @@
-; RUN: llc -march=hexagon -enable-save-restore-long -hexagon-initial-cfg-cleanup=0 < %s | FileCheck %s
+; RUN: llc -mtriple=hexagon -enable-save-restore-long -hexagon-initial-cfg-cleanup=0 < %s | FileCheck %s
; Check that the -long-calls feature is supported by the backend.
diff --git a/llvm/test/CodeGen/Hexagon/mlong-calls.ll b/llvm/test/CodeGen/Hexagon/mlong-calls.ll
index d76b87f987fe8..e516b3e8d48ae 100644
--- a/llvm/test/CodeGen/Hexagon/mlong-calls.ll
+++ b/llvm/test/CodeGen/Hexagon/mlong-calls.ll
@@ -1,4 +1,4 @@
-; RUN: llc -hexagon-long-calls -march=hexagon -enable-save-restore-long=true < %s | FileCheck %s
+; RUN: llc -hexagon-long-calls -mtriple=hexagon -enable-save-restore-long=true < %s | FileCheck %s
; CHECK: call ##f1
; CHECK: jump ##__restore
diff --git a/llvm/test/CodeGen/Hexagon/pic-regusage.ll b/llvm/test/CodeGen/Hexagon/pic-regusage.ll
index 9d3b6cec39e37..36b5072dd7928 100644
--- a/llvm/test/CodeGen/Hexagon/pic-regusage.ll
+++ b/llvm/test/CodeGen/Hexagon/pic-regusage.ll
@@ -1,4 +1,4 @@
-; RUN: llc -march=hexagon -relocation-model=pic < %s | FileCheck %s
+; RUN: llc -mtriple=hexagon -relocation-model=pic < %s | FileCheck %s
; Force the use of R14 (by clobbering everything else in the inline asm).
; Make sure that R14 is not set before the __save call (which will clobber
diff --git a/llvm/test/CodeGen/Hexagon/runtime-stkchk.ll b/llvm/test/CodeGen/Hexagon/runtime-stkchk.ll
index 66e93d02ef513..2ab0393d92a13 100644
--- a/llvm/test/CodeGen/Hexagon/runtime-stkchk.ll
+++ b/llvm/test/CodeGen/Hexagon/runtime-stkchk.ll
@@ -1,4 +1,4 @@
-; RUN: llc -march=hexagon -mcpu=hexagonv55 -enable-stackovf-sanitizer < %s | FileCheck %s
+; RUN: llc -mtriple=hexagon -mcpu=hexagonv55 -enable-stackovf-sanitizer < %s | FileCheck %s
; CHECK-LABEL: foo_1
; CHECK: __runtime_stack_check
More information about the llvm-commits
mailing list