aboutsummaryrefslogtreecommitdiffstats
path: root/test/Transforms/InstCombine
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-03-13 00:11:38 +0000
committerChris Lattner <sabre@nondot.org>2004-03-13 00:11:38 +0000
commiteb416e85bc956b7515fa0c6ed67acdbd0471662f (patch)
tree26abc6750bb9e4f84cbf4ed0c4996beda13929e2 /test/Transforms/InstCombine
parent9c2906744ab1dc5263ade61c5d376cb9bd786069 (diff)
downloadexternal_llvm-eb416e85bc956b7515fa0c6ed67acdbd0471662f.zip
external_llvm-eb416e85bc956b7515fa0c6ed67acdbd0471662f.tar.gz
external_llvm-eb416e85bc956b7515fa0c6ed67acdbd0471662f.tar.bz2
Oh right, casts can interfere. Test this too
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12354 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/InstCombine')
-rw-r--r--test/Transforms/InstCombine/sub.ll8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/sub.ll b/test/Transforms/InstCombine/sub.ll
index 59dc5bd..80199121 100644
--- a/test/Transforms/InstCombine/sub.ll
+++ b/test/Transforms/InstCombine/sub.ll
@@ -86,3 +86,11 @@ uint %test13(uint %A) {
%C = sub uint 0, %B ; == sar A, 31
ret uint %C
}
+
+int %test14(uint %A) {
+ %B = shr uint %A, ubyte 31
+ %C = cast uint %B to int
+ %D = sub int 0, %C
+ ret int %D
+}
+