diff options
author | Ulrich Weigand <ulrich.weigand@de.ibm.com> | 2015-05-05 19:26:48 +0000 |
---|---|---|
committer | Ulrich Weigand <ulrich.weigand@de.ibm.com> | 2015-05-05 19:26:48 +0000 |
commit | 16541113840f4695a1e5c03286ccfa2f99a7c7e0 (patch) | |
tree | 324c840279f018a270b50f9e83dda9b96acf39e9 /test/CodeGen/SystemZ/vec-perm-08.ll | |
parent | aa5c996eda6dbaab398c8502717b37de2d10e4b7 (diff) |
[SystemZ] Add CodeGen support for v2f64
This adds ABI and CodeGen support for the v2f64 type, which is natively
supported by z13 instructions.
Based on a patch by Richard Sandiford.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@236522 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/SystemZ/vec-perm-08.ll')
-rw-r--r-- | test/CodeGen/SystemZ/vec-perm-08.ll | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/test/CodeGen/SystemZ/vec-perm-08.ll b/test/CodeGen/SystemZ/vec-perm-08.ll index 4d06377f5a3..b5220ab6712 100644 --- a/test/CodeGen/SystemZ/vec-perm-08.ll +++ b/test/CodeGen/SystemZ/vec-perm-08.ll @@ -128,3 +128,23 @@ define <2 x i64> @f11(<2 x i64> %val1, <2 x i64> %val2) { <2 x i32> <i32 3, i32 0> ret <2 x i64> %ret } + +; Test a high1/low2 permute for v2f64. +define <2 x double> @f14(<2 x double> %val1, <2 x double> %val2) { +; CHECK-LABEL: f14: +; CHECK: vpdi %v24, %v24, %v26, 1 +; CHECK: br %r14 + %ret = shufflevector <2 x double> %val1, <2 x double> %val2, + <2 x i32> <i32 0, i32 3> + ret <2 x double> %ret +} + +; Test a low2/high1 permute for v2f64. +define <2 x double> @f15(<2 x double> %val1, <2 x double> %val2) { +; CHECK-LABEL: f15: +; CHECK: vpdi %v24, %v26, %v24, 4 +; CHECK: br %r14 + %ret = shufflevector <2 x double> %val1, <2 x double> %val2, + <2 x i32> <i32 3, i32 0> + ret <2 x double> %ret +} |