1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 11:02:59 +02:00
llvm-mirror/test/CodeGen/ARM/fabs-to-bfc.ll

15 lines
409 B
LLVM
Raw Normal View History

; RUN: llc < %s -mtriple=armv5e-none-linux-gnueabi -mattr=+vfp2 | FileCheck %s -check-prefix=CHECK-VABS
; RUN: llc < %s -mtriple=armv7-none-linux-gnueabi -mattr=+vfp3 | FileCheck %s -check-prefix=CHECK-BFC
define double @test(double %tx) {
;CHECK-LABEL: test:
%call = tail call double @fabs(double %tx)
ret double %call
;CHECK-VABS: vabs.f64
;CHECK-BFC: bfc
}
declare double @fabs(double) readnone