1
; RUN: llc < %s -O0 -fast-isel-abort -mtriple i686-apple-darwin10 | FileCheck %s
2
; RUN: llc < %s -O0 -fast-isel-abort -mtriple x86_64-apple-darwin10 | FileCheck %s
4
define zeroext i8 @test1(i32 %y) nounwind {
5
%conv = trunc i32 %y to i8
8
; CHECK: movzbl {{.*}}, %eax
11
define signext i8 @test2(i32 %y) nounwind {
12
%conv = trunc i32 %y to i8
15
; CHECK: movsbl {{.*}}, %eax
18
define zeroext i16 @test3(i32 %y) nounwind {
19
%conv = trunc i32 %y to i16
22
; CHECK: movzwl {{.*}}, %eax
25
define signext i16 @test4(i32 %y) nounwind {
26
%conv = trunc i32 %y to i16
29
; CHECK: movswl {{.*}}, %eax
32
define zeroext i1 @test5(i32 %y) nounwind {
33
%conv = trunc i32 %y to i1
37
; CHECK: movzbl {{.*}}, %eax