Home | History | Annotate | Download | only in X86
      1 ; RUN: llc < %s -mtriple=x86_64-apple-darwin10 -mcpu=corei7 | FileCheck %s
      2 
      3 define i64 @test1(i64 %x) nounwind {
      4 entry:
      5   %cmp = icmp eq i64 %x, 2
      6   %add = add i64 %x, 1
      7   %retval.0 = select i1 %cmp, i64 2, i64 %add
      8   ret i64 %retval.0
      9 
     10 ; CHECK-LABEL: test1:
     11 ; CHECK: leaq 1(%rdi), %rax
     12 ; CHECK: cmpq $2, %rdi
     13 ; CHECK: cmoveq %rdi, %rax
     14 ; CHECK: ret
     15 
     16 }
     17