dynalloc.ssa (339B)
1 # make sure dynamic allocations 2 # and caller-save regs interact 3 # soundly 4 5 function $g() { 6 @start 7 ret 8 } 9 10 function w $f(w %arg) { 11 @start 12 call $g() 13 @alloc 14 %r =l alloc8 16 15 storel 180388626474, %r 16 %r8 =l add 8, %r 17 storel 180388626474, %r8 18 ret %arg 19 } 20 21 export 22 function w $main() { 23 @start 24 %a =w call $f(w 0) 25 %b =w call $f(w 0) 26 ret %a 27 }