From: Doug Evans Date: Fri, 17 Oct 1997 22:45:15 +0000 (+0000) Subject: Reorg sethi_{hi,si} patterns. X-Git-Tag: releases/egcs-1.0.0~303 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bd6c666f80101e2d22c2e7a0ce91e1e2eacb4cd7;p=thirdparty%2Fgcc.git Reorg sethi_{hi,si} patterns. From-SVN: r15979 --- diff --git a/gcc/config/sparc/sparc.md b/gcc/config/sparc/sparc.md index ef28accc3554..a3b75d01cb1f 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 "" "")))]