For PR1319:
[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 ; XFAIL: *
5 ; RUN: llvm-upgrade < %s | llvm-as | opt -mem2reg | llvm-dis | \
6 ; RUN:   not grep alloca
7
8 implementation
9
10 int %testfunc(int %i, sbyte %j) {
11         %I = alloca int
12
13         store int %i, int* %I
14
15         %P = cast int* %I to sbyte*
16         store sbyte %j, sbyte* %P
17
18         %t = load int* %I
19         ret int %t
20 }