1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-01 08:23:21 +01:00
llvm-mirror/test/CodeGen/X86/fast-isel-trunc.ll

13 lines
295 B
LLVM
Raw Normal View History

; RUN: llc < %s -march=x86 -fast-isel -fast-isel-abort
; RUN: llc < %s -march=x86-64 -fast-isel -fast-isel-abort
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
}