aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/X86/fast-isel-trunc.ll
blob: 69b26c5442e4dc1c1dec945ab4358c65b4728f53 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
; 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
}