91e33e04c0288b1a1fef842cd99f3cf1ef8d92e6
[oota-llvm.git] / test / Transforms / Mem2Reg / DifferingTypes.ll
1 ; This is a feature test.  Hopefully one day this will be implemented.  The 
2 ; generated code should perform the appropriate masking operations required 
3 ; depending on the endianness of the target...
4
5 ; RUN: llvm-as < %s | opt -mem2reg | llvm-dis | not grep 'alloca'
6
7 implementation
8
9 int %testfunc(int %i, sbyte %j) {
10         %I = alloca int
11
12         store int %i, int* %I
13
14         %P = cast int* %I to sbyte*
15         store sbyte %j, sbyte* %P
16
17         %t = load int* %I
18         ret int %t
19 }