[llvm-commits] [llvm] r68620 - /llvm/trunk/test/CodeGen/ARM/2009-04-08-AggregateAddr.ll
Bob Wilson
bob.wilson at apple.com
Wed Apr 8 11:00:56 PDT 2009
Author: bwilson
Date: Wed Apr 8 13:00:55 2009
New Revision: 68620
URL: http://llvm.org/viewvc/llvm-project?rev=68620&view=rev
Log:
Add testcase for PR3795.
Added:
llvm/trunk/test/CodeGen/ARM/2009-04-08-AggregateAddr.ll
Added: llvm/trunk/test/CodeGen/ARM/2009-04-08-AggregateAddr.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/ARM/2009-04-08-AggregateAddr.ll?rev=68620&view=auto
==============================================================================
--- llvm/trunk/test/CodeGen/ARM/2009-04-08-AggregateAddr.ll (added)
+++ llvm/trunk/test/CodeGen/ARM/2009-04-08-AggregateAddr.ll Wed Apr 8 13:00:55 2009
@@ -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
+}
More information about the llvm-commits
mailing list