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