Test for the other way also

llvm-svn: 11767
diff --git a/llvm/test/Regression/Transforms/InstCombine/2004-02-23-ShiftShiftOverflow.ll b/llvm/test/Regression/Transforms/InstCombine/2004-02-23-ShiftShiftOverflow.ll
index 911a73f..97020c5 100644
--- a/llvm/test/Regression/Transforms/InstCombine/2004-02-23-ShiftShiftOverflow.ll
+++ b/llvm/test/Regression/Transforms/InstCombine/2004-02-23-ShiftShiftOverflow.ll
@@ -6,3 +6,10 @@
 	%Z = shr int %Y, ubyte 17
 	ret int %Z
 }
+
+int %test2(int %X) {
+	; Do not fold into shl X, 34, as this uses undefined behavior!
+	%Y = shl int %X, ubyte 17
+	%Z = shl int %Y, ubyte 17
+	ret int %Z
+}