mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-21 03:53:04 +02:00
1897bbd2cf
llvm-svn: 33354
12 lines
354 B
LLVM
12 lines
354 B
LLVM
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm &&
|
|
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+v6 &&
|
|
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+v6 | grep mov | wc -l | grep 2
|
|
|
|
int %test(int %x) {
|
|
%tmp = cast int %x to short
|
|
%tmp2 = tail call int %f( int 1, short %tmp )
|
|
ret int %tmp2
|
|
}
|
|
|
|
declare int %f(int, short)
|