Skip to content

Commit cd12922

Browse files
committed
[test] Change llc -march= to -mtriple=
Similar to 806761a -march= is error-prone when running on a host whose OS is different.
1 parent 8d550aa commit cd12922

File tree

9 files changed

+8
-12
lines changed

9 files changed

+8
-12
lines changed

llvm/test/Analysis/CostModel/X86/scalarize.ll

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
; RUN: opt < %s -passes="print<cost-model>" 2>&1 -disable-output -mtriple=i386 -mcpu=corei7-avx | FileCheck %s -check-prefix=CHECK32
22
; RUN: opt < %s -passes="print<cost-model>" 2>&1 -disable-output -mtriple=x86_64-apple-macosx10.8.0 -mcpu=corei7-avx | FileCheck %s -check-prefix=CHECK64
33

4-
; Test vector scalarization costs.
5-
; RUN: llc < %s -march=x86 -mcpu=i386
6-
; RUN: llc < %s -march=x86 -mcpu=yonah
7-
84
%i4 = type <4 x i32>
95
%i8 = type <2 x i64>
106

llvm/test/CodeGen/MIR/X86/fixed-stack-memory-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 -run-pass none -o - %s | FileCheck %s
1+
# RUN: llc -mtriple=i686 -run-pass none -o - %s | FileCheck %s
22
# This test ensures that the MIR parser parses fixed stack memory operands
33
# correctly.
44

llvm/test/CodeGen/MIR/X86/fixed-stack-object-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 -run-pass none -o /dev/null %s 2>&1 | FileCheck %s
1+
# RUN: not llc -mtriple=i686 -run-pass none -o /dev/null %s 2>&1 | FileCheck %s
22

33
--- |
44

llvm/test/CodeGen/MIR/X86/fixed-stack-objects.mir

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

44
--- |

llvm/test/CodeGen/MIR/X86/stack-object-operands.mir

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2-
# RUN: llc -march=x86 -run-pass none -o - %s | FileCheck %s
2+
# RUN: llc -mtriple=i686 -run-pass none -o - %s | FileCheck %s
33
# This test ensures that the MIR parser parses stack object machine operands
44
# correctly.
55

llvm/test/CodeGen/X86/2006-10-02-BoolRetCrash.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: llc -march=x86 < %s
1+
; RUN: llc -mtriple=i686 < %s
22
; PR933
33

44
define fastcc i1 @test() {

llvm/test/MachineVerifier/test_copy_physregs_x86.mir

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# RUN: not --crash llc -march=x86-64 -run-pass=none -verify-machineinstrs -o /dev/null %s 2>&1 | FileCheck %s -implicit-check-not="Bad machine code"
1+
# RUN: not --crash llc -mtriple=x86_64 -run-pass=none -verify-machineinstrs -o /dev/null %s 2>&1 | FileCheck %s -implicit-check-not="Bad machine code"
22
# REQUIRES: x86-registered-target
33

44
# These copies have mismatched type sizes that are allowed because the

llvm/test/MachineVerifier/verify-regops.mir

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# RUN: not --crash llc -march=x86 -o - %s -run-pass=none -verify-machineinstrs \
1+
# RUN: not --crash llc -mtriple=i686 -o - %s -run-pass=none -verify-machineinstrs \
22
# RUN: 2>&1 | FileCheck %s
33
# REQUIRES: x86-registered-target
44
#

llvm/test/Transforms/NaryReassociate/NVPTX/nary-slsr.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
; RUN: opt < %s -passes=slsr,nary-reassociate -S | FileCheck %s
22
; RUN: opt < %s -passes=slsr -S | opt -passes='nary-reassociate' -S | FileCheck %s
3-
; RUN: llc < %s -march=nvptx64 -mcpu=sm_20 | FileCheck %s --check-prefix=PTX
3+
; RUN: llc < %s -mtriple=nvptx64 -mcpu=sm_20 | FileCheck %s --check-prefix=PTX
44

55
target datalayout = "e-i64:64-v16:16-v32:32-n16:32:64"
66

0 commit comments

Comments
 (0)