diff options
author | Doug Evans <devans@gcc.gnu.org> | 1997-10-17 22:45:15 +0000 |
---|---|---|
committer | Doug Evans <devans@gcc.gnu.org> | 1997-10-17 22:45:15 +0000 |
commit | bd6c666f80101e2d22c2e7a0ce91e1e2eacb4cd7 (patch) | |
tree | 771d50b835b546706b80e2c230fb46231597c981 | |
parent | 67c5b7ada6c6188bc4c6752a0405993c4d877c28 (diff) | |
download | gcc-bd6c666f80101e2d22c2e7a0ce91e1e2eacb4cd7.zip gcc-bd6c666f80101e2d22c2e7a0ce91e1e2eacb4cd7.tar.gz gcc-bd6c666f80101e2d22c2e7a0ce91e1e2eacb4cd7.tar.bz2 |
Reorg sethi_{hi,si} patterns.
From-SVN: r15979
-rw-r--r-- | gcc/config/sparc/sparc.md | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/gcc/config/sparc/sparc.md b/gcc/config/sparc/sparc.md index ef28acc..a3b75d0 100644 --- a/gcc/config/sparc/sparc.md +++ b/gcc/config/sparc/sparc.md @@ -1479,6 +1479,22 @@ ;; Esoteric move insns (lo_sum, high, pic). +(define_insn "*sethi_hi" + [(set (match_operand:HI 0 "register_operand" "=r") + (high:HI (match_operand 1 "" "")))] + "check_pic (1)" + "sethi %%hi(%a1),%0" + [(set_attr "type" "move") + (set_attr "length" "1")]) + +(define_insn "*sethi_si" + [(set (match_operand:SI 0 "register_operand" "=r") + (high:SI (match_operand 1 "" "")))] + "check_pic (1)" + "sethi %%hi(%a1),%0" + [(set_attr "type" "move") + (set_attr "length" "1")]) + (define_insn "*lo_sum_si" [(set (match_operand:SI 0 "register_operand" "=r") (lo_sum:SI (match_operand:SI 1 "register_operand" "r") @@ -1517,22 +1533,6 @@ [(set_attr "type" "move") (set_attr "length" "1")]) -(define_insn "*sethi_si" - [(set (match_operand:SI 0 "register_operand" "=r") - (high:SI (match_operand 1 "" "")))] - "check_pic (1)" - "sethi %%hi(%a1),%0" - [(set_attr "type" "move") - (set_attr "length" "1")]) - -(define_insn "*sethi_hi" - [(set (match_operand:HI 0 "register_operand" "=r") - (high:HI (match_operand 1 "" "")))] - "check_pic (1)" - "sethi %%hi(%a1),%0" - [(set_attr "type" "move") - (set_attr "length" "1")]) - (define_insn "get_pc_via_call" [(set (pc) (label_ref (match_operand 0 "" ""))) (set (reg:SI 15) (label_ref (match_operand 1 "" "")))] |