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:
|
2013-07-14 06:24:09 +00:00
|
|
|
; CHECK-LABEL: f7:
|
2010-10-29 23:36:03 +00:00
|
|
|
; CHECK: vcmpe.f32
|
2012-03-15 21:34:14 +00:00
|
|
|
; CHECK: vmrs APSR_nzcv, fpscr
|
2010-10-29 23:36:03 +00:00
|
|
|
; 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
|
|
|
|
}
|
|
|
|
|