aboutsummaryrefslogtreecommitdiff
path: root/test/Transforms/InstSimplify/2011-01-14-Thread.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Transforms/InstSimplify/2011-01-14-Thread.ll')
-rw-r--r--test/Transforms/InstSimplify/2011-01-14-Thread.ll9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/Transforms/InstSimplify/2011-01-14-Thread.ll b/test/Transforms/InstSimplify/2011-01-14-Thread.ll
new file mode 100644
index 000000000000..8fc4dc5d5bb7
--- /dev/null
+++ b/test/Transforms/InstSimplify/2011-01-14-Thread.ll
@@ -0,0 +1,9 @@
+; RUN: opt < %s -instsimplify -S | FileCheck %s
+
+define i32 @shift_select(i1 %cond) {
+; CHECK: @shift_select
+ %s = select i1 %cond, i32 0, i32 1
+ %r = lshr i32 %s, 1
+ ret i32 %r
+; CHECK: ret i32 0
+}