Constant fold the isnan intrinsic
[oota-llvm.git] / test / Analysis / DSGraph / 2003-07-16-ConstantExprCollapse.ll
1 ; This should cause the global node to collapse!!
2 ;
3 ; RUN: analyze %s -datastructure-gc --dsgc-check-flags=test:GAU
4
5 %Tree = type { int, %Tree*, %Tree* }
6 %T5 = external global %Tree
7
8 implementation   ; Functions:
9
10 void %makeMore(%Tree** %X) {
11         store %Tree* cast (long add (long cast (%Tree* %T5 to long), long 5) to %Tree*), %Tree** %X
12         %test = load %Tree** %X
13         ret void
14 }
15