llvm.org GIT mirror llvm / fc4b9bc
Add a test for a feature that I hope will be implemented someday git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5673 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 16 years ago
1 changed file(s) with 22 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
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
4 ; RUN: if as < %s | opt -mem2reg | dis | grep 'alloca'
5 ; RUN: then exit 1
6 ; RUN: else exit 0
7 ; RUN: fi
8
9 implementation
10
11 int %testfunc(int %i, sbyte %j) {
12 %I = alloca int
13
14 store int %i, int* %I
15
16 %P = cast int* %I to sbyte*
17 store sbyte %j, sbyte* %P
18
19 %t = load int* %I
20 ret int %t
21 }