Chris Lattner | cddf992 | 2004-11-06 21:03:41 +0000 | [diff] [blame] | 1 | ; RUN: llvm-as < 2002-11-04-ConstantSharing.ll | opt -raise | llvm-dis | not grep cast |
Chris Lattner | 78da4f0 | 2003-05-11 22:46:23 +0000 | [diff] [blame] | 2 | |
3 | implementation | ||||
4 | |||||
5 | bool %test(int *%X, uint* %Y) { | ||||
6 | %A = cast int* %X to sbyte* | ||||
7 | %B = cast uint* %Y to sbyte* | ||||
8 | %c1 = seteq sbyte* %A, null | ||||
9 | %c2 = seteq sbyte* %B, null | ||||
10 | %c = and bool %c1, %c2 | ||||
11 | ret bool %c | ||||
12 | } |