diff options
| author | Chris Lattner <sabre@nondot.org> | 2001-07-08 23:23:30 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2001-07-08 23:23:30 +0000 |
| commit | f20469c1abb9148b4a6b6228edb80915eac3a4fe (patch) | |
| tree | 9b0007275a7d0decdafca45e9e117f29006a20c6 /llvm/test/Feature/testmemory.ll | |
| parent | 62ecb4a13712cd2e844d24cd07dc6497b234e458 (diff) | |
| download | bcm5719-llvm-f20469c1abb9148b4a6b6228edb80915eac3a4fe.tar.gz bcm5719-llvm-f20469c1abb9148b4a6b6228edb80915eac3a4fe.zip | |
add coverage of newly implemented instructions.
llvm-svn: 165
Diffstat (limited to 'llvm/test/Feature/testmemory.ll')
| -rw-r--r-- | llvm/test/Feature/testmemory.ll | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/llvm/test/Feature/testmemory.ll b/llvm/test/Feature/testmemory.ll index c9ccd6cdba1..c3295f65b6b 100644 --- a/llvm/test/Feature/testmemory.ll +++ b/llvm/test/Feature/testmemory.ll @@ -1,4 +1,4 @@ -%struct = type int * +%struct = type { int , {float, {ubyte } } , ulong } implementation @@ -15,8 +15,12 @@ begin alloca [ubyte], uint 5 %ptr = alloca int ; yields {int*}:ptr - ;store int* %ptr, int 3 ; yields {void} - ;%val = load int* %ptr ; yields {int}:val = int %3 + store int 3, int* %ptr ; yields {void} + %val = load int* %ptr ; yields {int}:val = int %3 + + %sptr = alloca %struct ; yields {%struct*}:sptr + %ubsptr = getelementptr %struct * %sptr, ubyte 1, ubyte 1 ; yields {{ubyte}*}:ubsptr + store ubyte 4, {ubyte} * %ubsptr, ubyte 0 ret int 3 end |

