Gcc riscv won`t emit my insns, binutils and spike(riscv sim) work correctly, 
but gcc don`t. I want to add min/max for integer, gcc compiling correct, sim 
executing correctly.

(define_insn "*min_<X:mode><GPR:mode>"
[(set (match_operand:GPR 0 "register_operand" "=r")
(smin:GPR (match_operand:X 1 "register_operand" " r")
(match_operand:X 2 "register_operand" " r")))]
""
"min\t%0,%1,%2"
[(set_attr "type" "move")
(set_attr "mode" "<X:MODE>")])

С уважением Алексей. телефон 8(904)169-90-96.

Reply via email to