@Test
	public void testLw_mips32() throws Exception {
		mips();
		Collection<AssemblyParseResult> parses = asmMips.parseLine("lw `Q1`,0x0(a0)");
		AssemblyParseResult[] allResults = parses.stream()
				.filter(p -> !p.isError())
				.toArray(AssemblyParseResult[]::new);

		var allValidEncodings = new ArrayList<String>();
		// Note here, be sure to go past the mips16 code at the start of our fake
		// program
		Address addr0 = mips.getAddressFactory().getDefaultAddressSpace().getAddress(0x100);
		for (AssemblyParseResult r : allResults) {
			AssemblyResolutionResults results = asmMips.resolveTree(r, addr0);
			dumpResults(results);
			allValidEncodings.addAll(getInstructionValuesHex(results));
		}

		// Build all 32 encodings (one per target register, Q1) and verify they're in
		// the results
		byte[] expected = NumericUtilities.convertStringToBytes("8c800000");
		for (var i = 1; i < 32; i++) {
			expected[1] = (byte) (0x80 + i);
			String expectedHex = NumericUtilities.convertBytesToString(expected, ":");
			assertTrue("Expected to have " + expectedHex + " as an encoding",
				allValidEncodings.contains(expectedHex));
		}

		assertEquals(32, allValidEncodings.size());
	}
Tests assembling a MIPS 'lw' instruction in MIPS (not MIPS16)

This test is similar to {@link #testLw_mips16_32()} except it DOES constrain context such
that we do NOT get MIPS16 encodings.
Ghidra/Features/WildcardAssembler/src/test/java/ghidra/asm/wild/WildSleighAssemblerTest.java