AArch64/ARM64: port more AArch64 tests to ARM64.
[oota-llvm.git] / test / CodeGen / AArch64 / neon-fpround_f128.ll
1 ; RUN: llc < %s -verify-machineinstrs -mtriple=aarch64-none-linux-gnu -mattr=+neon -fp-contract=fast | FileCheck %s
2 ; RUN: llc < %s -verify-machineinstrs -mtriple=arm64-none-linux-gnu -mattr=+neon -fp-contract=fast | FileCheck %s
3
4 define <1 x double> @test_fpround_v1f128(<1 x fp128>* %a) {
5 ; CHECK-LABEL: test_fpround_v1f128:
6 ; CHECK: bl __trunctfdf2
7   %b = load <1 x fp128>* %a
8   %c = fptrunc <1 x fp128> %b to <1 x double>
9   ret <1 x double> %c
10 }
11
12 define <2 x double> @test_fpround_v2f128(<2 x fp128>* %a) {
13 ; CHECK-LABEL: test_fpround_v2f128:
14 ; CHECK: bl __trunctfdf2
15 ; CHECK: bl __trunctfdf2
16   %b = load <2 x fp128>* %a
17   %c = fptrunc <2 x fp128> %b to <2 x double>
18   ret <2 x double> %c
19 }