1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 04:02:41 +01:00

Test for r174446

llvm-svn: 174464
This commit is contained in:
Eli Bendersky 2013-02-05 23:31:48 +00:00
parent 0802d28eff
commit 6f676af6f1

View File

@ -0,0 +1,22 @@
; RUN: llc -mtriple=x86_64-pc-linux < %s | FileCheck %s
; RUN: llc -mtriple=x86_64-pc-linux-gnux32 < %s | FileCheck -check-prefix=X32ABI %s
define i32 @bar(i32 %a) nounwind {
entry:
%arr = alloca [400 x i32], align 16
; In the x32 ABI, the stack pointer is treated as a 32-bit value.
; CHECK: subq $1608
; X32ABI: subl $1608
%arraydecay = getelementptr inbounds [400 x i32]* %arr, i64 0, i64 0
%call = call i32 @foo(i32 %a, i32* %arraydecay) nounwind
ret i32 %call
; CHECK: addq $1608
; X32ABI: addl $1608
}
declare i32 @foo(i32, i32*)