mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-21 02:59:15 +00:00
6690ccd573
llvm-svn: 55877
13 lines
281 B
LLVM
13 lines
281 B
LLVM
; RUN: llvm-as < %s | llc -march=x86 -fast-isel
|
|
; RUN: llvm-as < %s | llc -march=x86-64 -fast-isel
|
|
|
|
define i8 @t1(i32 %x) signext nounwind {
|
|
%tmp1 = trunc i32 %x to i8
|
|
ret i8 %tmp1
|
|
}
|
|
|
|
define i8 @t2(i16 signext %x) signext nounwind {
|
|
%tmp1 = trunc i16 %x to i8
|
|
ret i8 %tmp1
|
|
}
|