[Hexagon][test] Fix some tests on linux-musl
authorFangrui Song <i@maskray.me>
Wed, 1 Jun 2022 02:55:50 +0000 (19:55 -0700)
committerFangrui Song <i@maskray.me>
Wed, 1 Jun 2022 02:55:50 +0000 (19:55 -0700)
commit944110353b970fc99de3f012292b4c29d4d91999
treea13edff25f238de4c5a1a21a14a353b2f16bcb20
parent1013967436694f362097a7c12f675c0ad7de90b7
[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
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