Add docs and tests for copy_special instruction. Fixes encoding issue that tests revealed.
This commit is contained in:
committed by
Jakob Stoklund Olesen
parent
4eb9a54096
commit
3b1b33e0ac
@@ -186,3 +186,17 @@ ebb0(v1: i32):
|
||||
; nextln: regfill $v1, $ss0 -> %10
|
||||
; nextln: return
|
||||
; nextln: }
|
||||
|
||||
; Register copies.
|
||||
function %copy_special() {
|
||||
ebb0:
|
||||
copy_special %10 -> %20
|
||||
copy_special %20 -> %10
|
||||
return
|
||||
}
|
||||
; sameln: function %copy_special() native {
|
||||
; nextln: ebb0:
|
||||
; nextln: copy_special %10 -> %20
|
||||
; nextln: copy_special %20 -> %10
|
||||
; nextln: return
|
||||
; nextln: }
|
||||
|
||||
Reference in New Issue
Block a user