From eff6092b3e47b7613d2dffdaefd6cead215a38a8 Mon Sep 17 00:00:00 2001 From: Doug Evans Date: Thu, 9 Nov 2000 18:09:35 +0000 Subject: [PATCH] * dev.scm: Add srcdir to %load-path. * rtx-funcs.scm (subword): Mode of argument can be different than mode of result, so don't use OP0 to specify argument's mode. --- ChangeLog | 8 +++++--- dev.scm | 1 + rtx-funcs.scm | 9 +++++++-- 3 files changed, 13 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index 02a01d2..5a356ad 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,7 +1,9 @@ -2000-11-02 Ben Elliston +2000-11-09 Doug Evans - * doc/porting.texi (Building a GAS test suite): Document my change - to gas-build.sh. + * dev.scm: Add srcdir to %load-path. + + * rtx-funcs.scm (subword): Mode of argument can be different + than mode of result, so don't use OP0 to specify argument's mode. 2000-11-01 Ben Elliston diff --git a/dev.scm b/dev.scm index 66d1562..c473aa1 100644 --- a/dev.scm +++ b/dev.scm @@ -16,6 +16,7 @@ (load "fixup.scm") (define srcdir ".") +(set! %load-path (cons srcdir %load-path)) ; Utility to enable/disable compiled-in C code. diff --git a/rtx-funcs.scm b/rtx-funcs.scm index 47bd058..92f4050 100644 --- a/rtx-funcs.scm +++ b/rtx-funcs.scm @@ -426,14 +426,19 @@ ; GCC's subreg. ; Called subword 'cus it's not exactly subreg. -; Word numbering is from most signficant (word 0) to least (word N-1). +; Word numbering is from most significant (word 0) to least (word N-1). ; ??? May also want an endian dependent word ordering. That can be ; implemented on top of or beside this. ; ??? GCC plans to switch to SUBREG_BYTE. Keep an eye out for the switch ; (which is extensive so probably won't happen anytime soon). +; +; The mode spec of operand0 use to be OP0, but subword is not a normal rtx. +; The mode of operand0 is not necessarily the same as the mode of the result, +; and code which analyzes it would otherwise use the result mode (specified by +; `&mode') for the mode of operand0. (drn (subword &options &mode value word-num) - (OPTIONS NUMMODE RTX RTX) (NA NA OP0 INT) + (OPTIONS NUMMODE RTX RTX) (NA NA ANY INT) ARG #f ) -- 2.43.5