mirror of
https://github.com/RPCS3/llvm.git
synced 2026-08-28 05:10:05 -04:00
f1f1b483b6
Summary: BFC instructions are available in ARMv6T2 and above. Reviewers: t.p.northover Subscribers: aemerson Differential Revision: http://reviews.llvm.org/D16076 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@257546 91177308-0d34-0410-b5e6-96231b3b80d8
15 lines
409 B
LLVM
15 lines
409 B
LLVM
; 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
|
|
|