* axp-assembler
@ 1997-08-10 3:20 axp
1997-08-11 13:38 ` axp-assembler Jerry Feldman
1997-08-12 4:42 ` axp-assembler Richard Henderson
0 siblings, 2 replies; 3+ messages in thread
From: axp @ 1997-08-10 3:20 UTC (permalink / raw)
Hello
I'm learning alpha-assembler.
In the "Alpha Architecture Handbook" I read about the Instructions
"itoft" and "ftoit", but gcc (as) doesn't seem to understand them
(unknow instruction).
Do they exist with a different name or how else can I move a
quadword into an fp-register without converting it to fp?
(I need just some more registers to save temporary variables...)
Can I use the fp-registers freely? Are they saved across a sub-
routine call (for ex. fprintf)?
Where can I find Information on alpha-assembler programming under
linux? (So far, I read the "Assembly Language Programmers Guide"
and the "Alpha Architecture Handbook")
Bye
dworz
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: axp-assembler
1997-08-10 3:20 axp-assembler axp
@ 1997-08-11 13:38 ` Jerry Feldman
1997-08-12 4:42 ` axp-assembler Richard Henderson
1 sibling, 0 replies; 3+ messages in thread
From: Jerry Feldman @ 1997-08-11 13:38 UTC (permalink / raw)
> Hello
>
> I'm learning alpha-assembler.
>
> In the "Alpha Architecture Handbook" I read about the Instructions
> "itoft" and "ftoit", but gcc (as) doesn't seem to understand them
> (unknow instruction).
The itof and ftoi instructions were recently added and are not available on most of the alpha chips currently in the field. I believe that these are available in the 21164PC, and will be available in the 21264 series. These instructions simply move the contents of a floating point register to an integer register and vice-versa:
The itoft instaruction is equivalent to (assuming
you want to move register $1 to register $f1.
stq $1, 0($sp) # store on stack.
ldt $f1, 0($sp) # retrieve from stack
+--------------------------------------------------------------------+
Jerry Feldman Digital Unix Development Environment
Digital Equipment Corp. (work)gaf@zk3.dec.com (home)gaf@mediaone.net
110 Spitbrook Rd. Mailstop: ZKO3-2/W17
Nashua, NH 03062-9987 (603)881-2970, DTN:381-2970
+--------------------------------------------------------------------+
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: axp-assembler
1997-08-10 3:20 axp-assembler axp
1997-08-11 13:38 ` axp-assembler Jerry Feldman
@ 1997-08-12 4:42 ` Richard Henderson
1 sibling, 0 replies; 3+ messages in thread
From: Richard Henderson @ 1997-08-12 4:42 UTC (permalink / raw)
> In the "Alpha Architecture Handbook" I read about the Instructions
> "itoft" and "ftoit", but gcc (as) doesn't seem to understand them
> (unknown instruction).
If you are using the assembler that came with RH 4.2, they aren't there.
The latest versions of gnu as have options to enable those instructions,
any one of
-m21164pc, -m21264, -mpca56, -mev6
> Do they exist with a different name or how else can I move a
> quadword into an fp-register without converting it to fp?
Through the stack, but ...
> (I need just some more registers to save temporary variables...)
... that's not what you want. You should likely just be tossing them
onto the stack for safe keeping, not moving to fp registers.
> Can I use the fp-registers freely? Are they saved across a sub-
> routine call (for ex. fprintf)?
The call-saved registers are:
$9 through $15, $26, $30, $f2 through $f9
> Where can I find Information on alpha-assembler programming under
> linux?
The OSF/1 calling conventions document -- I forget the number.
You can also peek through gcc/config/<cpu>/<cpu>.h for quite a lot
of detail about any architecture. ;-)
r~
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~1997-08-12 4:42 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-08-10 3:20 axp-assembler axp
1997-08-11 13:38 ` axp-assembler Jerry Feldman
1997-08-12 4:42 ` axp-assembler Richard Henderson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox