xref: /llvm-project/llvm/test/CodeGen/X86/compare-add.ll (revision 584ed8822631481ced8d3574cc1fed1585aed77d)
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2; RUN: llc < %s -mtriple=i686-- | FileCheck %s
3
4define i1 @X(i32 %X) {
5; CHECK-LABEL: X:
6; CHECK:       # %bb.0:
7; CHECK-NEXT:    cmpl $12331, {{[0-9]+}}(%esp) # imm = 0x302B
8; CHECK-NEXT:    setne %al
9; CHECK-NEXT:    retl
10        %Y = add i32 %X, 14             ; <i32> [#uses=1]
11        %Z = icmp ne i32 %Y, 12345              ; <i1> [#uses=1]
12        ret i1 %Z
13}
14
15