-march=arm -enable-thumb => -march=thumb

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34522 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Evan Cheng 2007-02-23 03:15:39 +00:00
parent 04321f70f5
commit 0430a8df0e
15 changed files with 40 additions and 40 deletions

View File

@ -1,4 +1,4 @@
; RUN: llvm-as < %s | llc -mtriple=arm-apple-darwin -enable-thumb
; RUN: llvm-as < %s | llc -mtriple=thumb-apple-darwin
%struct.rtx_def = type { i8 }
@str = external global [7 x i8]

View File

@ -1,4 +1,4 @@
; RUN: llvm-as < %s | llc -mtriple=arm-apple-darwin -enable-thumb
; RUN: llvm-as < %s | llc -mtriple=thumb-apple-darwin
%struct.color_sample = type { i32 }
%struct.ref = type { %struct.color_sample, i16, i16 }

View File

@ -1,8 +1,8 @@
; RUN: llvm-as < %s | llc -march=arm &&
; RUN: llvm-as < %s | llc -march=arm -enable-thumb &&
; RUN: llvm-as < %s | llc -march=arm -enable-thumb | not grep "ldr sp" &&
; RUN: llvm-as < %s | llc -march=arm -mtriple=arm-apple-darwin -enable-thumb | not grep "sub.*r7" &&
; RUN: llvm-as < %s | llc -march=arm -enable-thumb | grep 4294967280
; RUN: llvm-as < %s | llc -march=thumb &&
; RUN: llvm-as < %s | llc -march=thumb | not grep "ldr sp" &&
; RUN: llvm-as < %s | llc -mtriple=thumb-apple-darwin | not grep "sub.*r7" &&
; RUN: llvm-as < %s | llc -march=thumb | grep 4294967280
%struct.state = type { i32, %struct.info*, float**, i32, i32, i32, i32, i32, i32, i32, i32, i32, i64, i64, i64, i64, i64, i64, i8* }
%struct.info = type { i32, i32, i32, i32, i32, i32, i32, i8* }

View File

@ -1,6 +1,6 @@
; RUN: llvm-as < %s | llc -march=arm &&
; RUN: llvm-as < %s | llc -march=arm -enable-thumb &&
; RUN: llvm-as < %s | llc -march=arm -enable-thumb | \
; RUN: llvm-as < %s | llc -march=thumb &&
; RUN: llvm-as < %s | llc -march=thumb | \
; RUN: grep 'ldr.*LCP' | wc -l | grep 5
define void @test1() {

View File

@ -3,10 +3,10 @@
; RUN: llvm-as < %s | llc -march=arm | grep "ldrh" | wc -l | grep 1 &&
; RUN: llvm-as < %s | llc -march=arm | grep "ldrsb" | wc -l | grep 1 &&
; RUN: llvm-as < %s | llc -march=arm | grep "ldrsh" | wc -l | grep 1 &&
; RUN: llvm-as < %s | llc -march=arm -enable-thumb | grep "ldrb" | wc -l | grep 1 &&
; RUN: llvm-as < %s | llc -march=arm -enable-thumb | grep "ldrh" | wc -l | grep 1 &&
; RUN: llvm-as < %s | llc -march=arm -enable-thumb | grep "ldrsb" | wc -l | grep 1 &&
; RUN: llvm-as < %s | llc -march=arm -enable-thumb | grep "ldrsh" | wc -l | grep 1
; RUN: llvm-as < %s | llc -march=thumb | grep "ldrb" | wc -l | grep 1 &&
; RUN: llvm-as < %s | llc -march=thumb | grep "ldrh" | wc -l | grep 1 &&
; RUN: llvm-as < %s | llc -march=thumb | grep "ldrsb" | wc -l | grep 1 &&
; RUN: llvm-as < %s | llc -march=thumb | grep "ldrsh" | wc -l | grep 1
define i32 @test1(i8* %v.pntr.s0.u1) {
%tmp.u = load i8* %v.pntr.s0.u1

View File

@ -1,7 +1,7 @@
; RUN: llvm-as < %s | llc -march=arm &&
; RUN: llvm-as < %s | llc -march=arm | not grep mov &&
; RUN: llvm-as < %s | llc -march=arm -enable-thumb &&
; RUN: llvm-as < %s | llc -march=arm -enable-thumb | grep cpy | wc -l | grep 2
; RUN: llvm-as < %s | llc -march=thumb &&
; RUN: llvm-as < %s | llc -march=thumb | grep cpy | wc -l | grep 2
define i32 @f1() {
%buf = alloca [32 x i32], align 4

View File

@ -1,7 +1,7 @@
; RUN: llvm-as < %s | llc -march=arm &&
; RUN: llvm-as < %s | llc -march=arm | grep cmp | wc -l | grep 2 &&
; RUN: llvm-as < %s | llc -march=arm -enable-thumb &&
; RUN: llvm-as < %s | llc -march=arm -enable-thumb | grep cmp | wc -l | grep 2
; RUN: llvm-as < %s | llc -march=thumb &&
; RUN: llvm-as < %s | llc -march=thumb | grep cmp | wc -l | grep 2
define i1 @t1(i64 %x) {

View File

@ -7,11 +7,11 @@
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | grep "sbc" | wc -l | grep 1 &&
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | grep "smull" | wc -l | grep 1 &&
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | grep "umull" | wc -l | grep 1 &&
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -enable-thumb &&
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -enable-thumb | grep "mvn" | wc -l | grep 1 &&
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -enable-thumb | grep "adc" | wc -l | grep 1 &&
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -enable-thumb | grep "sbc" | wc -l | grep 1 &&
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -enable-thumb | grep "__muldi3"
; RUN: llvm-upgrade < %s | llvm-as | llc -march=thumb &&
; RUN: llvm-upgrade < %s | llvm-as | llc -march=thumb | grep "mvn" | wc -l | grep 1 &&
; RUN: llvm-upgrade < %s | llvm-as | llc -march=thumb | grep "adc" | wc -l | grep 1 &&
; RUN: llvm-upgrade < %s | llvm-as | llc -march=thumb | grep "sbc" | wc -l | grep 1 &&
; RUN: llvm-upgrade < %s | llvm-as | llc -march=thumb | grep "__muldi3"
long %f1() {
entry:

View File

@ -3,7 +3,7 @@
; RUN: llvm-as < %s | llc -march=arm | grep __ashldi3 &&
; RUN: llvm-as < %s | llc -march=arm | grep __ashrdi3 &&
; RUN: llvm-as < %s | llc -march=arm | grep __lshrdi3 &&
; RUN: llvm-as < %s | llc -march=arm -enable-thumb
; RUN: llvm-as < %s | llc -march=thumb
define i64 @f0(i64 %A, i64 %B) {
%tmp = bitcast i64 %A to i64

View File

@ -1,8 +1,8 @@
; RUN: llvm-as < %s | llc -march=arm &&
; RUN: llvm-as < %s | llc -march=arm | grep mul | wc -l | grep 2 &&
; RUN: llvm-as < %s | llc -march=arm | grep lsl | wc -l | grep 2 &&
; RUN: llvm-as < %s | llc -march=arm -enable-thumb | grep mul | wc -l | grep 3 &&
; RUN: llvm-as < %s | llc -march=arm -enable-thumb | grep lsl | wc -l | grep 1
; RUN: llvm-as < %s | llc -march=thumb | grep mul | wc -l | grep 3 &&
; RUN: llvm-as < %s | llc -march=thumb | grep lsl | wc -l | grep 1
define i32 @f1(i32 %u) {
%tmp = mul i32 %u, %u

View File

@ -6,13 +6,13 @@
; RUN: llvm-as < %s | llc -march=arm | grep movls | wc -l | grep 1 &&
; RUN: llvm-as < %s | llc -march=arm | grep movhi | wc -l | grep 1 &&
; RUN: llvm-as < %s | llc -march=arm -mattr=+vfp2 | grep fcpydmi | wc -l | grep 1 &&
; RUN: llvm-as < %s | llc -march=arm -enable-thumb | grep beq | wc -l | grep 1 &&
; RUN: llvm-as < %s | llc -march=arm -enable-thumb | grep bgt | wc -l | grep 1 &&
; RUN: llvm-as < %s | llc -march=arm -enable-thumb | grep blt | wc -l | grep 3 &&
; RUN: llvm-as < %s | llc -march=arm -enable-thumb | grep ble | wc -l | grep 1 &&
; RUN: llvm-as < %s | llc -march=arm -enable-thumb | grep bls | wc -l | grep 1 &&
; RUN: llvm-as < %s | llc -march=arm -enable-thumb | grep bhi | wc -l | grep 1 &&
; RUN: llvm-as < %s | llc -march=arm -enable-thumb | grep __ltdf2
; RUN: llvm-as < %s | llc -march=thumb | grep beq | wc -l | grep 1 &&
; RUN: llvm-as < %s | llc -march=thumb | grep bgt | wc -l | grep 1 &&
; RUN: llvm-as < %s | llc -march=thumb | grep blt | wc -l | grep 3 &&
; RUN: llvm-as < %s | llc -march=thumb | grep ble | wc -l | grep 1 &&
; RUN: llvm-as < %s | llc -march=thumb | grep bls | wc -l | grep 1 &&
; RUN: llvm-as < %s | llc -march=thumb | grep bhi | wc -l | grep 1 &&
; RUN: llvm-as < %s | llc -march=thumb | grep __ltdf2
define i32 @f1(i32 %a.s) {
entry:

View File

@ -1,7 +1,7 @@
; RUN: llvm-as < %s | llc -march=arm &&
; RUN: llvm-as < %s | llc -march=arm | grep add | wc -l | grep 1 &&
; RUN: llvm-as < %s | llc -march=arm -enable-thumb &&
; RUN: llvm-as < %s | llc -march=arm -enable-thumb | grep add | wc -l | grep 1
; RUN: llvm-as < %s | llc -march=thumb &&
; RUN: llvm-as < %s | llc -march=thumb | grep add | wc -l | grep 1
define void @f1() {
%c = alloca i8, align 1

View File

@ -1,5 +1,5 @@
; RUN: llvm-as < %s | llc -march=arm -enable-thumb &&
; RUN: llvm-as < %s | llc -march=arm -enable-thumb | not grep CPI
; RUN: llvm-as < %s | llc -march=thumb &&
; RUN: llvm-as < %s | llc -march=thumb | not grep CPI
define i32 @test1() {

View File

@ -1,9 +1,9 @@
; RUN: llvm-as < %s | llc -march=arm &&
; RUN: llvm-as < %s | llc -march=arm | grep movne | wc -l | grep 1 &&
; RUN: llvm-as < %s | llc -march=arm | grep moveq | wc -l | grep 1 &&
; RUN: llvm-as < %s | llc -march=arm -enable-thumb &&
; RUN: llvm-as < %s | llc -march=arm -enable-thumb | grep bne | wc -l | grep 1 &&
; RUN: llvm-as < %s | llc -march=arm -enable-thumb | grep beq | wc -l | grep 1
; RUN: llvm-as < %s | llc -march=thumb &&
; RUN: llvm-as < %s | llc -march=thumb | grep bne | wc -l | grep 1 &&
; RUN: llvm-as < %s | llc -march=thumb | grep beq | wc -l | grep 1
define i32 @f1(float %X, float %Y) {
%tmp = fcmp uno float %X, %Y

View File

@ -1,6 +1,6 @@
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm %%
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -enable-thumb &&
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -enable-thumb | grep pop | wc -l | grep 2
; RUN: llvm-upgrade < %s | llvm-as | llc -march=thumb &&
; RUN: llvm-upgrade < %s | llvm-as | llc -march=thumb | grep pop | wc -l | grep 2
%str = internal constant [4 x sbyte] c"%d\0A\00" ; <[4 x sbyte]*> [#uses=1]