My (mis)reading of the ISA manual leads me to expect c.lui to accept a nonzero integer immediate in the interval [-32, 31]. The GNU assembler rejects values in [-32, -1]. This PR aims to clear up this behavior I found counterintuitive.
EDIT: Writing in a hurry, I originally worded this more strongly than I meant. GAS's behavior is actually rather reasonable.
My (mis)reading of the ISA manual leads me to expect
c.lui
to accept a nonzero integer immediate in the interval [-32, 31]. The GNU assembler rejects values in [-32, -1]. This PR aims to clear up this behavior I found counterintuitive.EDIT: Writing in a hurry, I originally worded this more strongly than I meant. GAS's behavior is actually rather reasonable.