[llvm] [Instrumentation] Fix test failure in #115471 (PR #115596)

via llvm-commits llvm-commits at lists.llvm.org
Sat Nov 9 01:01:50 PST 2024


https://github.com/paperchalice created https://github.com/llvm/llvm-project/pull/115596

Add triple to indicate this is x86 test.

>From fd24fd24e2256a5bc01a996f78c6b97419718731 Mon Sep 17 00:00:00 2001
From: PaperChalice <liujunchang97 at outlook.com>
Date: Sat, 9 Nov 2024 17:00:47 +0800
Subject: [PATCH] [Instrumentation] Fix test failure in #115471

---
 llvm/test/CodeGen/X86/optnone.mir | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/llvm/test/CodeGen/X86/optnone.mir b/llvm/test/CodeGen/X86/optnone.mir
index ae572cd6c3a50e..ba852cebc35e03 100644
--- a/llvm/test/CodeGen/X86/optnone.mir
+++ b/llvm/test/CodeGen/X86/optnone.mir
@@ -1,4 +1,4 @@
-# RUN: llc -passes=machine-cse -debug-pass-manager %s -o - 2>&1 | FileCheck %s
+# RUN: llc -mtriple=x86_64-- -passes=machine-cse -debug-pass-manager %s -o - 2>&1 | FileCheck %s
 
 # CHECK: Skipping pass MachineCSEPass on test_optnone due to optnone attribute
 # CHECK: Running pass: MachineCSEPass on test_opt



More information about the llvm-commits mailing list