2010-11-18 05:57:32 +08:00
|
|
|
; RUN: llc < %s -mtriple=arm-apple-darwin | grep moveq
|
2010-10-30 07:36:03 +08:00
|
|
|
; RUN: llc < %s -mtriple=armv7-apple-darwin -mcpu=cortex-a8 | FileCheck %s
|
2007-01-01 02:52:39 +08:00
|
|
|
|
2007-01-26 16:25:06 +08:00
|
|
|
define i32 @f7(float %a, float %b) {
|
2007-01-01 02:52:39 +08:00
|
|
|
entry:
|
2010-10-30 07:36:03 +08:00
|
|
|
; CHECK: f7:
|
|
|
|
; CHECK: vcmpe.f32
|
2012-03-16 05:34:14 +08:00
|
|
|
; CHECK: vmrs APSR_nzcv, fpscr
|
2010-10-30 07:36:03 +08:00
|
|
|
; CHECK: movweq
|
|
|
|
; CHECK-NOT: vmrs
|
|
|
|
; CHECK: movwvs
|
2007-01-01 02:52:39 +08:00
|
|
|
%tmp = fcmp ueq float %a,%b
|
2007-01-13 13:06:52 +08:00
|
|
|
%retval = select i1 %tmp, i32 666, i32 42
|
2007-01-01 02:52:39 +08:00
|
|
|
ret i32 %retval
|
|
|
|
}
|
|
|
|
|