Skip to content

Commit f1987c7

Browse files
committed
[XCore,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 xcore-apple-darwin as ELF instead of rejecting it outrightly.
1 parent 7284902 commit f1987c7

Some content is hidden

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

59 files changed

+62
-62
lines changed

llvm/test/CodeGen/XCore/2008-11-17-Shl64.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: llc < %s -march=xcore > %t1.s
1+
; RUN: llc < %s -mtriple=xcore > %t1.s
22
; PR3080
33
define i64 @test(i64 %a) {
44
%result = shl i64 %a, 1

llvm/test/CodeGen/XCore/2009-01-08-Crash.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: llc < %s -march=xcore > %t1.s
1+
; RUN: llc < %s -mtriple=xcore > %t1.s
22
;; This caused a compilation failure since the
33
;; address arithmetic was folded into the LDWSP instruction,
44
;; resulting in a negative offset which eliminateFrameIndex was

llvm/test/CodeGen/XCore/2009-01-14-Remat-Crash.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: llc < %s -march=xcore > %t1.s
1+
; RUN: llc < %s -mtriple=xcore > %t1.s
22
; PR3324
33
define double @f1(double %a, double %b, double %c, double %d, double %e, double %f, double %g) nounwind {
44
entry:

llvm/test/CodeGen/XCore/2009-03-27-v2f64-param.ll

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

44
define i32 @vector_param(<2 x double> %x) nounwind {

llvm/test/CodeGen/XCore/2009-07-15-store192.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: llc < %s -march=xcore > %t1.s
1+
; RUN: llc < %s -mtriple=xcore > %t1.s
22
define void @store32(ptr %p) nounwind {
33
entry:
44
store i192 0, ptr %p, align 4

llvm/test/CodeGen/XCore/2010-02-25-LSR-Crash.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: llc < %s -march=xcore
1+
; RUN: llc < %s -mtriple=xcore
22
target datalayout = "e-p:32:32:32-i1:8:32-i8:8:32-i16:16:32-i32:32:32-i64:32:32-f32:32:32-f64:32:32-v64:64:64-v128:128:128-a0:0:32-n32"
33
target triple = "xcore-xmos-elf"
44

llvm/test/CodeGen/XCore/2011-01-31-DAGCombineBug.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: llc < %s -march=xcore
1+
; RUN: llc < %s -mtriple=xcore
22
%struct.st = type <{ i8, i32, i8, i32, i8, i32 }>
33

44
@x = external global %struct.st, align 4

llvm/test/CodeGen/XCore/2011-08-01-DynamicAllocBug.ll

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

33
declare void @g()
44
declare ptr @llvm.stacksave() nounwind
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
RUN: llc -O0 -march=xcore -asm-verbose < %S/../Inputs/DbgValueOtherTargets.ll | FileCheck %S/../Inputs/DbgValueOtherTargets.ll
1+
RUN: llc -O0 -mtriple=xcore -asm-verbose < %S/../Inputs/DbgValueOtherTargets.ll | FileCheck %S/../Inputs/DbgValueOtherTargets.ll

llvm/test/CodeGen/XCore/addsub64.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: llc < %s -march=xcore | FileCheck %s
1+
; RUN: llc < %s -mtriple=xcore | FileCheck %s
22
define i64 @add64(i64 %a, i64 %b) {
33
%result = add i64 %a, %b
44
ret i64 %result

0 commit comments

Comments
 (0)