+2018-10-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
+
+ * config/aarch64/aarch64.md (despeculate_copy<ALLI_TI:mode>):
+ Rename to...
+ (@despeculate_copy<ALLI_TI:mode>): ... This.
+ * config/aarch64/aarch64.c (aarch64_speculation_safe_value): Remove
+ switch statement.
+
2018-10-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
* config.gcc: Obsolete *-*-solaris2.10*.
if (!aarch64_reg_or_zero (failval, mode))
failval = copy_to_mode_reg (mode, failval);
- switch (mode)
- {
- case E_QImode:
- emit_insn (gen_despeculate_copyqi (result, val, failval));
- break;
- case E_HImode:
- emit_insn (gen_despeculate_copyhi (result, val, failval));
- break;
- case E_SImode:
- emit_insn (gen_despeculate_copysi (result, val, failval));
- break;
- case E_DImode:
- emit_insn (gen_despeculate_copydi (result, val, failval));
- break;
- case E_TImode:
- emit_insn (gen_despeculate_copyti (result, val, failval));
- break;
- default:
- gcc_unreachable ();
- }
+ emit_insn (gen_despeculate_copy (mode, result, val, failval));
return result;
}
;; Support for __builtin_speculation_safe_value when we have speculation
;; tracking enabled. Use the speculation tracker to decide whether to
;; copy operand 1 to the target, or to copy the fail value (operand 2).
-(define_expand "despeculate_copy<ALLI_TI:mode>"
+(define_expand "@despeculate_copy<ALLI_TI:mode>"
[(set (match_operand:ALLI_TI 0 "register_operand" "=r")
(unspec_volatile:ALLI_TI
[(match_operand:ALLI_TI 1 "register_operand" "r")