github.com/tetratelabs/wazero@v1.7.3-0.20240513003603-48f702e154b5/internal/engine/wazevo/backend/isa/arm64/reg_test.go (about) 1 package arm64 2 3 import ( 4 "testing" 5 6 "github.com/tetratelabs/wazero/internal/engine/wazevo/backend/regalloc" 7 "github.com/tetratelabs/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 }