Testcase to make sure we can apply the shift to the operands of the select,
eliminating the shifts

llvm-svn: 12801
diff --git a/llvm/test/Regression/Transforms/InstCombine/shift.ll b/llvm/test/Regression/Transforms/InstCombine/shift.ll
index 016d00f..ac7bb27 100644
--- a/llvm/test/Regression/Transforms/InstCombine/shift.ll
+++ b/llvm/test/Regression/Transforms/InstCombine/shift.ll
@@ -96,3 +96,16 @@
 	%D = shr uint %C, ubyte 4   ;; D = ((B | 1234) << 4) === ((B << 4)|(1234 << 4)
 	ret uint %D
 }
+
+int %test15(bool %C) {
+        %A = select bool %C, int 3, int 1
+        %V = shl int %A, ubyte 2
+        ret int %V
+}
+
+int %test15a(bool %C) {
+        %A = select bool %C, ubyte 3, ubyte 1
+        %V = shl int 64, ubyte %A
+        ret int %V
+}
+