summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/ARM
diff options
context:
space:
mode:
authorIvan A. Kosarev <ikosarev@accesssoftek.com>2018-04-13 12:45:12 +0000
committerIvan A. Kosarev <ikosarev@accesssoftek.com>2018-04-13 12:45:12 +0000
commitf533a6e5aa8f6c178cea66e6a04b9c02972add0b (patch)
tree8a0b99759bfc582754b83d8a539ad414cb1bec3f /llvm/test/CodeGen/ARM
parentc7211fb1b69ce862fdce17327ad2aba22b891ded (diff)
downloadbcm5719-llvm-f533a6e5aa8f6c178cea66e6a04b9c02972add0b.tar.gz
bcm5719-llvm-f533a6e5aa8f6c178cea66e6a04b9c02972add0b.zip
[NEON] Support intrinsic for scalar and vector versions of the VRINTN instruction
Differential Revision: https://reviews.llvm.org/D45514 llvm-svn: 330011
Diffstat (limited to 'llvm/test/CodeGen/ARM')
-rw-r--r--llvm/test/CodeGen/ARM/vrint.ll11
1 files changed, 11 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/ARM/vrint.ll b/llvm/test/CodeGen/ARM/vrint.ll
new file mode 100644
index 00000000000..55a6253735f
--- /dev/null
+++ b/llvm/test/CodeGen/ARM/vrint.ll
@@ -0,0 +1,11 @@
+; RUN: llc -mtriple=armv8 -mattr=+neon %s -o - | FileCheck %s
+
+declare float @llvm.arm.neon.vrintn.f32(float) nounwind readnone
+
+; CHECK-LABEL: vrintn_f32:
+; CHECK: vrintn.f32
+define float @vrintn_f32(float* %A) nounwind {
+ %tmp1 = load float, float* %A
+ %tmp2 = call float @llvm.arm.neon.vrintn.f32(float %tmp1)
+ ret float %tmp2
+}
OpenPOWER on IntegriCloud