github.com/wasilibs/wazerox@v0.0.0-20240124024944-4923be63ab5f/internal/engine/wazevo/backend/isa/arm64/reg_test.go (about) 1 package arm64 2 3 import ( 4 "testing" 5 6 "github.com/wasilibs/wazerox/internal/engine/wazevo/backend/regalloc" 7 "github.com/wasilibs/wazerox/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 }