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