github.com/bananabytelabs/wazero@v0.0.0-20240105073314-54b22a776da8/internal/engine/wazevo/ssa/instructions_test.go (about) 1 package ssa 2 3 import ( 4 "testing" 5 6 "github.com/bananabytelabs/wazero/internal/testing/require" 7 ) 8 9 func TestInstruction_InvertConditionalBrx(t *testing.T) { 10 i := &Instruction{opcode: OpcodeBrnz} 11 i.InvertBrx() 12 require.Equal(t, OpcodeBrz, i.opcode) 13 i.InvertBrx() 14 require.Equal(t, OpcodeBrnz, i.opcode) 15 }