This fixes an assertion failure when using a negative immediate after a shift or extend operand.
There is no testcase for this fix since it is part of porting over MC/AArch64/basic-a64-diagnostics.s, which will be enabled for ARM64 once everything is fixed in it.