forked from OSchip/llvm-project
parent
e43ca022bf
commit
fcb9b8b0b7
|
@ -1,10 +0,0 @@
|
|||
; RUN: llvm-upgrade < %s | llvm-as | llc -f -march=arm -o %t.s &&
|
||||
; RUN: not grep "add r13, r13, #0" < %t.s &&
|
||||
; RUN: not grep "sub r13, r13, #0" < %t.s
|
||||
|
||||
int %f() {
|
||||
entry:
|
||||
ret int 1
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
; 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
|
||||
|
||||
define void @f1() {
|
||||
%c = alloca i8, align 1
|
||||
ret void
|
||||
}
|
||||
|
||||
define i32 @f2() {
|
||||
ret i32 1
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue