Skip to content

Commit 6e8718c

Browse files
committed
[ARC,test] Change llc -march= to -mtriple=
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), leaving a target triple which may not make sense. Therefore, -march= is error-prone and not recommended for tests without a target triple. The issue has been benign as we recognize arc-apple-darwin as ELF instead of rejecting it outrightly.
1 parent e339f0a commit 6e8718c

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

llvm/test/CodeGen/ARC/addrmode.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: llc -march=arc < %s | FileCheck %s
1+
; RUN: llc -mtriple=arc < %s | FileCheck %s
22

33
; CHECK-LABEL: copy
44
; CHECK-NOT: add

llvm/test/CodeGen/ARC/alu.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: llc -march=arc < %s | FileCheck %s
1+
; RUN: llc -mtriple=arc < %s | FileCheck %s
22

33
; CHECK-LABEL: add_r
44
; CHECK: add %r0, %r{{[01]}}, %r{{[01]}}

llvm/test/CodeGen/ARC/brcc.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: llc -march=arc < %s | FileCheck %s
1+
; RUN: llc -mtriple=arc < %s | FileCheck %s
22

33
; CHECK-LABEL: brcc1:
44
; CHECK: brne %r0, %r1, @.LBB0_2

llvm/test/CodeGen/ARC/call.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: llc -march=arc < %s | FileCheck %s
1+
; RUN: llc -mtriple=arc < %s | FileCheck %s
22

33

44
declare i32 @goo1(i32) nounwind

llvm/test/CodeGen/ARC/intrinsics.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: llc -march=arc < %s | FileCheck %s
1+
; RUN: llc -mtriple=arc < %s | FileCheck %s
22

33
target triple = "arc"
44

llvm/test/CodeGen/ARC/ldst.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: llc -march=arc < %s | FileCheck %s
1+
; RUN: llc -mtriple=arc < %s | FileCheck %s
22

33
; CHECK-LABEL: load32
44
; CHECK: ld %r0, [%r0,16000]

0 commit comments

Comments
 (0)