diff options
| author | Chris Lattner <sabre@nondot.org> | 2003-05-29 19:17:51 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2003-05-29 19:17:51 +0000 |
| commit | 265a0c19a1fa6c03ddcbfdb9e1fc79edcdfdd8a4 (patch) | |
| tree | 2d9b79de7772f3f7b35f54ae46db5085c9c9dd3e /test/Transforms/DSAnalysis/structpadding.ll | |
| parent | 5361c83ae9309463a52eb8ed5f4f74e95d4386ba (diff) | |
Check in old tests
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6408 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/DSAnalysis/structpadding.ll')
| -rw-r--r-- | test/Transforms/DSAnalysis/structpadding.ll | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/Transforms/DSAnalysis/structpadding.ll b/test/Transforms/DSAnalysis/structpadding.ll new file mode 100644 index 0000000000..52a124a054 --- /dev/null +++ b/test/Transforms/DSAnalysis/structpadding.ll @@ -0,0 +1,18 @@ + +%str = type { int, int* } + +implementation + +void %bar(%str* %S, %str* %T) { + %A1 = getelementptr %str* %S, long 0, ubyte 0 + %B1 = getelementptr %str* %S, long 0, ubyte 1 + %A2 = getelementptr %str* %S, long 0, ubyte 0 + %B2 = getelementptr %str* %S, long 0, ubyte 1 + %a1 = cast int* %A1 to long* + %a2 = cast int* %A2 to long* + %V = load long* %a1 + ;store long %V, long* %a2 + %V2 = load int** %B1 + store int* %V2, int** %B2 + ret void +} |
