[llvm] c5ee3c0 - [test] Add triple in test introduced in #98317 (#98600)

via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 12 00:55:19 PDT 2024


Author: paperchalice
Date: 2024-07-12T15:55:14+08:00
New Revision: c5ee3c05ca61f3fae11337c5853aee7b450a9dc6

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

LOG: [test] Add triple in test introduced in #98317 (#98600)

Missing `-mtriple` in test, causes failure on some none x86 default
targets.

Added: 
    

Modified: 
    llvm/test/CodeGen/X86/machine-block-freq.mir

Removed: 
    


################################################################################
diff  --git a/llvm/test/CodeGen/X86/machine-block-freq.mir b/llvm/test/CodeGen/X86/machine-block-freq.mir
index bdfb39ccb09ab..5740f28268e1b 100644
--- a/llvm/test/CodeGen/X86/machine-block-freq.mir
+++ b/llvm/test/CodeGen/X86/machine-block-freq.mir
@@ -1,4 +1,4 @@
-# RUN: llc --passes='print<machine-block-freq>' -filetype=null 2>&1 %s | FileCheck %s
+# RUN: llc -mtriple=x86_64-gnu-linux --passes='print<machine-block-freq>' -filetype=null 2>&1 %s | FileCheck %s
 
 ---
 name:            is_odd


        


More information about the llvm-commits mailing list