package asm_test import ( "testing" _ "unsafe" "git.brut.systems/judah/xx/asm" ) func TestAdd(t *testing.T) { call := asm.PrepareCall(0) call.R1 = 10 call.R2 = 10 call.Do() result := call.R0 expected := uintptr(8) if result != expected { t.Errorf("Expected %d, got %d", expected, result) } }