Dan Gohman | 0a06310 | 2009-09-08 23:54:48 +0000 | [diff] [blame] | 1 | ; RUN: llc < %s -march=x86 -fast-isel -fast-isel-abort |
2 | ; RUN: llc < %s -march=x86-64 -fast-isel -fast-isel-abort | ||||
Evan Cheng | 303530d | 2008-09-07 08:47:42 +0000 | [diff] [blame] | 3 | |
4 | define i8 @t1(i32 %x) signext nounwind { | ||||
5 | %tmp1 = trunc i32 %x to i8 | ||||
6 | ret i8 %tmp1 | ||||
7 | } | ||||
8 | |||||
9 | define i8 @t2(i16 signext %x) signext nounwind { | ||||
10 | %tmp1 = trunc i16 %x to i8 | ||||
11 | ret i8 %tmp1 | ||||
12 | } |