Skip to content

Commit 7284902

Browse files
committed
[Sparc,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 sparc*-apple-darwin as ELF instead of rejecting it outrightly.
1 parent 9ef1d37 commit 7284902

Some content is hidden

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

66 files changed

+136
-136
lines changed

llvm/test/CodeGen/SPARC/2006-01-22-BitConvertLegalize.ll

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

33
define void @execute_list() {
44
%tmp.33.i = fdiv float 0.000000e+00, 0.000000e+00 ; <float> [#uses=1]

llvm/test/CodeGen/SPARC/2007-05-09-JumpTables.ll

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

33
; We cannot emit jump tables on Sparc, but we should correctly handle this case.
44

llvm/test/CodeGen/SPARC/2007-07-05-LiveIntervalAssert.ll

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

44
declare float @sinf(float)

llvm/test/CodeGen/SPARC/2008-10-10-InlineAsmMemoryOperand.ll

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

44
target datalayout = "E-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-f128:128:128"

llvm/test/CodeGen/SPARC/2008-10-10-InlineAsmRegOperand.ll

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

44
target datalayout = "E-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-f128:128:128"

llvm/test/CodeGen/SPARC/2009-08-28-PIC.ll

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
; RUN: llc -march=sparc --relocation-model=pic < %s | FileCheck %s --check-prefix=V8
2-
; RUN: llc -march=sparcv9 --relocation-model=pic < %s | FileCheck %s --check-prefix=V9
3-
; RUN: llc -march=sparc --relocation-model=pic < %s -O0 | FileCheck %s --check-prefix=V8UNOPT
4-
; RUN: llc -march=sparcv9 --relocation-model=pic < %s -O0 | FileCheck %s --check-prefix=V9UNOPT
1+
; RUN: llc -mtriple=sparc --relocation-model=pic < %s | FileCheck %s --check-prefix=V8
2+
; RUN: llc -mtriple=sparcv9 --relocation-model=pic < %s | FileCheck %s --check-prefix=V9
3+
; RUN: llc -mtriple=sparc --relocation-model=pic < %s -O0 | FileCheck %s --check-prefix=V8UNOPT
4+
; RUN: llc -mtriple=sparcv9 --relocation-model=pic < %s -O0 | FileCheck %s --check-prefix=V9UNOPT
55

66

77
; V8-LABEL: func

llvm/test/CodeGen/SPARC/2009-08-28-WeakLinkage.ll

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

33
define weak i32 @func() nounwind {
44
entry:

llvm/test/CodeGen/SPARC/2011-01-11-CC.ll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 5
2-
; RUN: llc -march=sparc %s -o - | FileCheck %s -check-prefix=V8
3-
; RUN: llc -march=sparc -mattr=v9 %s -o - | FileCheck %s -check-prefix=V9
2+
; RUN: llc -mtriple=sparc %s -o - | FileCheck %s -check-prefix=V8
3+
; RUN: llc -mtriple=sparc -mattr=v9 %s -o - | FileCheck %s -check-prefix=V9
44
; RUN: llc -mtriple=sparc64-unknown-linux %s -o - | FileCheck %s -check-prefix=SPARC64
55

66
define i32 @test_addx(i64 %a, i64 %b, i64 %c) nounwind {

llvm/test/CodeGen/SPARC/2011-01-11-Call.ll

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
; RUN: llc -march=sparc -O0 <%s
2-
; RUN: llc -march=sparc <%s | FileCheck %s --check-prefix=V8
3-
; RUN: llc -march=sparcv9 <%s | FileCheck %s --check-prefix=V9
1+
; RUN: llc -mtriple=sparc -O0 <%s
2+
; RUN: llc -mtriple=sparc <%s | FileCheck %s --check-prefix=V8
3+
; RUN: llc -mtriple=sparcv9 <%s | FileCheck %s --check-prefix=V9
44

55
; V8-LABEL: test
66
; V8: save %sp

llvm/test/CodeGen/SPARC/2011-01-11-FrameAddr.ll

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
;RUN: llc -march=sparc -show-mc-encoding < %s | FileCheck %s -check-prefix=V8
2-
;RUN: llc -march=sparc -mattr=v9 < %s | FileCheck %s -check-prefix=V9
3-
;RUN: llc -march=sparc -show-mc-encoding -regalloc=basic < %s | FileCheck %s -check-prefix=V8
4-
;RUN: llc -march=sparc -regalloc=basic -mattr=v9 < %s | FileCheck %s -check-prefix=V9
5-
;RUN: llc -march=sparcv9 < %s | FileCheck %s -check-prefix=SPARC64
1+
;RUN: llc -mtriple=sparc -show-mc-encoding < %s | FileCheck %s -check-prefix=V8
2+
;RUN: llc -mtriple=sparc -mattr=v9 < %s | FileCheck %s -check-prefix=V9
3+
;RUN: llc -mtriple=sparc -show-mc-encoding -regalloc=basic < %s | FileCheck %s -check-prefix=V8
4+
;RUN: llc -mtriple=sparc -regalloc=basic -mattr=v9 < %s | FileCheck %s -check-prefix=V9
5+
;RUN: llc -mtriple=sparcv9 < %s | FileCheck %s -check-prefix=SPARC64
66

77

88
define ptr @frameaddr() nounwind readnone {

0 commit comments

Comments
 (0)