]>
Commit | Line | Data |
---|---|---|
fc98a41c | 1 | ;; Machine description for short forward branches(SFB). |
a945c346 | 2 | ;; Copyright (C) 2023-2024 Free Software Foundation, Inc. |
fc98a41c FG |
3 | |
4 | ;; This file is part of GCC. | |
5 | ||
6 | ;; GCC is free software; you can redistribute it and/or modify | |
7 | ;; it under the terms of the GNU General Public License as published by | |
8 | ;; the Free Software Foundation; either version 3, or (at your option) | |
9 | ;; any later version. | |
10 | ||
11 | ;; GCC is distributed in the hope that it will be useful, | |
12 | ;; but WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 | ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
14 | ;; GNU General Public License for more details. | |
15 | ||
16 | ;; You should have received a copy of the GNU General Public License | |
17 | ;; along with GCC; see the file COPYING3. If not see | |
18 | ;; <http://www.gnu.org/licenses/>. | |
19 | ||
20 | ||
21 | ;; Patterns for implementations that optimize short forward branches. | |
22 | ||
23 | (define_insn "*mov<GPR:mode><X:mode>cc" | |
24 | [(set (match_operand:GPR 0 "register_operand" "=r,r") | |
25 | (if_then_else:GPR | |
26 | (match_operator 5 "ordered_comparison_operator" | |
27 | [(match_operand:X 1 "register_operand" "r,r") | |
28 | (match_operand:X 2 "reg_or_0_operand" "rJ,rJ")]) | |
29 | (match_operand:GPR 3 "register_operand" "0,0") | |
30 | (match_operand:GPR 4 "sfb_alu_operand" "rJ,IL")))] | |
31 | "TARGET_SFB_ALU" | |
32 | "@ | |
33 | b%C5\t%1,%z2,1f\t# movcc\;mv\t%0,%z4\n1: | |
34 | b%C5\t%1,%z2,1f\t# movcc\;li\t%0,%4\n1:" | |
35 | [(set_attr "length" "8") | |
36 | (set_attr "type" "sfb_alu") | |
37 | (set_attr "mode" "<GPR:MODE>")]) |