V2SF will be created by the line
    VECTOR_MODES (FLOAT, 8);

Yes you are absolutely right.When i changed the name of file
ABC-modes.def to 1ABC-modes.def ,i got the following error

make[1]: *** No rule to make target
`../../gcc-4.1.0/gcc/config/ABC/ABC-modes.def', needed by
`build/genmodes.o'.  Stop.
This shows that ABC-modes.def is being used and it has the  required macro

VECTOR_MODES (FLOAT, 8);

Then why still the following error is being generated.

> ../../gcc-4.1.0/gcc/config/ABC/ABC.md: unknown mode `V2SF'

As far as my changes to ABC.md file are concerned .They are as fellows

(define_mode_macro ANYF [(SF "TARGET_HARD_FLOAT")
                        (DF "TARGET_HARD_FLOAT && TARGET_DOUBLE_FLOAT")])
;;                       (V2SF "TARGET_PAIRED_SINGLE_FLOAT")])

- - - - - -- - - - - - - - - -
-- - - - - - - - - -- - - - -
(define_mode_attr divide_condition
 [DF (SF "!TARGET_FIX_SB1 || flag_unsafe_math_optimizations")])
;;   (V2SF "TARGET_SB1 && (!TARGET_FIX_SB1 ||
flag_unsafe_math_optimizations)")])


As you can see i just omitted the entries of V2SF.




On 19 Jun 2006 10:40:45 -0700, Ian Lance Taylor <[EMAIL PROTECTED]> wrote:
"kernel coder" <[EMAIL PROTECTED]> writes:

> But when i issued the make all-gcc command .Following error occured
>
> ../../gcc-4.1.0/gcc/config/ABC/ABC.md: unknown mode `V2SF'
>
> Would u please explain why this error is being generated.Also a bit of
> explaination of 'V2SF' mode will helpful.

V2SF should normally be defined by ABC/ABC-modes.def.  It is normally
found by these lines in config.gcc when you run configure:

if test -f ${srcdir}/config/${cpu_type}/${cpu_type}-modes.def
then
        extra_modes=${cpu_type}/${cpu_type}-modes.def
fi

V2SF will be created by the line
    VECTOR_MODES (FLOAT, 8);
in ABC-modes.def (as copied from mips-modes.def).

> Then i removed the 'V2SF' mode from patterns in ABC.md file.But now
> following error was generated.
>
> ../../gcc-4.1.0/gcc/config/ABC/ABC.md:228: unknown value
> `<ANYF:UNITMODE>' for `mode' attribute
> ../../gcc-4.1.0/gcc/config/ABC/ABC.md:228: unknown value
> `<ANYF:UNITMODE>' for `mode' attribute
> ../../gcc-4.1.0/gcc/config/ABC/ABC.md:228: unknown value `<UNITMODE>'
> for `mode' attribute
> ../../gcc-4.1.0/gcc/config/ABC/ABC.md:228: unknown value `<UNITMODE>'
> for `mode' attribute
>
>
> Would you please tell me why this error is being generated.

Hard to say without knowing what you changed.  Did you simply delete
the ANYF macro, or forget to remove the V2SF case from it?

MD file macros are documented here:
    http://gcc.gnu.org/onlinedocs/gccint/Macros.html

Ian

Reply via email to