Article View: gnu.gcc.help
Article #50308How is asm used on HPPA ?
From: Mats Nylen
Date: Tue, 02 Nov 1993 23:05
Date: Tue, 02 Nov 1993 23:05
22 lines
1230 bytes
1230 bytes
Hello,
I've tried to use the asm keyword on my HP-PA (705) workstation. When I try
something like:
asm("fcnvfxt,dbl %1,%0" : "=f" (result) : "f" (x));
I get a compile error:
aa.c: In function `flr':
aa.c:6: inconsistent operand constraints in an `asm'
The problem seems to be that the %1,%0 within the first string doesn't work as
you'd believe from the gcc manual, in fact if I omit the operands part, i.e.:
asm("fcnvfxt,dbl %1,%0");
The compiler doesn't complain, and I get:
fcnvfxt,dbl %1,%0
on the .s file.
So, my question:
What should I use instead of %1,%0 ??, I havn't managed to find anything in the
manuals.
I am using gcc-2.5.0a
Mats Nylen
Technical Details
Message-ID:
<NYLEN.93Nov3000547@unknown.tp.umu.se>Path:
arc1-ca.pugleaf.net!gmd.de!xlink.net!howland.reston.ans.net!pipex!sunic!umdac!news.umu.se!nylenShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,89a3d032e561c35f,start X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1993-11-02 15:42:08 PST Path: arc1-ca.pugleaf.net!gmd.de!xlink.net!howland.reston.ans.net!pipex!sunic!umdac!news.umu.se!nylen From: nylen@tp.umu.se (Mats Nylen) Newsgroups: gnu.gcc.help Subject: How is asm used on HPPA ? Date: 02 Nov 93 23:05:47 GMT Organization: University of Umea, Sweden Lines: 23 Distribution: gnu Message-ID: <NYLEN.93Nov3000547@unknown.tp.umu.se> NNTP-Posting-Host: teg.tp.umu.se