@Test
	public void testRestore_mips16() throws Exception {
		mips();
		Collection<AssemblyParseResult> parses = asmMips.parseLine("restore 0x38,ra,s0-s1");
		AssemblyParseResult[] allResults = parses.stream()
				.filter(p -> !p.isError())
				.toArray(AssemblyParseResult[]::new);

		var allValidEncodings = new HashSet<String>();

		// The restore instruction is only valid when ISA_MODE is equal to one (MIPS16)
		// Notice ext_done is also set to one at the address we provide
		// Based on the operands and context, we should only get the 16-bit encodings
		Address addr10 = mips.getAddressFactory().getDefaultAddressSpace().getAddress(0x10);

		for (AssemblyParseResult r : allResults) {
			AssemblyResolutionResults results = asmMips.resolveTree(r, addr10);
			dumpResults(results);
			allValidEncodings.addAll(getInstructionValuesHex(results));
		}

		assertThat(allValidEncodings, hasItem("64:77"));
		assertThat(allValidEncodings, not(hasItem("f0:0c:64:77")));
	}
Return all possible instruction encodings as hex strings from the given {@code results}

@param results the results to encode and collect
@return the list
Ghidra/Features/WildcardAssembler/src/test/java/ghidra/asm/wild/WildSleighAssemblerTest.java