summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/SPARC
diff options
context:
space:
mode:
authorRoman Divacky <rdivacky@freebsd.org>2014-02-19 21:35:39 +0000
committerRoman Divacky <rdivacky@freebsd.org>2014-02-19 21:35:39 +0000
commit37136c0333949443f1a94d9d6a14a8f15507a42e (patch)
treebdab0c11a3fa29e272e1f2ae5a6539ac794e59e1 /llvm/test/CodeGen/SPARC
parent7d357111876c1731ba794092662c48d88eda0004 (diff)
downloadbcm5719-llvm-37136c0333949443f1a94d9d6a14a8f15507a42e.tar.gz
bcm5719-llvm-37136c0333949443f1a94d9d6a14a8f15507a42e.zip
Expand 64bit {SHL,SHR,SRA}_PARTS on sparcv9.
llvm-svn: 201718
Diffstat (limited to 'llvm/test/CodeGen/SPARC')
-rw-r--r--llvm/test/CodeGen/SPARC/parts.ll14
1 files changed, 14 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/SPARC/parts.ll b/llvm/test/CodeGen/SPARC/parts.ll
new file mode 100644
index 00000000000..57add4948e7
--- /dev/null
+++ b/llvm/test/CodeGen/SPARC/parts.ll
@@ -0,0 +1,14 @@
+; RUN: llc < %s -march=sparcv9 | FileCheck %s
+
+; CHECK-LABEL: test
+; CHECK: srl %i1, 0, %o2
+; CHECK-NEXT: or %g0, %i2, %o0
+; CHECK-NEXT: call __ashlti3
+; CHECK-NEXT: or %g0, %i3, %o1
+; CHECK-NEXT: or %g0, %o0, %i0
+
+define i128 @test(i128 %a, i128 %b) {
+entry:
+ %tmp = shl i128 %b, %a
+ ret i128 %tmp
+}
OpenPOWER on IntegriCloud