1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00

Add / merge tests.

llvm-svn: 33654
This commit is contained in:
Evan Cheng 2007-01-30 03:06:19 +00:00
parent d0ed3f753b
commit 228c786e28
2 changed files with 15 additions and 10 deletions

View File

@ -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
}

View File

@ -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
}