Skip to content

Commit 9441103

Browse files
committed
[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: #48936
1 parent 1013967 commit 9441103

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

llvm/test/CodeGen/Hexagon/csr-stubs-spill-threshold.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: llc -march=hexagon -O2 -spill-func-threshold=2 < %s | FileCheck %s
1+
; RUN: llc -mtriple=hexagon -O2 -spill-func-threshold=2 < %s | FileCheck %s
22

33
declare i32 @f0(i32, i32, i32, i32, i32, i32)
44

llvm/test/CodeGen/Hexagon/long-calls.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: llc -march=hexagon -enable-save-restore-long -hexagon-initial-cfg-cleanup=0 < %s | FileCheck %s
1+
; RUN: llc -mtriple=hexagon -enable-save-restore-long -hexagon-initial-cfg-cleanup=0 < %s | FileCheck %s
22

33
; Check that the -long-calls feature is supported by the backend.
44

llvm/test/CodeGen/Hexagon/mlong-calls.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: llc -hexagon-long-calls -march=hexagon -enable-save-restore-long=true < %s | FileCheck %s
1+
; RUN: llc -hexagon-long-calls -mtriple=hexagon -enable-save-restore-long=true < %s | FileCheck %s
22

33
; CHECK: call ##f1
44
; CHECK: jump ##__restore

llvm/test/CodeGen/Hexagon/pic-regusage.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: llc -march=hexagon -relocation-model=pic < %s | FileCheck %s
1+
; RUN: llc -mtriple=hexagon -relocation-model=pic < %s | FileCheck %s
22

33
; Force the use of R14 (by clobbering everything else in the inline asm).
44
; Make sure that R14 is not set before the __save call (which will clobber

llvm/test/CodeGen/Hexagon/runtime-stkchk.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: llc -march=hexagon -mcpu=hexagonv55 -enable-stackovf-sanitizer < %s | FileCheck %s
1+
; RUN: llc -mtriple=hexagon -mcpu=hexagonv55 -enable-stackovf-sanitizer < %s | FileCheck %s
22

33
; CHECK-LABEL: foo_1
44
; CHECK: __runtime_stack_check

0 commit comments

Comments
 (0)