diff options
| author | Chris Lattner <sabre@nondot.org> | 2005-06-17 03:58:30 +0000 | 
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2005-06-17 03:58:30 +0000 | 
| commit | e708353d0404b3c59a8ef3431d17e6da6e7128a6 (patch) | |
| tree | 0f8d0efb4d77650c09a08e33b70c99aa9950a9aa | |
| parent | 73bcba5f61711e6d84f5d8fb2aa100d04a7a1c48 (diff) | |
| download | bcm5719-llvm-e708353d0404b3c59a8ef3431d17e6da6e7128a6.tar.gz bcm5719-llvm-e708353d0404b3c59a8ef3431d17e6da6e7128a6.zip  | |
new testcase for PR586
llvm-svn: 22235
| -rw-r--r-- | llvm/test/Regression/Transforms/InstCombine/2005-06-16-SetCCOrSetCCMiscompile.ll | 15 | 
1 files changed, 15 insertions, 0 deletions
diff --git a/llvm/test/Regression/Transforms/InstCombine/2005-06-16-SetCCOrSetCCMiscompile.ll b/llvm/test/Regression/Transforms/InstCombine/2005-06-16-SetCCOrSetCCMiscompile.ll new file mode 100644 index 00000000000..53470971ef5 --- /dev/null +++ b/llvm/test/Regression/Transforms/InstCombine/2005-06-16-SetCCOrSetCCMiscompile.ll @@ -0,0 +1,15 @@ +; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep 'ret bool true' +; PR586 + +%g_07918478 = external global uint		; <uint*> [#uses=1] + +implementation   ; Functions: + +bool %test() { +	%tmp.0 = load uint* %g_07918478		; <uint> [#uses=2] +	%tmp.1 = setne uint %tmp.0, 0		; <bool> [#uses=1] +	%tmp.4 = setlt uint %tmp.0, 4111		; <bool> [#uses=1] +	%bothcond = or bool %tmp.1, %tmp.4		; <bool> [#uses=1] +	ret bool %bothcond +} +  | 

