diff options
author | Manman Ren <mren@apple.com> | 2012-06-18 22:23:48 +0000 |
---|---|---|
committer | Manman Ren <mren@apple.com> | 2012-06-18 22:23:48 +0000 |
commit | eda9fdf979bd1c017304f8e9331f2c7df5df2d1c (patch) | |
tree | 023310a2d90954d98bef98bcced38ade48156395 /test/CodeGen/ARM/struct_byval.ll | |
parent | e877c4f9c7b4e4142f33a29e6cd1a07262525a12 (diff) |
ARM: use NOEN loads and stores if possible when handling struct byval.
This change is to be enabled in clang.
rdar://9877866
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@158684 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/ARM/struct_byval.ll')
-rw-r--r-- | test/CodeGen/ARM/struct_byval.ll | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/CodeGen/ARM/struct_byval.ll b/test/CodeGen/ARM/struct_byval.ll index 0c2f7398cb..99ba475ad7 100644 --- a/test/CodeGen/ARM/struct_byval.ll +++ b/test/CodeGen/ARM/struct_byval.ll @@ -28,5 +28,19 @@ entry: ret i32 0 } +; Generate a loop using NEON instructions +define i32 @h() nounwind ssp { +entry: +; CHECK: h: +; CHECK: vld1 +; CHECK: sub +; CHECK: vst1 +; CHECK: bne + %st = alloca %struct.LargeStruct, align 16 + %call = call i32 @e3(%struct.LargeStruct* byval align 16 %st) + ret i32 0 +} + declare i32 @e1(%struct.SmallStruct* nocapture byval %in) nounwind declare i32 @e2(%struct.LargeStruct* nocapture byval %in) nounwind +declare i32 @e3(%struct.LargeStruct* nocapture byval align 16 %in) nounwind |