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 | cd808237b24c7d6d0bb7ddf577dba37c31a06a50 (patch) | |
tree | 3e15e263edd31135f4279f6cb05b48dac89ad513 /llvm/test/CodeGen/SystemZ/vec-div-01.ll | |
parent | ce4c10958502b8f852dd88496272d262345a2513 (diff) | |
download | bcm5719-llvm-cd808237b24c7d6d0bb7ddf577dba37c31a06a50.tar.gz bcm5719-llvm-cd808237b24c7d6d0bb7ddf577dba37c31a06a50.zip |
[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.
llvm-svn: 236522
Diffstat (limited to 'llvm/test/CodeGen/SystemZ/vec-div-01.ll')
-rw-r--r-- | llvm/test/CodeGen/SystemZ/vec-div-01.ll | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/llvm/test/CodeGen/SystemZ/vec-div-01.ll b/llvm/test/CodeGen/SystemZ/vec-div-01.ll index 3c5ec4f54ee..5666444e9da 100644 --- a/llvm/test/CodeGen/SystemZ/vec-div-01.ll +++ b/llvm/test/CodeGen/SystemZ/vec-div-01.ll @@ -1,5 +1,5 @@ -; Test vector division. There is no native support for this, so it's really -; a test of the operation legalization code. +; Test vector division. There is no native integer support for this, +; so the integer cases are really a test of the operation legalization code. ; ; RUN: llc < %s -mtriple=s390x-linux-gnu -mcpu=z13 | FileCheck %s @@ -60,3 +60,13 @@ define <2 x i64> @f4(<2 x i64> %dummy, <2 x i64> %val1, <2 x i64> %val2) { %ret = sdiv <2 x i64> %val1, %val2 ret <2 x i64> %ret } + +; Test a v2f64 division. +define <2 x double> @f5(<2 x double> %dummy, <2 x double> %val1, + <2 x double> %val2) { +; CHECK-LABEL: f5: +; CHECK: vfddb %v24, %v26, %v28 +; CHECK: br %r14 + %ret = fdiv <2 x double> %val1, %val2 + ret <2 x double> %ret +} |