| commit | 7eaa535d4d58620df9f754e5a778e21813bcc856 | [log] [tgz] |
|---|---|---|
| author | Chris Lattner <sabre@nondot.org> | Mon Feb 23 20:24:16 2004 +0000 |
| committer | Chris Lattner <sabre@nondot.org> | Mon Feb 23 20:24:16 2004 +0000 |
| tree | 47b6ebb8f4e19dc365efa195a72a62cea89bef6b | |
| parent | 1cc1217121f40ffc1ea21305c1f4ba6089bb8d0e [diff] [blame] |
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 +}