brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.3 KiB · f66479c Raw
59 lines · plain
1; RUN: llc < %s -O0 -fast-isel-abort=1 -relocation-model=dynamic-no-pic -mtriple=armv7-apple-ios -verify-machineinstrs | FileCheck %s2; RUN: llc < %s -O0 -fast-isel-abort=1 -relocation-model=dynamic-no-pic -mtriple=armv7-linux-gnueabi -verify-machineinstrs | FileCheck %s3; RUN: llc < %s -O0 -fast-isel-abort=1 -relocation-model=dynamic-no-pic -mtriple=thumbv7-apple-ios -verify-machineinstrs | FileCheck %s4 5; Sign-extend of i1 currently not supported by fast-isel6;define signext i1 @ret0(i1 signext %a) nounwind uwtable ssp {7;entry:8;  ret i1 %a9;}10 11define zeroext i1 @ret1(i1 signext %a) nounwind uwtable ssp {12entry:13; CHECK: ret114; CHECK: and r0, r0, #115; CHECK: bx lr16  ret i1 %a17}18 19define signext i8 @ret2(i8 signext %a) nounwind uwtable ssp {20entry:21; CHECK: ret222; CHECK: sxtb r0, r023; CHECK: bx lr24  ret i8 %a25}26 27define zeroext i8 @ret3(i8 signext %a) nounwind uwtable ssp {28entry:29; CHECK: ret330; CHECK: and r0, r0, #25531; CHECK: bx lr32  ret i8 %a33}34 35define signext i16 @ret4(i16 signext %a) nounwind uwtable ssp {36entry:37; CHECK: ret438; CHECK: sxth r0, r039; CHECK: bx lr40  ret i16 %a41}42 43define zeroext i16 @ret5(i16 signext %a) nounwind uwtable ssp {44entry:45; CHECK: ret546; CHECK: uxth r0, r047; CHECK: bx lr48  ret i16 %a49}50 51define i16 @ret6(i16 %a) nounwind uwtable ssp {52entry:53; CHECK: ret654; CHECK-NOT: uxth55; CHECK-NOT: sxth56; CHECK: bx lr57  ret i16 %a58}59