* Re: assembler error
1999-07-11 4:00 assembler error AndreHeidenreich
@ 1999-07-11 4:00 ` Solar Designer
1999-07-14 4:00 ` A. Heid.
1999-07-12 4:00 ` Robert Harley
1 sibling, 1 reply; 4+ messages in thread
From: Solar Designer @ 1999-07-11 4:00 UTC (permalink / raw)
AndreHeidenreich <heid.a@swol.de> wrote:
> could anyone explain me the following error i get while executing the
> alpha/linux gas with
> 'as -nocpp -o _divdi3.o _divdi3.s' on an rh6.0 alpha/linux?
> _divdi3.s:392: Error: macro requires $at register while noat in effect
You need to tell it that you're on an EV56+ (such as, with "-mev56"),
so that it doesn't have to emulate LDBU with LDA/LDQ_U/EXTBL (which
was probably forbidden up in the code with a ".set noat").
> ldbu $1,0($1) <-- zeile 392
--
/sd
^ permalink raw reply [flat|nested] 4+ messages in thread
* assembler error
@ 1999-07-11 4:00 AndreHeidenreich
1999-07-11 4:00 ` Solar Designer
1999-07-12 4:00 ` Robert Harley
0 siblings, 2 replies; 4+ messages in thread
From: AndreHeidenreich @ 1999-07-11 4:00 UTC (permalink / raw)
hi,
could anyone explain me the following error i get while executing the
alpha/linux gas with
'as -nocpp -o _divdi3.o _divdi3.s' on an rh6.0 alpha/linux?
_divdi3.s:392: Error: macro requires $at register while noat in effect
-- snip -------
cmpult $1,$2,$1
bis $31,16,$2
cmovne $1,24,$2
$183:
bis $2,$2,$3
zapnot $4,15,$1
zapnot $3,15,$2
srl $1,$2,$1
lda $2,__clz_tab
zapnot $1,15,$1
addq $1,$2,$1
ldbu $1,0($1) <-- zeile 392
bis $31,32,$2
addq $1,$3,$1
subl $2,$1,$6
zapnot $6,15,$5
beq $5,$197
zapnot $17,15,$4
-- snip -------
thx for advance.
andre
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: assembler error
1999-07-11 4:00 assembler error AndreHeidenreich
1999-07-11 4:00 ` Solar Designer
@ 1999-07-12 4:00 ` Robert Harley
1 sibling, 0 replies; 4+ messages in thread
From: Robert Harley @ 1999-07-12 4:00 UTC (permalink / raw)
AndreHeidenreich <heid.a@swol.de> writes:
> could anyone explain me the following error i get while executing the
> alpha/linux gas with
> 'as -nocpp -o _divdi3.o _divdi3.s' on an rh6.0 alpha/linux?
>
> _divdi3.s:392: Error: macro requires $at register while noat in effect
>[...]
> ldbu $1,0($1) <-- zeile 392
That's a "load byte" instruction which is part of the BWX extension to
the Alpha instruction set. It only exists on chips from the EV56
onwards. Your assembler probably assumes EV4. Try adding the
"-m21164a" flag to the command line. You can check what your "as"
knows about as follows:
------------------------------------------------------------------------------
> strings `which as` | grep -- -m
-m21064 | -m21066 | -m21164 | -m21164a
-mev4 | -mev45 | -mev5 | -mev56 | -mall
-M,--mri
------------------------------------------------------------------------------
By the way, did you encounter the error when trying to build egcs?
If so read the egcs FAQ entry about configuring for alphaev5 instead
of alphaev56, in case it is relevant to you.
Bye,
Rob.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: assembler error
1999-07-11 4:00 ` Solar Designer
@ 1999-07-14 4:00 ` A. Heid.
0 siblings, 0 replies; 4+ messages in thread
From: A. Heid. @ 1999-07-14 4:00 UTC (permalink / raw)
To: Solar Designer
hi
do you know if there is a docu about gas/alpha?
i don't find anything. also the as.info files don't
include something about it.
andre
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~1999-07-14 4:00 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-07-11 4:00 assembler error AndreHeidenreich
1999-07-11 4:00 ` Solar Designer
1999-07-14 4:00 ` A. Heid.
1999-07-12 4:00 ` Robert Harley
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox