expand ISD::SHL_PARTS, ISD::SRA_PARTS and ISD::SRL_PARTS


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30987 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/CodeGen/ARM/longarith.ll b/test/CodeGen/ARM/longarith.ll
new file mode 100644
index 0000000..ecf66c1
--- /dev/null
+++ b/test/CodeGen/ARM/longarith.ll
@@ -0,0 +1,24 @@
+; RUN: llvm-as < %s | llc -march=arm &&
+; RUN: llvm-as < %s | llc -march=arm | grep __ashldi3 &&
+; RUN: llvm-as < %s | llc -march=arm | grep __ashrdi3 &&
+; RUN: llvm-as < %s | llc -march=arm | grep __lshrdi3
+uint %f1(ulong %x, ubyte %y) {
+entry:
+	%a = shl ulong %x, ubyte %y
+	%b = cast ulong %a to uint
+	ret uint %b
+}
+
+uint %f2(long %x, ubyte %y) {
+entry:
+	%a = shr long %x, ubyte %y
+	%b = cast long %a to uint
+	ret uint %b
+}
+
+uint %f3(ulong %x, ubyte %y) {
+entry:
+	%a = shr ulong %x, ubyte %y
+	%b = cast ulong %a to uint
+	ret uint %b
+}