1 ; RUN: llc -mtriple=armv7 < %s | FileCheck %s
2 ; RUN: llc -mtriple=thumbv7 < %s | FileCheck %s
4 target datalayout = "e-m:e-p:32:32-i64:64-v128:64:128-a:0:32-n32-S64"
5 target triple = "armv7--"
7 define double @f(double %a) {
9 ; CHECK: bfc r1, #31, #1
11 %x = call double @llvm.fabs.f64(double %a) readnone
15 define float @g(float %a) {
17 ; CHECK: bic r0, r0, #-2147483648
19 %x = call float @llvm.fabs.f32(float %a) readnone
23 define double @h(double %a) {
25 ; CHECK: eor r1, r1, #-2147483648
27 %x = fsub nsz double -0.0, %a
31 define float @i(float %a) {
33 ; CHECK: eor r0, r0, #-2147483648
35 %x = fsub nsz float -0.0, %a
39 declare double @llvm.fabs.f64(double) readnone
40 declare float @llvm.fabs.f32(float) readnone