Home | History | Annotate | Download | only in X86
      1 ; RUN: llc < %s -mtriple=i686-apple-darwin | FileCheck %s
      2 ; PR17338
      3 
      4 @t1.global = internal global i64 -1, align 8
      5 
      6 define i32 @t1() nounwind ssp {
      7 entry:
      8 ; CHECK-LABEL: t1:
      9 ; CHECK: cmpl	$0, _t1.global
     10 ; CHECK-NEXT: setne %al
     11 ; CHECK-NEXT: movzbl %al, %eax
     12 ; CHECK-NEXT: ret
     13   %0 = load i64* @t1.global, align 8
     14   %and = and i64 4294967295, %0
     15   %cmp = icmp sgt i64 %and, 0
     16   %conv = zext i1 %cmp to i32
     17   ret i32 %conv
     18 }
     19