Skip to content

Commit

Permalink
ARM: Do not use llc -march in tests.
Browse files Browse the repository at this point in the history
`llc -march` is problematic because it only switches the target
architecture, but leaves the operating system unchanged. This
occasionally leads to indeterministic tests because the OS from
LLVM_DEFAULT_TARGET_TRIPLE is used.

However we can simply always use `llc -mtriple` instead. This changes
all the tests to do this to avoid people using -march when they copy and
paste parts of tests.

See also the discussion in https://reviews.llvm.org/D35287

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@309755 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
MatzeB committed Aug 1, 2017
1 parent b0a0439 commit fe7581c
Show file tree
Hide file tree
Showing 61 changed files with 98 additions and 100 deletions.
2 changes: 1 addition & 1 deletion test/CodeGen/ARM/2007-03-27-RegScavengerAssert.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: llc < %s -march=arm -mtriple=arm-linux-gnueabi
; RUN: llc < %s -mtriple=arm-linux-gnueabi
; PR1279

%struct.rtx_def = type { i16, i8, i8, %struct.u }
Expand Down
2 changes: 1 addition & 1 deletion test/CodeGen/ARM/2007-03-30-RegScavengerAssert.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: llc < %s -march=arm -mtriple=arm-linux-gnueabi
; RUN: llc < %s -mtriple=arm-linux-gnueabi
; PR1279

%struct.CUMULATIVE_ARGS = type { i32, i32, i32, i32, i32, i32 }
Expand Down
2 changes: 1 addition & 1 deletion test/CodeGen/ARM/2007-04-02-RegScavengerAssert.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: llc < %s -march=arm -mtriple=arm-apple-darwin
; RUN: llc < %s -mtriple=arm-apple-darwin

%struct.H_TBL = type { [17 x i8], [256 x i8], i32 }
%struct.Q_TBL = type { [64 x i16], i32 }
Expand Down
4 changes: 2 additions & 2 deletions test/CodeGen/ARM/2007-05-09-tailmerge-2.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: llc < %s -march=arm | FileCheck %s
; RUN: llc < %s | FileCheck %s

; Check that calls to baz and quux are tail-merged.
; CHECK: bl _baz
Expand All @@ -10,7 +10,7 @@

; ModuleID = 'tail.c'
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:32:64-v64:64:64-v128:128:128-a0:0:64"
target triple = "i686-apple-darwin8"
target triple = "arm-apple-darwin8"

define i32 @f(i32 %i, i32 %q) {
entry:
Expand Down
2 changes: 1 addition & 1 deletion test/CodeGen/ARM/2007-05-14-RegScavengerAssert.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: llc < %s -march=arm -mtriple=arm-linux-gnueabi
; RUN: llc < %s -mtriple=arm-linux-gnueabi
; PR1406

%struct.AVClass = type { i8*, i8* (i8*)*, %struct.AVOption* }
Expand Down
7 changes: 3 additions & 4 deletions test/CodeGen/ARM/2007-05-22-tailmerge-3.ll
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
; RUN: llc < %s -march=arm | FileCheck %s
; RUN: llc < %s -march=arm -enable-tail-merge=0 | \
; RUN: FileCheck --check-prefix=NOMERGE %s
; RUN: llc < %s | FileCheck %s
; RUN: llc < %s -enable-tail-merge=0 | FileCheck --check-prefix=NOMERGE %s

; Check that tail merging is the default on ARM, and that -enable-tail-merge=0
; works.
Expand All @@ -20,7 +19,7 @@

; ModuleID = 'tail.c'
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:32:64-v64:64:64-v128:128:128-a0:0:64"
target triple = "i686-apple-darwin8"
target triple = "arm-apple-darwin8"

define i32 @f(i32 %i, i32 %q) {
entry:
Expand Down
2 changes: 1 addition & 1 deletion test/CodeGen/ARM/2009-02-16-SpillerBug.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: llc < %s -march=arm -mattr=+v6,+vfp2
; RUN: llc < %s -mattr=+v6,+vfp2

target triple = "arm-apple-darwin9"
%struct.FILE_POS = type { i8, i8, i16, i32 }
Expand Down
2 changes: 1 addition & 1 deletion test/CodeGen/ARM/2009-02-27-SpillerBug.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: llc < %s -march=arm -mattr=+v6,+vfp2
; RUN: llc < %s -mattr=+v6,+vfp2

target triple = "arm-apple-darwin9"
@a = external global double ; <double*> [#uses=1]
Expand Down
2 changes: 1 addition & 1 deletion test/CodeGen/ARM/2009-06-30-RegScavengerAssert.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: llc < %s -march=arm -mtriple=armv6-apple-darwin9
; RUN: llc < %s -mtriple=armv6-apple-darwin9

@nn = external global i32 ; <i32*> [#uses=1]
@al_len = external global i32 ; <i32*> [#uses=2]
Expand Down
2 changes: 1 addition & 1 deletion test/CodeGen/ARM/2009-06-30-RegScavengerAssert2.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: llc < %s -march=arm -mtriple=armv6-apple-darwin9
; RUN: llc < %s -mtriple=armv6-apple-darwin9

@no_mat = external global i32 ; <i32*> [#uses=1]
@no_mis = external global i32 ; <i32*> [#uses=2]
Expand Down
2 changes: 1 addition & 1 deletion test/CodeGen/ARM/2009-06-30-RegScavengerAssert3.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: llc < %s -march=arm -mtriple=armv6-apple-darwin9
; RUN: llc < %s -mtriple=armv6-apple-darwin9

@JJ = external global i32* ; <i32**> [#uses=1]

Expand Down
2 changes: 1 addition & 1 deletion test/CodeGen/ARM/2009-06-30-RegScavengerAssert4.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: llc < %s -march=arm -mtriple=armv6-apple-darwin9
; RUN: llc < %s -mtriple=armv6-apple-darwin9

@r = external global i32 ; <i32*> [#uses=1]
@qr = external global i32 ; <i32*> [#uses=1]
Expand Down
2 changes: 1 addition & 1 deletion test/CodeGen/ARM/2009-06-30-RegScavengerAssert5.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: llc < %s -march=arm -mtriple=armv6-apple-darwin9
; RUN: llc < %s -mtriple=armv6-apple-darwin9

@XX = external global i32* ; <i32**> [#uses=1]

Expand Down
2 changes: 1 addition & 1 deletion test/CodeGen/ARM/2009-07-01-CommuteBug.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: llc < %s -march=arm -mtriple=armv6-apple-darwin9
; RUN: llc < %s -mtriple=armv6-apple-darwin9

@qr = external global i32 ; <i32*> [#uses=1]
@II = external global i32* ; <i32**> [#uses=1]
Expand Down
2 changes: 1 addition & 1 deletion test/CodeGen/ARM/2009-08-02-RegScavengerAssert-Neon.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: llc < %s -march=arm -mattr=+neon
; RUN: llc < %s -mattr=+neon
; PR4657

target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:32-f32:32:32-f64:32:32-v64:64:64-v128:128:128-a0:0:64"
Expand Down
2 changes: 1 addition & 1 deletion test/CodeGen/ARM/2009-08-21-PostRAKill.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: llc < %s -march=arm -mattr=+vfp2 -post-RA-scheduler -mcpu=cortex-a8
; RUN: llc < %s -mattr=+vfp2 -post-RA-scheduler -mcpu=cortex-a8

; ModuleID = '<stdin>'
target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:32-f32:32:32-f64:32:32-v64:64:64-v128:128:128-a0:0:64"
Expand Down
2 changes: 1 addition & 1 deletion test/CodeGen/ARM/2009-08-31-LSDA-Name.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: llc < %s -mtriple=arm-apple-darwin9 -march=arm | FileCheck %s
; RUN: llc < %s -mtriple=arm-apple-darwin9 | FileCheck %s

; CHECK: ldr r0, [[CPI_PERSONALITY:[A-Za-z0-9_]+]]
; CHECK: ldr r0, [[CPI_LSDA:[A-Za-z0-9_]+]]
Expand Down
2 changes: 1 addition & 1 deletion test/CodeGen/ARM/2009-09-09-fpcmp-ole.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: llc -O1 -march=arm -mattr=+vfp2 -mtriple=arm-linux-gnueabi < %s | FileCheck %s
; RUN: llc -O1 -mattr=+vfp2 -mtriple=arm-linux-gnueabi < %s | FileCheck %s
; pr4939

define void @test(double* %x, double* %y) nounwind {
Expand Down
2 changes: 1 addition & 1 deletion test/CodeGen/ARM/2010-05-14-IllegalType.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: llc -march=thumb -mcpu=cortex-a8 -mtriple=thumbv7-eabi -float-abi=hard < %s | FileCheck %s
; RUN: llc -mcpu=cortex-a8 -mtriple=thumbv7-eabi -float-abi=hard < %s | FileCheck %s

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"
target triple = "thumbv7-apple-darwin10"
Expand Down
2 changes: 1 addition & 1 deletion test/CodeGen/ARM/2010-06-21-nondarwin-tc.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: llc < %s -march=arm -mtriple=armv4t-unknown-linux-gnueabi | FileCheck %s
; RUN: llc < %s -mtriple=armv4t-unknown-linux-gnueabi | FileCheck %s
; PR 7433
; XFAIL: *

Expand Down
2 changes: 1 addition & 1 deletion test/CodeGen/ARM/2011-09-19-cpsr.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: llc -march=thumb -mcpu=cortex-a8 < %s
; RUN: llc -mcpu=cortex-a8 < %s
; rdar://problem/10137436: sqlite3 miscompile
;
; CHECK: subs
Expand Down
2 changes: 1 addition & 1 deletion test/CodeGen/ARM/2011-10-26-ExpandUnalignedLoadCrash.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: llc < %s -march=arm -mcpu=cortex-a9 -mattr=+neon,+neonfp -relocation-model=pic
; RUN: llc < %s -mcpu=cortex-a9 -mattr=+neon,+neonfp -relocation-model=pic

target triple = "armv6-none-linux-gnueabi"

Expand Down
4 changes: 2 additions & 2 deletions test/CodeGen/ARM/2011-10-26-memset-inline.ll
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
; Make sure short memsets on ARM lower to stores, even when optimizing for size.
; RUN: llc -march=arm -mattr=+strict-align < %s | FileCheck %s -check-prefix=CHECK-GENERIC
; RUN: llc -march=arm -mcpu=cortex-a8 < %s | FileCheck %s -check-prefix=CHECK-UNALIGNED
; RUN: llc -mattr=+strict-align < %s | FileCheck %s -check-prefix=CHECK-GENERIC
; RUN: llc -mcpu=cortex-a8 < %s | FileCheck %s -check-prefix=CHECK-UNALIGNED

target datalayout = "e-p:32:32:32-i1:8:32-i8:8:32-i16:16:32-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:32:64-v128:32:128-a0:0:32-n32-S32"
target triple = "thumbv7-apple-ios5.0.0"
Expand Down
2 changes: 1 addition & 1 deletion test/CodeGen/ARM/2012-03-05-FPSCR-bug.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: llc -march=arm -mcpu=cortex-a8 -verify-machineinstrs < %s
; RUN: llc -mcpu=cortex-a8 -verify-machineinstrs < %s
; PR12165
target datalayout = "e-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-p:32:32:32-v128:32:32"
target triple = "arm-none-linux"
Expand Down
4 changes: 2 additions & 2 deletions test/CodeGen/ARM/2012-08-13-bfi.ll
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
; RUN: llc -march=thumb -mcpu=cortex-a8 < %s | FileCheck %s
; RUN: llc -mcpu=cortex-a8 < %s | FileCheck %s

target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128"
target triple = "x86_64-apple-macosx10.8.0"
target triple = "thumb-apple-macosx10.8.0"

; CHECK: foo
; CHECK-NOT: bfi
Expand Down
2 changes: 1 addition & 1 deletion test/CodeGen/ARM/2012-08-27-CopyPhysRegCrash.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: llc < %s -mcpu=cortex-a8 -march=thumb
; RUN: llc < %s -mcpu=cortex-a8
; Test that this doesn't crash.
; <rdar://problem/12183003>

Expand Down
2 changes: 1 addition & 1 deletion test/CodeGen/ARM/alloca.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: llc < %s -march=arm -mtriple=arm-linux-gnu | FileCheck %s
; RUN: llc < %s -mtriple=arm-linux-gnu | FileCheck %s

define void @f(i32 %a) {
entry:
Expand Down
2 changes: 1 addition & 1 deletion test/CodeGen/ARM/arm-and-tst-peephole.ll
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
; RUN: llc -mtriple=thumb-eabi -arm-atomic-cfg-tidy=0 -mcpu=arm1156t2-s -mattr=+thumb2 %s -o - | FileCheck -check-prefix=T2 %s
; RUN: llc -mtriple=thumbv8-eabi -arm-atomic-cfg-tidy=0 %s -o - | FileCheck -check-prefix=V8 %s

; FIXME: The -march=thumb test doesn't change if -disable-peephole is specified.
; FIXME: The -mtriple=thumb test doesn't change if -disable-peephole is specified.

%struct.Foo = type { i8* }

Expand Down
4 changes: 2 additions & 2 deletions test/CodeGen/ARM/big-endian-neon-bitconv.ll
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
; RUN: llc < %s -march armeb -mtriple arm-eabi -mattr v7,neon -float-abi soft -o - | FileCheck %s
; RUN: llc < %s -march armeb -mtriple arm-eabi -mattr v7,neon -float-abi hard -o - | FileCheck %s -check-prefix CHECK-HARD
; RUN: llc < %s -mtriple armeb-eabi -mattr v7,neon -float-abi soft -o - | FileCheck %s
; RUN: llc < %s -mtriple armeb-eabi -mattr v7,neon -float-abi hard -o - | FileCheck %s -check-prefix CHECK-HARD

@v2i64 = global <2 x i64> zeroinitializer
@v2i32 = global <2 x i32> zeroinitializer
Expand Down
2 changes: 1 addition & 1 deletion test/CodeGen/ARM/call_nolink.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: llc < %s -march=arm -mtriple=arm-linux-gnueabi | FileCheck %s
; RUN: llc < %s -mtriple=arm-linux-gnueabi | FileCheck %s

%struct.anon = type { i32 (i32, i32, i32)*, i32, i32, [3 x i32], i8*, i8*, i8* }
@r = external global [14 x i32] ; <[14 x i32]*> [#uses=4]
Expand Down
2 changes: 1 addition & 1 deletion test/CodeGen/ARM/cdp.ll
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
; RUN: not llc < %s -mtriple=armv7-eabi -mcpu=cortex-a8 2>&1 | FileCheck %s
; RUN: not llc < %s -march=thumb -mtriple=thumbv7-eabi -mcpu=cortex-a8 2>&1 | FileCheck %s
; RUN: not llc < %s -mtriple=thumbv7-eabi -mcpu=cortex-a8 2>&1 | FileCheck %s

; CHECK: LLVM ERROR: Cannot select: intrinsic %llvm.arm.cdp
define void @cdp(i32 %a) #0 {
Expand Down
2 changes: 1 addition & 1 deletion test/CodeGen/ARM/cdp2.ll
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
; RUN: not llc < %s -mtriple=armv7-eabi -mcpu=cortex-a8 2>&1 | FileCheck %s
; RUN: not llc < %s -march=thumb -mtriple=thumbv7-eabi -mcpu=cortex-a8 2>&1 | FileCheck %s
; RUN: not llc < %s -mtriple=thumbv7-eabi -mcpu=cortex-a8 2>&1 | FileCheck %s

; CHECK: LLVM ERROR: Cannot select: intrinsic %llvm.arm.cdp2
define void @cdp2(i32 %a) #0 {
Expand Down
4 changes: 2 additions & 2 deletions test/CodeGen/ARM/cse-libcalls.ll
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
; RUN: llc < %s -march=arm | FileCheck %s
; RUN: llc < %s | FileCheck %s

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:32:64-v64:64:64-v128:128:128-a0:0:64-f80:128:128"
target triple = "i386-apple-darwin8"
target triple = "arm-apple-darwin8"

; Without CSE of libcalls, there are two calls in the output instead of one.

Expand Down
2 changes: 1 addition & 1 deletion test/CodeGen/ARM/deps-fix.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: llc < %s -march=arm -mcpu=cortex-a9 -mattr=+neon,+neonfp -float-abi=hard -mtriple armv7-linux-gnueabi | FileCheck %s
; RUN: llc < %s -mcpu=cortex-a9 -mattr=+neon,+neonfp -float-abi=hard -mtriple armv7-linux-gnueabi | FileCheck %s

;; This test checks that the ExecutionDepsFix pass performs the domain changes
;; even when some dependencies are propagated through implicit definitions.
Expand Down
4 changes: 2 additions & 2 deletions test/CodeGen/ARM/emutls1.ll
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
; RUN: llc < %s -emulated-tls -march=arm -mtriple=arm-linux-androideabi \
; RUN: llc < %s -emulated-tls -mtriple=arm-linux-androideabi \
; RUN: | FileCheck %s
; RUN: llc < %s -emulated-tls -march=arm -mtriple=arm-linux-androideabi \
; RUN: llc < %s -emulated-tls -mtriple=arm-linux-androideabi \
; RUN: -relocation-model=pic | FileCheck %s --check-prefix=PIC

; Compared with tls1.ll, emulated mode should not use __aeabi_read_tp or __tls_get_addr.
Expand Down
2 changes: 1 addition & 1 deletion test/CodeGen/ARM/global-merge.ll
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
; RUN: llc < %s -mtriple=thumb-apple-darwin -arm-global-merge -global-merge-group-by-use=false -global-merge-on-const=true | FileCheck %s
; Test the ARMGlobalMerge pass. Use -march=thumb because it has a small
; Test the ARMGlobalMerge pass. Use -mtriple=thumb because it has a small
; value for the maximum offset (127).

; A local array that exceeds the maximum offset should not be merged.
Expand Down
2 changes: 1 addition & 1 deletion test/CodeGen/ARM/ifcvt-callback.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: llc -march thumb %s -o - | FileCheck %s
; RUN: llc -mtriple=thumb-- %s -o - | FileCheck %s

; This test checks that if-conversion pass is unconditionally added to the pass
; pipeline and is conditionally executed based on the per-function targert-cpu
Expand Down
4 changes: 2 additions & 2 deletions test/CodeGen/ARM/mult-alt-generic-arm.ll
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
; RUN: llc < %s -march=arm -no-integrated-as
; RUN: llc < %s -no-integrated-as
; ModuleID = 'mult-alt-generic.c'
target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-n32"
target triple = "arm"
target triple = "arm--"

@mout0 = common global i32 0, align 4
@min1 = common global i32 0, align 4
Expand Down
2 changes: 1 addition & 1 deletion test/CodeGen/ARM/peephole-bitcast.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: llc < %s -march=arm -mcpu=cortex-a8 | FileCheck %s
; RUN: llc < %s -mtriple=arm-- -mcpu=cortex-a8 | FileCheck %s
; XFAIL: *
; PR11364

Expand Down
2 changes: 1 addition & 1 deletion test/CodeGen/ARM/saxpy10-a9.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: llc < %s -march=arm -mtriple=thumbv7-apple-ios7.0.0 -float-abi=hard -mcpu=cortex-a9 -misched-postra -enable-misched -pre-RA-sched=source -scheditins=false | FileCheck %s
; RUN: llc < %s -mtriple=thumbv7-apple-ios7.0.0 -float-abi=hard -mcpu=cortex-a9 -misched-postra -enable-misched -pre-RA-sched=source -scheditins=false | FileCheck %s
;
; Test MI-Sched suppory latency based stalls on in in-order pipeline
; using the new machine model.
Expand Down
2 changes: 1 addition & 1 deletion test/CodeGen/ARM/ssp-data-layout.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: llc < %s -disable-fp-elim -march=arm -mcpu=cortex-a8 -mtriple arm-linux-gnu -target-abi=apcs -o - | FileCheck %s
; RUN: llc < %s -disable-fp-elim -mcpu=cortex-a8 -mtriple arm-linux-gnu -target-abi=apcs -o - | FileCheck %s
; This test is fairly fragile. The goal is to ensure that "large" stack
; objects are allocated closest to the stack protector (i.e., farthest away
; from the Stack Pointer.) In standard SSP mode this means that large (>=
Expand Down
12 changes: 6 additions & 6 deletions test/CodeGen/ARM/subtarget-features-long-calls.ll
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
; RUN: llc -march thumb -mcpu=cortex-a8 -relocation-model=static %s -o - | FileCheck -check-prefix=NO-OPTION %s
; RUN: llc -march thumb -mcpu=cortex-a8 -relocation-model=static %s -o - -mattr=+long-calls | FileCheck -check-prefix=LONGCALL %s
; RUN: llc -march thumb -mcpu=cortex-a8 -relocation-model=static %s -o - -mattr=-long-calls | FileCheck -check-prefix=NO-LONGCALL %s
; RUN: llc -march thumb -mcpu=cortex-a8 -relocation-model=static %s -o - -O0 | FileCheck -check-prefix=NO-OPTION %s
; RUN: llc -march thumb -mcpu=cortex-a8 -relocation-model=static %s -o - -O0 -mattr=+long-calls | FileCheck -check-prefix=LONGCALL %s
; RUN: llc -march thumb -mcpu=cortex-a8 -relocation-model=static %s -o - -O0 -mattr=-long-calls | FileCheck -check-prefix=NO-LONGCALL %s
; RUN: llc -mtriple=thumb-- -mcpu=cortex-a8 -relocation-model=static %s -o - | FileCheck -check-prefix=NO-OPTION %s
; RUN: llc -mtriple=thumb-- -mcpu=cortex-a8 -relocation-model=static %s -o - -mattr=+long-calls | FileCheck -check-prefix=LONGCALL %s
; RUN: llc -mtriple=thumb-- -mcpu=cortex-a8 -relocation-model=static %s -o - -mattr=-long-calls | FileCheck -check-prefix=NO-LONGCALL %s
; RUN: llc -mtriple=thumb-- -mcpu=cortex-a8 -relocation-model=static %s -o - -O0 | FileCheck -check-prefix=NO-OPTION %s
; RUN: llc -mtriple=thumb-- -mcpu=cortex-a8 -relocation-model=static %s -o - -O0 -mattr=+long-calls | FileCheck -check-prefix=LONGCALL %s
; RUN: llc -mtriple=thumb-- -mcpu=cortex-a8 -relocation-model=static %s -o - -O0 -mattr=-long-calls | FileCheck -check-prefix=NO-LONGCALL %s

; NO-OPTION-LABEL: {{_?}}caller0
; NO-OPTION: ldr [[R0:r[0-9]+]], [[L0:.*]]
Expand Down
12 changes: 6 additions & 6 deletions test/CodeGen/ARM/subtarget-no-movt.ll
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
; RUN: llc -march thumb -mcpu=cortex-a8 -relocation-model=static %s -o - | FileCheck -check-prefix=NO-OPTION %s
; RUN: llc -march thumb -mcpu=cortex-a8 -relocation-model=static %s -o - -mattr=-no-movt | FileCheck -check-prefix=USE-MOVT %s
; RUN: llc -march thumb -mcpu=cortex-a8 -relocation-model=static %s -o - -mattr=+no-movt | FileCheck -check-prefix=NO-USE-MOVT %s
; RUN: llc -march thumb -mcpu=cortex-a8 -relocation-model=static %s -o - -O0 | FileCheck -check-prefix=NO-OPTION-O0 %s
; RUN: llc -march thumb -mcpu=cortex-a8 -relocation-model=static %s -o - -O0 -mattr=-no-movt | FileCheck -check-prefix=USE-MOVT-O0 %s
; RUN: llc -march thumb -mcpu=cortex-a8 -relocation-model=static %s -o - -O0 -mattr=+no-movt | FileCheck -check-prefix=NO-USE-MOVT-O0 %s
; RUN: llc -mcpu=cortex-a8 -relocation-model=static %s -o - | FileCheck -check-prefix=NO-OPTION %s
; RUN: llc -mcpu=cortex-a8 -relocation-model=static %s -o - -mattr=-no-movt | FileCheck -check-prefix=USE-MOVT %s
; RUN: llc -mcpu=cortex-a8 -relocation-model=static %s -o - -mattr=+no-movt | FileCheck -check-prefix=NO-USE-MOVT %s
; RUN: llc -mcpu=cortex-a8 -relocation-model=static %s -o - -O0 | FileCheck -check-prefix=NO-OPTION-O0 %s
; RUN: llc -mcpu=cortex-a8 -relocation-model=static %s -o - -O0 -mattr=-no-movt | FileCheck -check-prefix=USE-MOVT-O0 %s
; RUN: llc -mcpu=cortex-a8 -relocation-model=static %s -o - -O0 -mattr=+no-movt | FileCheck -check-prefix=NO-USE-MOVT-O0 %s

target triple = "thumb-apple-darwin"

Expand Down
2 changes: 1 addition & 1 deletion test/CodeGen/ARM/thumb1-div.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: llc < %s -mtriple=arm-none-eabi -mcpu=cortex-m23 -march=thumb | \
; RUN: llc < %s -mtriple=thumb-none-eabi -mcpu=cortex-m23 | \
; RUN: FileCheck %s -check-prefix=CHECK

define i32 @f1(i32 %a, i32 %b) {
Expand Down
8 changes: 4 additions & 4 deletions test/CodeGen/ARM/tls-models.ll
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
; RUN: llc -march=arm -mtriple=arm-linux-gnueabi < %s \
; RUN: llc -mtriple=arm-linux-gnueabi < %s \
; RUN: | FileCheck -check-prefix=CHECK-NONPIC -check-prefix=COMMON %s
; RUN: llc -march=arm -mtriple=arm-linux-gnueabi -relocation-model=pic < %s \
; RUN: llc -mtriple=arm-linux-gnueabi -relocation-model=pic < %s \
; RUN: | FileCheck -check-prefix=CHECK-PIC -check-prefix=COMMON %s
; RUN: llc -emulated-tls -march=arm -mtriple=arm-linux-gnueabi < %s \
; RUN: llc -emulated-tls -mtriple=arm-linux-gnueabi < %s \
; RUN: | FileCheck -check-prefix=EMUNONPIC -check-prefix=EMU -check-prefix=COMMON %s
; RUN: llc -emulated-tls -march=arm -mtriple=arm-linux-gnueabi -relocation-model=pic < %s \
; RUN: llc -emulated-tls -mtriple=arm-linux-gnueabi -relocation-model=pic < %s \
; RUN: | FileCheck -check-prefix=EMUPIC -check-prefix=EMU -check-prefix=COMMON %s


Expand Down
4 changes: 2 additions & 2 deletions test/CodeGen/ARM/tls1.ll
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
; RUN: llc < %s -march=arm -mtriple=arm-linux-gnueabi | FileCheck %s
; RUN: llc < %s -march=arm -mtriple=arm-linux-gnueabi -relocation-model=pic | \
; RUN: llc < %s -mtriple=arm-linux-gnueabi | FileCheck %s
; RUN: llc < %s -mtriple=arm-linux-gnueabi -relocation-model=pic | \
; RUN: FileCheck %s --check-prefix=PIC


Expand Down
6 changes: 3 additions & 3 deletions test/CodeGen/ARM/tls2.ll
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
; RUN: llc < %s -march=arm -mtriple=arm-linux-gnueabi \
; RUN: llc < %s -mtriple=arm-linux-gnueabi \
; RUN: | FileCheck %s -check-prefix=CHECK-NONPIC
; RUN: llc < %s -march=arm -mtriple=arm-linux-gnueabi \
; RUN: -relocation-model=pic | FileCheck %s -check-prefix=CHECK-PIC
; RUN: llc < %s -mtriple=arm-linux-gnueabi -relocation-model=pic \
; RUN: | FileCheck %s -check-prefix=CHECK-PIC

@i = external thread_local global i32 ; <i32*> [#uses=2]

Expand Down
4 changes: 2 additions & 2 deletions test/CodeGen/ARM/unsafe-fsub.ll
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
; RUN: llc -march=arm -mcpu=cortex-a9 < %s | FileCheck -check-prefix=SAFE %s
; RUN: llc -march=arm -mcpu=cortex-a9 -enable-unsafe-fp-math < %s | FileCheck -check-prefix=FAST %s
; RUN: llc -mcpu=cortex-a9 < %s | FileCheck -check-prefix=SAFE %s
; RUN: llc -mcpu=cortex-a9 -enable-unsafe-fp-math < %s | FileCheck -check-prefix=FAST %s

target triple = "armv7-apple-ios"

Expand Down
2 changes: 1 addition & 1 deletion test/CodeGen/ARM/vargs_align.ll
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
; RUN: llc < %s -mtriple=armv7-linux-gnueabihf | FileCheck %s -check-prefix=EABI
; RUN: llc < %s -march=arm -mtriple=arm-linux-gnu | FileCheck %s -check-prefix=OABI
; RUN: llc < %s -mtriple=arm-linux-gnu | FileCheck %s -check-prefix=OABI

define i32 @f(i32 %a, ...) {
entry:
Expand Down
2 changes: 1 addition & 1 deletion test/CodeGen/ARM/vcvt-cost.ll
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
; We currently estimate the cost of sext/zext/trunc v8(v16)i32 <-> v8(v16)i8
; instructions as expensive. If lowering is improved the cost model needs to
; change.
; RUN: opt < %s -cost-model -analyze -mtriple=thumbv7-apple-ios6.0.0 -march=arm -mcpu=cortex-a8 | FileCheck %s --check-prefix=COST
; RUN: opt < %s -cost-model -analyze -mtriple=arm-apple-ios6.0.0 -mcpu=cortex-a8 | FileCheck %s --check-prefix=COST
%T0_5 = type <8 x i8>
%T1_5 = type <8 x i32>
; CHECK-LABEL: func_cvt5:
Expand Down
2 changes: 1 addition & 1 deletion test/CodeGen/ARM/vector-spilling.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: llc < %s -march=arm -mtriple=armv7-linux-gnueabihf -arm-atomic-cfg-tidy=0 -float-abi=hard -mcpu=cortex-a9 -O3 | FileCheck %s
; RUN: llc < %s -mtriple=armv7-linux-gnueabihf -arm-atomic-cfg-tidy=0 -float-abi=hard -mcpu=cortex-a9 -O3 | FileCheck %s

target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-n32-S64"

Expand Down
Loading

0 comments on commit fe7581c

Please sign in to comment.