llvm.org GIT mirror llvm / d0848a6 test / CodeGen / ARM / fpcmp_ueq.ll
d0848a6

Tree @d0848a6 (Download .tar.gz)

fpcmp_ueq.ll @d0848a6raw · history · blame

; RUN: llc < %s -mtriple=arm-apple-darwin | grep moveq 
; RUN: llc < %s -mtriple=armv7-apple-darwin -mcpu=cortex-a8 | FileCheck %s

define i32 @f7(float %a, float %b) {
entry:
; CHECK: f7:
; CHECK: vcmpe.f32
; CHECK: vmrs apsr_nzcv, fpscr
; CHECK: movweq
; CHECK-NOT: vmrs
; CHECK: movwvs
    %tmp = fcmp ueq float %a,%b
    %retval = select i1 %tmp, i32 666, i32 42
    ret i32 %retval
}