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