1 ; RUN: llc < %s -mtriple=x86_64-apple-darwin10 -mcpu=corei7 | FileCheck %s
3 define i64 @test1(i64 %x) nounwind {
5 %cmp = icmp eq i64 %x, 2
7 %retval.0 = select i1 %cmp, i64 2, i64 %add
11 ; CHECK: leaq 1(%rdi), %rax
12 ; CHECK: cmpq $2, %rdi
13 ; CHECK: cmoveq %rdi, %rax