aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/m68hc11/larith.asm
diff options
context:
space:
mode:
authorStephane Carrez <Stephane.Carrez@worldnet.fr>2002-03-15 23:22:56 +0100
committerStephane Carrez <ciceron@gcc.gnu.org>2002-03-15 23:22:56 +0100
commit015a2e5904023a35c76bdef9451d86878157240e (patch)
tree6f8ba87562c4c86c0e86a27e84ca4df9567383de /gcc/config/m68hc11/larith.asm
parentcd28557ca20fb296bad6f5e77b5f1dcd0ee6829c (diff)
downloadgcc-015a2e5904023a35c76bdef9451d86878157240e.zip
gcc-015a2e5904023a35c76bdef9451d86878157240e.tar.gz
gcc-015a2e5904023a35c76bdef9451d86878157240e.tar.bz2
m68hc11.md ("negsi2"): Optimize inline case.
* config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case. ("neghi2"): Tighten constraints. ("one_cmplsi2"): Optimize and simplify split. * config/m68hc11/larith.asm (__negsi2): Likewise for library. From-SVN: r50847
Diffstat (limited to 'gcc/config/m68hc11/larith.asm')
-rw-r--r--gcc/config/m68hc11/larith.asm11
1 files changed, 6 insertions, 5 deletions
diff --git a/gcc/config/m68hc11/larith.asm b/gcc/config/m68hc11/larith.asm
index b39d81a..94e1596 100644
--- a/gcc/config/m68hc11/larith.asm
+++ b/gcc/config/m68hc11/larith.asm
@@ -443,13 +443,14 @@ ___notdi2:
___negsi2:
comb
coma
- addd #1
xgdx
- eorb #0xFF
- eora #0xFF
- adcb #0
- adca #0
+ comb
+ coma
+ inx
xgdx
+ bne done
+ inx
+done:
rts
#endif