diff options
author | Bob Wilson <bob.wilson@apple.com> | 2009-04-08 18:00:55 +0000 |
---|---|---|
committer | Bob Wilson <bob.wilson@apple.com> | 2009-04-08 18:00:55 +0000 |
commit | 83593a369b95d8ae6966b9f5d7b6328a298c2b9a (patch) | |
tree | 44d8358432e11ae5d43baa2821d0b20c8cb3674f /test/CodeGen/ARM/2009-04-08-AggregateAddr.ll | |
parent | 2c7dab18648f3d0d6e9373de31065ec3c896c224 (diff) |
Add testcase for PR3795.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@68620 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/ARM/2009-04-08-AggregateAddr.ll')
-rw-r--r-- | test/CodeGen/ARM/2009-04-08-AggregateAddr.ll | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/CodeGen/ARM/2009-04-08-AggregateAddr.ll b/test/CodeGen/ARM/2009-04-08-AggregateAddr.ll new file mode 100644 index 0000000000..c00b1fb986 --- /dev/null +++ b/test/CodeGen/ARM/2009-04-08-AggregateAddr.ll @@ -0,0 +1,18 @@ +; RUN: llvm-as < %s | llc -march=arm +; PR3795 + +define fastcc void @_D3foo3fooFAriZv({ i32, { double, double }* } %d_arg, i32 %x_arg) { +entry: + %d = alloca { i32, { double, double }* } ; <{ i32, { double, double }* }*> [#uses=2] + %x = alloca i32 ; <i32*> [#uses=2] + %b = alloca { double, double } ; <{ double, double }*> [#uses=1] + store { i32, { double, double }* } %d_arg, { i32, { double, double }* }* %d + store i32 %x_arg, i32* %x + %tmp = load i32* %x ; <i32> [#uses=1] + %tmp1 = getelementptr { i32, { double, double }* }* %d, i32 0, i32 1 ; <{ double, double }**> [#uses=1] + %.ptr = load { double, double }** %tmp1 ; <{ double, double }*> [#uses=1] + %tmp2 = getelementptr { double, double }* %.ptr, i32 %tmp ; <{ double, double }*> [#uses=1] + %tmp3 = load { double, double }* %tmp2 ; <{ double, double }> [#uses=1] + store { double, double } %tmp3, { double, double }* %b + ret void +} |