From 11bea4f7c7d9863d59fea15c5fac3ec872b828ad Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 3 Nov 2003 05:08:53 +0000 Subject: [PATCH] Add another case, which an implementation of test6 must be sure to handle correctly. llvm-svn: 9672 --- llvm/test/Regression/Transforms/InstCombine/cast-set.ll | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/llvm/test/Regression/Transforms/InstCombine/cast-set.ll b/llvm/test/Regression/Transforms/InstCombine/cast-set.ll index b87c22a49e0b..1e4b537c2578 100644 --- a/llvm/test/Regression/Transforms/InstCombine/cast-set.ll +++ b/llvm/test/Regression/Transforms/InstCombine/cast-set.ll @@ -48,6 +48,12 @@ bool %test6(bool %A) { ret bool %C } +bool %test6a(bool %A) { + %B = cast bool %A to int + %C = setne int %B, -1 ; Always true! + ret bool %C +} + bool %test7(sbyte* %A) { %B = cast sbyte* %A to int* %C = seteq int* %B, null