aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1995-07-29 09:11:11 -0400
committerRichard Kenner <kenner@gcc.gnu.org>1995-07-29 09:11:11 -0400
commit2c545da55ac59a1b85ab68868cbf3a4591066507 (patch)
tree5bcf429c5ba8dd3255565988c3c975344f1765b5
parent432141479b9904704be8594ec8b7f2d05bd84aea (diff)
downloadgcc-2c545da55ac59a1b85ab68868cbf3a4591066507.zip
gcc-2c545da55ac59a1b85ab68868cbf3a4591066507.tar.gz
gcc-2c545da55ac59a1b85ab68868cbf3a4591066507.tar.bz2
(ucim.m, ucr.m, uc.m): New.
From-SVN: r10193
-rw-r--r--gcc/config/1750a/ms1750.inc41
1 files changed, 41 insertions, 0 deletions
diff --git a/gcc/config/1750a/ms1750.inc b/gcc/config/1750a/ms1750.inc
index 1c4370c..da2f5a5 100644
--- a/gcc/config/1750a/ms1750.inc
+++ b/gcc/config/1750a/ms1750.inc
@@ -71,3 +71,44 @@ TWO SET `2` + 1
NR R`ONE`,R`TWO`
ENDMACRO
+; Unsigned Compare Immediate
+
+ MACRO UCIM.M
+LAST SET `1` + 3
+ PSHM R`1`,R`LAST`
+LO SET `1` + 1
+ LR R`LO`,R`1`
+ XORR R`1`,R`1`
+HI SET `1` + 2
+ XORR R`HI`,R`HI`
+ LIM R`LAST`,`2`
+ DCR R`1`,R`HI`
+ POPM R`1`,R`LAST`
+ ENDMACRO
+
+
+; Unsigned Compare Register with register
+
+ MACRO UCR.M
+ PSHM R10,R13 ; R12 and R13 are assumed not to be input parameters
+ LR R13,R`2`
+ LR R11,R`1`
+ XORR R12,R12
+ XORR R10,R10
+ DCR R10,R12
+ POPM R10,R13
+ ENDMACRO
+
+
+; Unsigned Compare register with memory
+
+ MACRO UC.M
+ PSHM R10,R13
+ L R13,`2`
+ LR R11,R`1`
+ XORR R12,R12
+ XORR R10,R10
+ DCR R10,R12
+ POPM R10,R13
+ ENDMACRO
+