aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/ARM/fabs-neon.ll
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2013-04-08 18:41:23 +0000
committerDimitry Andric <dim@FreeBSD.org>2013-04-08 18:41:23 +0000
commit4a16efa3e43e35f0cc9efe3a67f620f0017c3d36 (patch)
tree06099edc18d30894081a822b756f117cbe0b8207 /test/CodeGen/ARM/fabs-neon.ll
parent482e7bddf617ae804dc47133cb07eb4aa81e45de (diff)
Notes
Diffstat (limited to 'test/CodeGen/ARM/fabs-neon.ll')
-rw-r--r--test/CodeGen/ARM/fabs-neon.ll17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/CodeGen/ARM/fabs-neon.ll b/test/CodeGen/ARM/fabs-neon.ll
new file mode 100644
index 000000000000..614117ff7bca
--- /dev/null
+++ b/test/CodeGen/ARM/fabs-neon.ll
@@ -0,0 +1,17 @@
+; RUN: llc < %s -mtriple=armv7-eabi -float-abi=hard -mcpu=cortex-a8 | FileCheck %s
+
+; CHECK: 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: 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)