1 ; RUN: llc < %s -O0 -fast-isel-abort -relocation-model=dynamic-no-pic -mtriple=armv7-apple-darwin | FileCheck %s --check-prefix=ARM
2 ; RUN: llc < %s -O0 -fast-isel-abort -relocation-model=dynamic-no-pic -mtriple=thumbv7-apple-darwin | FileCheck %s --check-prefix=THUMB
4 define i32 @icmp_i16_unsigned(i16 %a, i16 %b) nounwind {
6 ; ARM: icmp_i16_unsigned
10 ; THUMB: icmp_i16_unsigned
14 %cmp = icmp ult i16 %a, %b
15 %conv2 = zext i1 %cmp to i32
19 define i32 @icmp_i8_signed(i8 %a, i8 %b) nounwind {
25 ; THUMB: icmp_i8_signed
29 %cmp = icmp sgt i8 %a, %b
30 %conv2 = zext i1 %cmp to i32
34 define i32 @icmp_i1_unsigned(i1 %a, i1 %b) nounwind {
36 ; ARM: icmp_i1_unsigned
40 ; THUMB: icmp_i1_unsigned
41 ; THUMB: and r0, r0, #1
42 ; THUMB: and r1, r1, #1
44 %cmp = icmp ult i1 %a, %b
45 %conv2 = zext i1 %cmp to i32