From: kenner Date: Sat, 29 Jul 1995 13:11:11 +0000 (+0000) Subject: (ucim.m, ucr.m, uc.m): New. X-Git-Url: http://git.sourceforge.jp/view?p=pf3gnuchains%2Fgcc-fork.git;a=commitdiff_plain;h=dff55d3a81b0faf5387cf7bc266b8a91e5574566 (ucim.m, ucr.m, uc.m): New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@10193 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/config/1750a/ms1750.inc b/gcc/config/1750a/ms1750.inc index 1c4370cdd36..da2f5a57871 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 +