brintos

brintos / llvm-project-archived public Read only

0
0
Text · 922 B · 0341694 Raw
39 lines · plain
1; RUN: llc < %s  -O0 -fast-isel-abort=1 -mtriple i686-apple-darwin10 | FileCheck %s2; RUN: llc < %s  -O0 -fast-isel-abort=1 -mtriple x86_64-apple-darwin10 | FileCheck %s3 4define zeroext i8 @test1(i32 %y) nounwind {5  %conv = trunc i32 %y to i86  ret i8 %conv7  ; CHECK-LABEL: test1:8  ; CHECK: movzbl {{.*}}, %eax9}10 11define signext i8 @test2(i32 %y) nounwind {12  %conv = trunc i32 %y to i813  ret i8 %conv14  ; CHECK-LABEL: test2:15  ; CHECK: movsbl {{.*}}, %eax16}17 18define zeroext i16 @test3(i32 %y) nounwind {19  %conv = trunc i32 %y to i1620  ret i16 %conv21  ; CHECK-LABEL: test3:22  ; CHECK: movzwl {{.*}}, %eax23}24 25define signext i16 @test4(i32 %y) nounwind {26  %conv = trunc i32 %y to i1627  ret i16 %conv28  ; CHECK-LABEL: test4:29  ; CHECK: {{(movswl.%di, %eax|cwtl)}}30}31 32define zeroext i1 @test5(i32 %y) nounwind {33  %conv = trunc i32 %y to i134  ret i1 %conv35  ; CHECK-LABEL: test5:36  ; CHECK: andb $137  ; CHECK-NEXT: ret38}39