New testcases
[oota-llvm.git] / test / Transforms / DSAnalysis / goodcases.ll
1 ; This file contains a list of cases where node folding should NOT happen
2 ;
3
4 implementation
5
6 void %test1({int, int}* %X) {
7         getelementptr {int, int} * %X, long 0
8         %Y = cast {int, int}* %X to uint*
9         store uint 5, uint* %Y
10         ret void
11 }
12
13 ; Test that "structural" equality works.  Pointers can land in pointers n 
14 ; stuff.
15 void %test2({int*, int*}* %X) {
16         getelementptr {int*, int*}* %X, long 0
17         %Y = cast {int*, int*}* %X to {uint*, long*}*
18         getelementptr {uint*, long*}* %Y, long 0
19         ret void
20 }
21