mmix.md (define_constants): Add MMIX_rR_REGNUM.
* config/mmix/mmix.md (define_constants): Add MMIX_rR_REGNUM. ("divdi3", "*divdi3_nonknuth", "moddi3", "*moddi3_nonknuth"): Mark MMIX_rR_REGNUM as clobbered. * config/mmix/mmix.h (MMIX_REMAINDER_REGNUM): Use MMIX_rR_REGNUM. From-SVN: r56238
This commit is contained in:
parent
9b32718c73
commit
34116c2a89
@ -1,3 +1,10 @@
|
||||
2002-08-12 Hans-Peter Nilsson <hp@bitrange.com>
|
||||
|
||||
* config/mmix/mmix.md (define_constants): Add MMIX_rR_REGNUM.
|
||||
("divdi3", "*divdi3_nonknuth", "moddi3", "*moddi3_nonknuth"): Mark
|
||||
MMIX_rR_REGNUM as clobbered.
|
||||
* config/mmix/mmix.h (MMIX_REMAINDER_REGNUM): Use MMIX_rR_REGNUM.
|
||||
|
||||
2002-08-12 Gabriel Dos Reis <gdr@nerim.net>
|
||||
|
||||
* diagnostic.h (output_formatted_scalar): Rename from
|
||||
|
@ -47,7 +47,7 @@ Boston, MA 02111-1307, USA. */
|
||||
#define MMIX_LAST_GENERAL_REGISTER 255
|
||||
#define MMIX_INCOMING_RETURN_ADDRESS_REGNUM MMIX_rJ_REGNUM
|
||||
#define MMIX_HIMULT_REGNUM 258
|
||||
#define MMIX_REMAINDER_REGNUM 260
|
||||
#define MMIX_REMAINDER_REGNUM MMIX_rR_REGNUM
|
||||
#define MMIX_ARG_POINTER_REGNUM 261
|
||||
#define MMIX_rO_REGNUM 262
|
||||
#define MMIX_LAST_STACK_REGISTER_REGNUM 31
|
||||
|
@ -36,6 +36,7 @@
|
||||
|
||||
(define_constants
|
||||
[(MMIX_rJ_REGNUM 259)
|
||||
(MMIX_rR_REGNUM 260)
|
||||
(MMIX_fp_rO_OFFSET -24)]
|
||||
)
|
||||
|
||||
@ -271,7 +272,8 @@
|
||||
(div:DI (match_operand:DI 1 "register_operand" "r")
|
||||
(match_operand:DI 2 "register_operand" "r")))
|
||||
(clobber (scratch:DI))
|
||||
(clobber (scratch:DI))])]
|
||||
(clobber (scratch:DI))
|
||||
(clobber (reg:DI MMIX_rR_REGNUM))])]
|
||||
"! TARGET_KNUTH_DIVISION"
|
||||
"")
|
||||
|
||||
@ -282,7 +284,8 @@
|
||||
(div:DI (match_operand:DI 1 "register_operand" "r,r")
|
||||
(match_operand:DI 2 "register_operand" "1,r")))
|
||||
(clobber (match_scratch:DI 3 "=1,1"))
|
||||
(clobber (match_scratch:DI 4 "=2,2"))]
|
||||
(clobber (match_scratch:DI 4 "=2,2"))
|
||||
(clobber (reg:DI MMIX_rR_REGNUM))]
|
||||
"! TARGET_KNUTH_DIVISION"
|
||||
"@
|
||||
SETL %0,1
|
||||
@ -295,7 +298,8 @@ DIVU %0,%1,%2\;NEGU %1,0,%0\;CSN %0,$255,%1")
|
||||
(mod:DI (match_operand:DI 1 "register_operand" "r")
|
||||
(match_operand:DI 2 "register_operand" "r")))
|
||||
(clobber (scratch:DI))
|
||||
(clobber (scratch:DI))])]
|
||||
(clobber (scratch:DI))
|
||||
(clobber (reg:DI MMIX_rR_REGNUM))])]
|
||||
"! TARGET_KNUTH_DIVISION"
|
||||
"")
|
||||
|
||||
@ -306,7 +310,8 @@ DIVU %0,%1,%2\;NEGU %1,0,%0\;CSN %0,$255,%1")
|
||||
(mod:DI (match_operand:DI 1 "register_operand" "r,r")
|
||||
(match_operand:DI 2 "register_operand" "1,r")))
|
||||
(clobber (match_scratch:DI 3 "=1,1"))
|
||||
(clobber (match_scratch:DI 4 "=2,2"))]
|
||||
(clobber (match_scratch:DI 4 "=2,2"))
|
||||
(clobber (reg:DI MMIX_rR_REGNUM))]
|
||||
"! TARGET_KNUTH_DIVISION"
|
||||
"@
|
||||
SETL %0,0
|
||||
|
Loading…
Reference in New Issue
Block a user