summaryrefslogtreecommitdiffstats
path: root/llvm/test/Regression/Transforms/InstCombine/and.ll
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/Regression/Transforms/InstCombine/and.ll')
-rw-r--r--llvm/test/Regression/Transforms/InstCombine/and.ll14
1 files changed, 14 insertions, 0 deletions
diff --git a/llvm/test/Regression/Transforms/InstCombine/and.ll b/llvm/test/Regression/Transforms/InstCombine/and.ll
index e8558f7d907..81cd325c3f4 100644
--- a/llvm/test/Regression/Transforms/InstCombine/and.ll
+++ b/llvm/test/Regression/Transforms/InstCombine/and.ll
@@ -197,3 +197,17 @@ int %test30(bool %X) {
%Z = and int %Y, 1
ret int %Z
}
+
+uint %test31(bool %X) {
+ %Y = cast bool %X to uint
+ %Z = shl uint %Y, ubyte 4
+ %A = and uint %Z, 16
+ ret uint %A
+}
+
+uint %test32(uint %In) {
+ %Y = and uint %In, 16
+ %Z = shr uint %Y, ubyte 2
+ %A = and uint %Z, 1
+ ret uint %A
+}
OpenPOWER on IntegriCloud