Skip to content

Commit 40a4cbb

Browse files
committed
[MIR,test] Change llc -march=x86-64 to -mtriple=x86_64
Similar to 806761a -mtriple= specifies the full target triple while -march= merely sets the architecture part of the default target triple (e.g. Windows, macOS). Therefore, -march= is error-prone and not recommended for tests without a target triple. The issue has been benign as these MIR tests do not utilize object file format specific detail, but it's good to change these tests to neighbor files that use -mtriple=x86_64
1 parent 1464b8e commit 40a4cbb

File tree

190 files changed

+194
-194
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

190 files changed

+194
-194
lines changed

llvm/test/CodeGen/MIR/X86/basic-block-liveins.mir

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# RUN: llc -march=x86-64 -run-pass none -o - %s | FileCheck %s
1+
# RUN: llc -mtriple=x86_64 -run-pass none -o - %s | FileCheck %s
22
# This test ensures that the MIR parser parses basic block liveins correctly.
33

44
--- |

llvm/test/CodeGen/MIR/X86/basic-block-not-at-start-of-line-error.mir

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# RUN: not llc -march=x86-64 -run-pass none -o /dev/null %s 2>&1 | FileCheck %s
1+
# RUN: not llc -mtriple=x86_64 -run-pass none -o /dev/null %s 2>&1 | FileCheck %s
22

33
--- |
44

llvm/test/CodeGen/MIR/X86/block-address-operands.mir

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# RUN: llc -march=x86-64 -run-pass none -o - %s | FileCheck %s
1+
# RUN: llc -mtriple=x86_64 -run-pass none -o - %s | FileCheck %s
22
# This test ensures that the MIR parser parses the block address operands
33
# correctly.
44

llvm/test/CodeGen/MIR/X86/callee-saved-info.mir

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# RUN: llc -march=x86-64 -run-pass none -o - %s | FileCheck %s
1+
# RUN: llc -mtriple=x86_64 -run-pass none -o - %s | FileCheck %s
22
# This test ensures that the MIR parser parses callee saved information in the
33
# stack objects correctly.
44

llvm/test/CodeGen/MIR/X86/cfi-def-cfa-offset.mir

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# RUN: llc -march=x86-64 -run-pass none -o - %s | FileCheck %s
1+
# RUN: llc -mtriple=x86_64 -run-pass none -o - %s | FileCheck %s
22
# This test ensures that the MIR parser parses the cfi offset operands
33
# correctly.
44

llvm/test/CodeGen/MIR/X86/cfi-def-cfa-register.mir

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# RUN: llc -march=x86-64 -run-pass none -o - %s | FileCheck %s
1+
# RUN: llc -mtriple=x86_64 -run-pass none -o - %s | FileCheck %s
22
# This test ensures that the MIR parser parses the cfi def_cfa_register
33
# operands correctly.
44

llvm/test/CodeGen/MIR/X86/cfi-offset.mir

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# RUN: llc -march=x86-64 -run-pass none -o - %s | FileCheck %s
1+
# RUN: llc -mtriple=x86_64 -run-pass none -o - %s | FileCheck %s
22
# This test ensures that the MIR parser parses the cfi offset operands
33
# correctly.
44

llvm/test/CodeGen/MIR/X86/constant-pool-item-redefinition-error.mir

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# RUN: not llc -march=x86-64 -run-pass none -o /dev/null %s 2>&1 | FileCheck %s
1+
# RUN: not llc -mtriple=x86_64 -run-pass none -o /dev/null %s 2>&1 | FileCheck %s
22

33
--- |
44

llvm/test/CodeGen/MIR/X86/constant-pool.mir

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# RUN: llc -march=x86-64 -run-pass none -o - %s | FileCheck %s
1+
# RUN: llc -mtriple=x86_64 -run-pass none -o - %s | FileCheck %s
22
# This test ensures that the MIR parser parses constant pool constants and
33
# constant pool operands correctly.
44

llvm/test/CodeGen/MIR/X86/constant-value-error.mir

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# RUN: not llc -march=x86-64 -run-pass none -o /dev/null %s 2>&1 | FileCheck %s
1+
# RUN: not llc -mtriple=x86_64 -run-pass none -o /dev/null %s 2>&1 | FileCheck %s
22
# This test ensures that the MIR parser reports an error when parsing an invalid
33
# constant value.
44

0 commit comments

Comments
 (0)