1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc < %s -mtriple=i686-apple-darwin | FileCheck %s
5 @t1.global = internal global i64 -1, align 8
7 define i32 @t1() nounwind ssp {
9 ; CHECK: ## %bb.0: ## %entry
10 ; CHECK-NEXT: xorl %eax, %eax
11 ; CHECK-NEXT: cmpl $0, _t1.global
12 ; CHECK-NEXT: setne %al
14 ; CHECK-NEXT: ## -- End function
16 %0 = load i64, i64* @t1.global, align 8
17 %and = and i64 4294967295, %0
18 %cmp = icmp sgt i64 %and, 0
19 %conv = zext i1 %cmp to i32