1 ; RUN: llc < %s -mtriple=i686-unknown-linux-gnu | FileCheck %s 2 ; rdar://6699246 3 4 define signext i8 @t1(i8* %A) nounwind readnone ssp { 5 entry: 6 %0 = icmp ne i8* %A, null 7 %1 = zext i1 %0 to i8 8 ret i8 %1 9 10 ; CHECK-LABEL: t1: 11 ; CHECK: cmpl 12 ; CHECK-NEXT: setne 13 ; CHECK-NEXT: retl 14 } 15 16 define i8 @t2(i8* %A) nounwind readnone ssp { 17 entry: 18 %0 = icmp ne i8* %A, null 19 %1 = zext i1 %0 to i8 20 ret i8 %1 21 22 ; CHECK-LABEL: t2: 23 ; CHECK: cmpl 24 ; CHECK-NEXT: setne 25 ; CHECK-NEXT: retl 26 } 27