llvm.org GIT mirror llvm / 2edda52 test / CodeGen / ARM / fabs-to-bfc.ll
2edda52

Tree @2edda52 (Download .tar.gz)

fabs-to-bfc.ll @2edda52raw · history · blame

; 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