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