summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorChad Rosier <mcrosier@apple.com>2011-12-06 01:44:17 +0000
committerChad Rosier <mcrosier@apple.com>2011-12-06 01:44:17 +0000
commited42c5f778dd0128429e4feffe2c028b2352b534 (patch)
tree0618ffc7b8db2b75c0a6e75c4962d0abdd9169c4 /test
parent3e572ac2fbdf6aa538500be07b9b050ac008669e (diff)
downloadllvm-ed42c5f778dd0128429e4feffe2c028b2352b534.tar.gz
llvm-ed42c5f778dd0128429e4feffe2c028b2352b534.tar.bz2
llvm-ed42c5f778dd0128429e4feffe2c028b2352b534.tar.xz
[arm-fast-isel] Doublewords only require word-alignment.
rdar://10528060 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@145891 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/CodeGen/ARM/fast-isel.ll18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/CodeGen/ARM/fast-isel.ll b/test/CodeGen/ARM/fast-isel.ll
index f9c1a9d7d3..0697460873 100644
--- a/test/CodeGen/ARM/fast-isel.ll
+++ b/test/CodeGen/ARM/fast-isel.ll
@@ -180,3 +180,21 @@ entry:
store float %add, float* %x1, align 1
ret void
}
+
+; Doublewords require only word-alignment.
+; rdar://10528060
+%struct.anon.0 = type { double }
+
+@foo_unpacked = common global %struct.anon.0 zeroinitializer, align 4
+
+define void @test5(double %a, double %b) nounwind {
+entry:
+; ARM: @test5
+; THUMB: @test5
+ %add = fadd double %a, %b
+ store double %add, double* getelementptr inbounds (%struct.anon.0* @foo_unpacked, i32 0, i32 0), align 4
+; ARM: vstr d16, [r0]
+; THUMB: vstr d16, [r0]
+ ret void
+}
+