1 ; RUN: llc < %s -mcpu=atom -mtriple=i686-linux | FileCheck -check-prefix=atom %s
2 ; RUN: llc < %s -mcpu=core2 -mtriple=i686-linux | FileCheck %s
4 declare void @use_arr(i8*)
5 declare void @many_params(i32, i32, i32, i32, i32, i32)
7 define void @test1() nounwind {
9 ; atom: leal -1052(%esp), %esp
12 ; atom: leal 1052(%esp), %esp
18 %arr = alloca [1024 x i8], align 16
19 %arr_ptr = getelementptr inbounds [1024 x i8]* %arr, i8 0, i8 0
20 call void @use_arr(i8* %arr_ptr)
24 define void @test2() nounwind {
26 ; atom: leal -28(%esp), %esp
28 ; atom: leal 28(%esp), %esp
32 call void @many_params(i32 1, i32 2, i32 3, i32 4, i32 5, i32 6)
36 define void @test3() nounwind {
38 ; atom: leal -8(%esp), %esp
39 ; atom: leal 8(%esp), %esp
43 %x = alloca i32, align 4
44 %y = alloca i32, align 4
45 store i32 0, i32* %x, align 4