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