[OpenRISC] [PATCH v3 3/3] or1k: gcc: initial support for openrisc

Richard Henderson
2018-10-28T23:16:13Z

On 10/28/18 2:57 AM, Segher Boessenkool wrote:
>> +(define_insn "xorsi3"
>> + [(set (match_operand:SI 0 "register_operand" "=r,r")
>> + (xor:SI
>> + (match_operand:SI 1 "register_operand" "%r,r")
>> + (match_operand:SI 2 "reg_or_s16_operand" " r,I")))]
>> + ""
>> + "@
>> + l.xor\t%0, %1, %2
>> + l.xori\t%0, %1, %2")
>
> Is this correct? Should this be unsigned (u16 and K)?

No, l.xori is signed.

r~