; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
; RUN: llc < %s -mtriple=i686-- | FileCheck %s
define i1 @X(i32 %X) {
; CHECK-LABEL: X:
; CHECK: # %bb.0:
; CHECK-NEXT: cmpl $12331, {{[0-9]+}}(%esp) # imm = 0x302B
; CHECK-NEXT: setne %al
; CHECK-NEXT: retl
%Y = add i32 %X, 14 ; <i32> [#uses=1]
%Z = icmp ne i32 %Y, 12345 ; <i1> [#uses=1]
ret i1 %Z
}