pass machinemoduleinfo down into getSymbolForDwarfGlobalReference,
[llvm/avr.git] / test / CodeGen / CBackend / 2007-01-17-StackSaveNRestore.ll
blob4f699b792e20da97df96cb207d5af7402f5c25d0
1 ; RUN: llc < %s -march=c | grep __builtin_stack_save
2 ; RUN: llc < %s -march=c | grep __builtin_stack_restore
3 ; PR1028
5 declare i8* @llvm.stacksave()
6 declare void @llvm.stackrestore(i8*)
8 define i8* @test() {
9     %s = call i8* @llvm.stacksave()
10     call void @llvm.stackrestore(i8* %s)
11     ret i8* %s