1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py 2; RUN: llc < %s -mtriple=i686-apple-darwin | FileCheck %s 3; PR17338 4 5@t1.global = internal global i64 -1, align 8 6 7define i32 @t1() nounwind ssp { 8; CHECK-LABEL: t1: 9; CHECK: ## %bb.0: ## %entry 10; CHECK-NEXT: xorl %eax, %eax 11; CHECK-NEXT: cmpl $0, _t1.global 12; CHECK-NEXT: setne %al 13; CHECK-NEXT: retl 14; CHECK-NEXT: ## -- End function 15entry: 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 20 ret i32 %conv 21} 22