New testcases
[oota-llvm.git] / test / Transforms / DSAnalysis / badcases.ll
1 ; This file contains a list of situations where node folding should happen...
2
3 implementation
4
5 void %test1({int, int} * %X) {
6         getelementptr {int, int} * %X, long 0
7         %Y = cast {int, int} * %X to sbyte*
8         %Z = getelementptr sbyte* %Y, long 7
9         store sbyte 6, sbyte *%Z
10         ret void
11 }
12
13 void %test2({int, int} * %X) {
14         getelementptr {int, int} * %X, long 0
15         %Y = cast {int, int} * %X to {sbyte,sbyte,sbyte,sbyte,sbyte,sbyte,sbyte,sbyte} *
16         %Z = getelementptr {sbyte,sbyte,sbyte,sbyte,sbyte,sbyte,sbyte,sbyte}* %Y, long 0, ubyte 7
17         store sbyte 6, sbyte *%Z
18         ret void
19 }
20