diff options
author | Jush Lu <jush.msn@gmail.com> | 2012-07-19 09:49:00 +0000 |
---|---|---|
committer | Jush Lu <jush.msn@gmail.com> | 2012-07-19 09:49:00 +0000 |
commit | e67e07b9014ca3d856f15bacd35830c85de25fb9 (patch) | |
tree | b055401a6843a5da5ba54be178edcb8caaad54ee /llvm/test/CodeGen/Thumb2 | |
parent | 7acdc1738fb0d286adcf60f3653264848ec0b4b7 (diff) | |
download | bcm5719-llvm-e67e07b9014ca3d856f15bacd35830c85de25fb9.tar.gz bcm5719-llvm-e67e07b9014ca3d856f15bacd35830c85de25fb9.zip |
[arm-fast-isel] Add support for vararg function calls.
llvm-svn: 160500
Diffstat (limited to 'llvm/test/CodeGen/Thumb2')
-rw-r--r-- | llvm/test/CodeGen/Thumb2/large-call.ll | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/llvm/test/CodeGen/Thumb2/large-call.ll b/llvm/test/CodeGen/Thumb2/large-call.ll index aef6f856064..61c477aa918 100644 --- a/llvm/test/CodeGen/Thumb2/large-call.ll +++ b/llvm/test/CodeGen/Thumb2/large-call.ll @@ -3,17 +3,18 @@ target datalayout = "e-p:32:32:32-i1:8:32-i8:8:32-i16:16:32-i32:32:32-i64:32:64- target triple = "thumbv7-apple-ios0.0.0" ; This test case would clobber the outgoing call arguments by writing to the -; emergency spill slot at [sp, #4] without adjusting the stack pointer first. +; emergency spill slots at [sp, #4] or [sp, #8] without adjusting the stack +; pointer first. ; CHECK: main ; CHECK: vmov.f64 ; Adjust SP for the large call ; CHECK: sub sp, -; CHECK: mov [[FR:r[0-9]+]], sp -; Store to call frame + #4 -; CHECK: str{{.*\[}}[[FR]], #4] +; Store to call frame + #8 +; CHECK: vstr{{.*\[}}sp, #8] ; Don't clobber that store until the call. ; CHECK-NOT: [sp, #4] +; CHECK-NOT: [sp, #8] ; CHECK: variadic define i32 @main() ssp { |