blob: 4e002c5e92a0cd29cacdf919ba5bd4bb4ade8e28 [file] [log] [blame]
Chris Lattnercddf9922004-11-06 21:03:41 +00001; RUN: llvm-as < 2002-11-04-ConstantSharing.ll | opt -raise | llvm-dis | not grep cast
Chris Lattner78da4f02003-05-11 22:46:23 +00002
3implementation
4
5bool %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}