@@ -15999,10 +15999,10 @@
(define_insn "atan2xf3"
[(set (match_operand:XF 0 "register_operand" "=f")
- (unspec:XF [(match_operand:XF 1 "register_operand" "0")
- (match_operand:XF 2 "register_operand" "f")]
+ (unspec:XF [(match_operand:XF 2 "register_operand" "0")
+ (match_operand:XF 1 "register_operand" "f")]
UNSPEC_FPATAN))
- (clobber (match_scratch:XF 3 "=2"))]
+ (clobber (match_scratch:XF 3 "=1"))]
"TARGET_USE_FANCY_MATH_387
&& flag_unsafe_math_optimizations"
"fpatan"
@@ -16026,7 +16026,7 @@
emit_insn (gen_extend<mode>xf2 (op2, operands[2]));
emit_insn (gen_extend<mode>xf2 (op1, operands[1]));
- emit_insn (gen_atan2xf3 (op0, op2, op1));
+ emit_insn (gen_atan2xf3 (op0, op1, op2));
emit_insn (gen_truncxf<mode>2 (operands[0], op0));
DONE;
})