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

Tree @release_50 (Download .tar.gz)

fabs-to-bfc.ll @release_50raw · 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