[llvm] [Exegesis] CPU selection, when native arch and target mismatch (PR #131014)
Min-Yih Hsu via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 24 09:53:09 PDT 2025
================
@@ -0,0 +1,3 @@
+# RUN: not llvm-exegesis -mtriple=riscv64-unknown-linux-gnu -mode=latency --benchmark-phase=assemble-measured-code -opcode-name=ADD 2>&1 | FileCheck %s
----------------
mshockwave wrote:
this test will fail when running it on a RISC-V machine, because the host CPU triple would match `-mtriple`. An easy fix would be moving this test under `test/tools/llvm-exegesis/X86` because tests under that folder will only be executed when the host is X86:
https://github.com/llvm/llvm-project/blob/869c2a9a1052144957d3ed57378cf927078f4b27/llvm/test/tools/llvm-exegesis/X86/lit.local.cfg#L4
https://github.com/llvm/llvm-project/pull/131014
More information about the llvm-commits
mailing list