llvm.org GIT mirror llvm / release_35@215010 test / CodeGen / ARM / fabs-neon.ll
release_35@215010

Tree @release_35@215010 (Download .tar.gz)

fabs-neon.ll @release_35@215010raw · history · blame

; RUN: llc < %s -mtriple=armv7-eabi -float-abi=hard -mcpu=cortex-a8 | FileCheck %s

; CHECK-LABEL: test:
; CHECK:         vabs.f32        q0, q0
define <4 x float> @test(<4 x float> %a) {
  %foo = call <4 x float> @llvm.fabs.v4f32(<4 x float> %a)
  ret <4 x float> %foo
}
declare <4 x float> @llvm.fabs.v4f32(<4 x float> %a)

; CHECK-LABEL: test2:
; CHECK:        vabs.f32        d0, d0
define <2 x float> @test2(<2 x float> %a) {
  %foo = call <2 x float> @llvm.fabs.v2f32(<2 x float> %a)
    ret <2 x float> %foo
}
declare <2 x float> @llvm.fabs.v2f32(<2 x float> %a)