summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/PowerPC/shift128.ll
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-03-07 20:36:53 +0000
committerDan Gohman <gohman@apple.com>2008-03-07 20:36:53 +0000
commit8d2ead2e34075ab049fc9d609f90735e96da60ce (patch)
tree0d1360f4de1e26832886ec4cc5d29adc145949d3 /llvm/test/CodeGen/PowerPC/shift128.ll
parentbfa252d4024b095b3a67b2d8155e7455691e1777 (diff)
downloadbcm5719-llvm-8d2ead2e34075ab049fc9d609f90735e96da60ce.tar.gz
bcm5719-llvm-8d2ead2e34075ab049fc9d609f90735e96da60ce.zip
Add support for lowering 128-bit shifts on ppc64.
llvm-svn: 48029
Diffstat (limited to 'llvm/test/CodeGen/PowerPC/shift128.ll')
-rw-r--r--llvm/test/CodeGen/PowerPC/shift128.ll14
1 files changed, 14 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/PowerPC/shift128.ll b/llvm/test/CodeGen/PowerPC/shift128.ll
new file mode 100644
index 00000000000..cf5b3fc6ff0
--- /dev/null
+++ b/llvm/test/CodeGen/PowerPC/shift128.ll
@@ -0,0 +1,14 @@
+; RUN: llvm-as < %s | llc -march=ppc64 | grep sld | count 5
+
+define i128 @foo_lshr(i128 %x, i128 %y) {
+ %r = lshr i128 %x, %y
+ ret i128 %r
+}
+define i128 @foo_ashr(i128 %x, i128 %y) {
+ %r = ashr i128 %x, %y
+ ret i128 %r
+}
+define i128 @foo_shl(i128 %x, i128 %y) {
+ %r = shl i128 %x, %y
+ ret i128 %r
+}
OpenPOWER on IntegriCloud