[llvm] 63d3bd6 - [Exegesis] Fix test failures from #122775 on MacOSX and Fuchsia

Min Hsu via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 14 10:44:09 PST 2025


Author: Min Hsu
Date: 2025-01-14T10:43:58-08:00
New Revision: 63d3bd6d0caf8185aba49540fe2f67512fdf3a98

URL: https://github.com/llvm/llvm-project/commit/63d3bd6d0caf8185aba49540fe2f67512fdf3a98
DIFF: https://github.com/llvm/llvm-project/commit/63d3bd6d0caf8185aba49540fe2f67512fdf3a98.diff

LOG: [Exegesis] Fix test failures from #122775 on MacOSX and Fuchsia

I'm making this test to run only when exegesis-can-execute-x86_64.

Added: 
    llvm/test/tools/llvm-exegesis/X86/dry-run-measurement.test

Modified: 
    

Removed: 
    llvm/test/tools/llvm-exegesis/dry-run-measurement.test


################################################################################
diff  --git a/llvm/test/tools/llvm-exegesis/X86/dry-run-measurement.test b/llvm/test/tools/llvm-exegesis/X86/dry-run-measurement.test
new file mode 100644
index 000000000000000..cf13fd04261cac2
--- /dev/null
+++ b/llvm/test/tools/llvm-exegesis/X86/dry-run-measurement.test
@@ -0,0 +1,10 @@
+# RUN: llvm-exegesis --mode=latency --opcode-name=LEA64r --use-dummy-perf-counters --benchmark-phase=dry-run-measurement | FileCheck %s
+# REQUIRES: exegesis-can-execute-x86_64
+
+# This test makes sure that llvm-exegesis doesn't execute any snippet in the presence of dry-run measurement.
+
+# Should not contain misleading results.
+# CHECK: measurements:    []
+
+# Should not contain any error message.
+# CHECK: error:           ''

diff  --git a/llvm/test/tools/llvm-exegesis/dry-run-measurement.test b/llvm/test/tools/llvm-exegesis/dry-run-measurement.test
deleted file mode 100644
index 02e1ec521cf2766..000000000000000
--- a/llvm/test/tools/llvm-exegesis/dry-run-measurement.test
+++ /dev/null
@@ -1,11 +0,0 @@
-# RUN: llvm-exegesis --mtriple=riscv64 --mcpu=sifive-p470 --mode=latency --opcode-name=ADD --use-dummy-perf-counters --benchmark-phase=dry-run-measurement | FileCheck %s
-# REQUIRES: riscv-registered-target && native-registered-exegesis-target
-
-# This test makes sure that llvm-exegesis doesn't execute "cross-compiled" snippets in the presence of
-# --dry-run-measurement. RISC-V was chosen simply because most of the time we run tests on X86 machines.
-
-# Should not contain misleading results.
-# CHECK: measurements:    []
-
-# Should not contain error messages like "snippet crashed while running: Segmentation fault".
-# CHECK: error:           ''


        


More information about the llvm-commits mailing list