Home | History | Annotate | Download | only in CBackend
      1 ; RUN: llc < %s -march=c | grep __builtin_stack_save
      2 ; RUN: llc < %s -march=c | grep __builtin_stack_restore
      3 ; PR1028
      4 
      5 declare i8* @llvm.stacksave()
      6 declare void @llvm.stackrestore(i8*)
      7 
      8 define i8* @test() {
      9     %s = call i8* @llvm.stacksave()
     10     call void @llvm.stackrestore(i8* %s)
     11     ret i8* %s
     12 }
     13