[Sparc] Emit .register directive to declare the use of global registers %g2, %g4...
[oota-llvm.git] / test / CodeGen / SPARC / 2013-05-17-CallFrame.ll
1 ; RUN: llc -march=sparc < %s | FileCheck %s
2
3 ; CHECK: variable_alloca_with_adj_call_stack
4 ; CHECK: save %sp, -96, %sp
5 ; CHECK: add %sp, -16, %sp
6 ; CHECK: call foo
7 ; CHECK: add %sp, 16, %sp
8 define void @variable_alloca_with_adj_call_stack(i32 %num) {
9 entry:
10   %0 = alloca i8, i32 %num, align 8
11   call void @foo(i8* %0, i8* %0, i8* %0, i8* %0, i8* %0, i8* %0, i8* %0, i8* %0, i8* %0, i8* %0)
12   ret void
13 }
14
15
16 declare void @foo(i8* , i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*);