github.com/bananabytelabs/wazero@v0.0.0-20240105073314-54b22a776da8/internal/engine/wazevo/backend/isa/arm64/reg_test.go (about)

     1  package arm64
     2  
     3  import (
     4  	"testing"
     5  
     6  	"github.com/bananabytelabs/wazero/internal/engine/wazevo/backend/regalloc"
     7  	"github.com/bananabytelabs/wazero/internal/testing/require"
     8  )
     9  
    10  func Test_regs(t *testing.T) {
    11  	require.Equal(t, x29, fpVReg.RealReg())
    12  	require.Equal(t, regalloc.RegTypeInt, fpVReg.RegType())
    13  	require.Equal(t, sp, spVReg.RealReg())
    14  	require.Equal(t, regalloc.RegTypeInt, spVReg.RegType())
    15  	require.Equal(t, xzr, xzrVReg.RealReg())
    16  	require.Equal(t, regalloc.RegTypeInt, xzrVReg.RegType())
    17  }