diff options
author | Hao Liu <Hao.Liu@arm.com> | 2014-02-10 03:16:22 +0000 |
---|---|---|
committer | Hao Liu <Hao.Liu@arm.com> | 2014-02-10 03:16:22 +0000 |
commit | 2825b8f0ea989e0d50f4287970f1461a1050ffb5 (patch) | |
tree | bfcf7a053858a63b0df103de96d66960395ae7d8 /test | |
parent | a73f0e2d4928675c5969324f3bb14717987556a8 (diff) | |
download | llvm-2825b8f0ea989e0d50f4287970f1461a1050ffb5.tar.gz llvm-2825b8f0ea989e0d50f4287970f1461a1050ffb5.tar.bz2 llvm-2825b8f0ea989e0d50f4287970f1461a1050ffb5.tar.xz |
[AArch64]Implement the copy of two FPR8 registers by using FMOVss of two FPR32 registers in copyPhysReg.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201061 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/CodeGen/AArch64/neon-copy.ll | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/CodeGen/AArch64/neon-copy.ll b/test/CodeGen/AArch64/neon-copy.ll index 8d4a3388bb..b4d55df529 100644 --- a/test/CodeGen/AArch64/neon-copy.ll +++ b/test/CodeGen/AArch64/neon-copy.ll @@ -1291,6 +1291,19 @@ entry: ret <2 x i64> %vecinit2 } +declare <1 x i8> @llvm.aarch64.neon.vsqadd.v1i8(<1 x i8>, <1 x i8>) + +; This case tests the copy of two FPR8 registers, which is implemented by fmov +; of two FPR32 registers. +define <1 x i8> @test_copy_FPR8_FPR8(<1 x i8> %a, <1 x i8> %b) { +; CHECK-LABEL: test_copy_FPR8_FPR8: +; CHECK: usqadd b1, b0 +; CHECK-NEXT: fmov s0, s1 +entry: + %vsqadd2.i = call <1 x i8> @llvm.aarch64.neon.vsqadd.v1i8(<1 x i8> %b, <1 x i8> %a) + ret <1 x i8> %vsqadd2.i +} + declare <1 x i16> @llvm.aarch64.neon.vsqadd.v1i16(<1 x i16>, <1 x i16>) define <1 x i16> @test_copy_FPR16_FPR16(<1 x i16> %a, <1 x i16> %b) { |