arch-gcn3: Validate if scalar sources are scalar gprs
Scalar sources can either be a general-purpose register or a constant
register that holds a single value.
If we don't check for if the register is a general-purpose register,
it's possible that we get a constant register, which then causes all of
the register mapping code to break, as the constant registers aren't
supposed to be mapped like the general-purpose registers are.
This fix adds an isScalarReg check to the instruction encodings that
were missing it.
Tested-by: kokoro <firstname.lastname@example.org>
Reviewed-by: Matt Sinclair <email@example.com>
Reviewed-by: Bobby R. Bruce <firstname.lastname@example.org>
Reviewed-by: Matthew Poremba <email@example.com>
Maintainer: Matt Sinclair <firstname.lastname@example.org>
1 file changed