summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--test/Transforms/InstCombine/shift.ll8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/shift.ll b/test/Transforms/InstCombine/shift.ll
index 0834efc..d810e18 100644
--- a/test/Transforms/InstCombine/shift.ll
+++ b/test/Transforms/InstCombine/shift.ll
@@ -172,3 +172,11 @@ sbyte %test24(sbyte %X) {
ret sbyte %Q
}
+uint %test25(uint %tmp.2, uint %AA) {
+ %x = shr uint %AA, ubyte 17
+ %tmp.3 = shr uint %tmp.2, ubyte 17 ; <uint> [#uses=1]
+ %tmp.5 = add uint %tmp.3, %x ; <uint> [#uses=1]
+ %tmp.6 = shl uint %tmp.5, ubyte 17 ; <uint> [#uses=1]
+ ret uint %tmp.6
+}
+