From d689a5eb9ce16a19b2f324e56468933d473f4b9c Mon Sep 17 00:00:00 2001
From: Chris Lattner <sabre@nondot.org>
Date: Sat, 13 Mar 2004 00:11:38 +0000
Subject: [PATCH] Oh right, casts can interfere.  Test this too

llvm-svn: 12354
---
 llvm/test/Regression/Transforms/InstCombine/sub.ll | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/llvm/test/Regression/Transforms/InstCombine/sub.ll b/llvm/test/Regression/Transforms/InstCombine/sub.ll
index 59dc5bd06eab..801991212ae3 100644
--- a/llvm/test/Regression/Transforms/InstCombine/sub.ll
+++ b/llvm/test/Regression/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
+}
+