1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc < %s -mtriple=x86_64-unknown-unknown | FileCheck %s
4 define i1 @foo(i32 %i) optsize {
7 ; CHECK-NEXT: movl $305419896, %eax # imm = 0x12345678
8 ; CHECK-NEXT: andl %eax, %edi
9 ; CHECK-NEXT: cmpl %eax, %edi
10 ; CHECK-NEXT: sete %al
12 %and = and i32 %i, 305419896
13 %cmp = icmp eq i32 %and, 305419896
17 define zeroext i1 @g(i32 %x) optsize {
20 ; CHECK-NEXT: movl $1, %eax
21 ; CHECK-NEXT: orl %eax, %edi
22 ; CHECK-NEXT: cmpl %eax, %edi
23 ; CHECK-NEXT: sete %al
26 %t1 = icmp eq i32 %t0, 1