llvm.org GIT mirror llvm / fc78232
[AArch64 NEON] Add test case for vector FP_ROUND. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@200110 91177308-0d34-0410-b5e6-96231b3b80d8 Kevin Qin 6 years ago
1 changed file(s) with 18 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 ; RUN: llc < %s -verify-machineinstrs -mtriple=aarch64-none-linux-gnu -mattr=+neon -fp-contract=fast | FileCheck %s
1
2 define <1 x double> @test_fpround_v1f128(<1 x fp128>* %a) {
3 ; CHECK-LABEL: test_fpround_v1f128:
4 ; CHECK: bl __trunctfdf2
5 %b = load <1 x fp128>* %a
6 %c = fptrunc <1 x fp128> %b to <1 x double>
7 ret <1 x double> %c
8 }
9
10 define <2 x double> @test_fpround_v2f128(<2 x fp128>* %a) {
11 ; CHECK-LABEL: test_fpround_v2f128:
12 ; CHECK: bl __trunctfdf2
13 ; CHECK: bl __trunctfdf2
14 %b = load <2 x fp128>* %a
15 %c = fptrunc <2 x fp128> %b to <2 x double>
16 ret <2 x double> %c
17 }