48 lines · plain
1; RUN: llc < %s -mcpu=atom -mtriple=i686-linux -no-x86-call-frame-opt | FileCheck -check-prefix=ATOM %s2; RUN: llc < %s -mcpu=core2 -mtriple=i686-linux -no-x86-call-frame-opt | FileCheck %s3 4declare void @use_arr(ptr)5declare void @many_params(i32, i32, i32, i32, i32, i32)6 7define void @test1() nounwind {8; ATOM-LABEL: test1:9; ATOM: leal -1052(%esp), %esp10; ATOM-NOT: sub11; ATOM: call12; ATOM: leal 1052(%esp), %esp13 14; CHECK-LABEL: test1:15; CHECK: subl16; CHECK: call17; CHECK-NOT: lea18 %arr = alloca [1024 x i8], align 1619 call void @use_arr(ptr %arr)20 ret void21}22 23define void @test2() nounwind {24; ATOM-LABEL: test2:25; ATOM: leal -28(%esp), %esp26; ATOM: call27; ATOM: leal 28(%esp), %esp28 29; CHECK-LABEL: test2:30; CHECK-NOT: lea31 call void @many_params(i32 1, i32 2, i32 3, i32 4, i32 5, i32 6)32 ret void33}34 35define void @test3() nounwind {36; ATOM-LABEL: test3:37; ATOM: leal -8(%esp), %esp38; ATOM: leal 8(%esp), %esp39 40; CHECK-LABEL: test3:41; CHECK-NOT: lea42 %x = alloca i32, align 443 %y = alloca i32, align 444 store i32 0, ptr %x, align 445 ret void46}47 48