llvm.org GIT mirror llvm / 514630f
Move Mem2Reg/DifferingTypes.ll -> ScalarRepl/DifferingTypes.ll. -scalarrepl implements this xform. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36804 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 12 years ago
2 changed file(s) with 19 addition(s) and 20 deletion(s). Raw diff Collapse all Expand all
+0
-20
test/Transforms/Mem2Reg/DifferingTypes.ll less more
None ; This is a feature test. Hopefully one day this will be implemented. The
1 ; generated code should perform the appropriate masking operations required
2 ; depending on the endianness of the target...
3 ; XFAIL: *
4 ; RUN: llvm-upgrade < %s | llvm-as | opt -mem2reg | llvm-dis | \
5 ; RUN: 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 }
0 ; This is a feature test. Hopefully one day this will be implemented. The
1 ; generated code should perform the appropriate masking operations required
2 ; depending on the endianness of the target...
3 ; RUN: llvm-upgrade < %s | llvm-as | opt -scalarrepl | llvm-dis | \
4 ; RUN: not grep alloca
5
6 implementation
7
8 int %testfunc(int %i, sbyte %j) {
9 %I = alloca int
10
11 store int %i, int* %I
12
13 %P = cast int* %I to sbyte*
14 store sbyte %j, sbyte* %P
15
16 %t = load int* %I
17 ret int %t
18 }