PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

Should inline asm work in 6.1?

 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling
View previous topic :: View next topic  
Author Message
Bheeshmar



Joined: 07 Apr 2006
Posts: 1

PostPosted: Sat Apr 08, 2006 1:22 pm    Post subject: Should inline asm work in 6.1? Reply with quote

I downloaded PGI 6.1-4 Win64 because I'd heard it supported inline asm. I can't get this toy program to work. FWIW, asm("nop"); does.

PGI$ cat cpuid.c
static inline void cpuid(int op, int *eax, int *ebx, int *ecx, int *edx){
asm("cpuid": "=a" (*eax), "=b" (*ebx), "=c" (*ecx), "=d" (*edx)
: "a" (op) : "cc");
}

PGI$ pgcc -Mkeepasm cpuid.c
[eval copy text elided]

PGC-S-0000-Internal compiler error. insert_argrsrv: unexpected arg ili 305 (cpuid.c: 4)
PGC-S-0000-Internal compiler error. insert_argrsrv: unexpected arg ili 305 (cpuid.c: 4)
PGC-S-0000-Internal compiler error. insert_argrsrv: unexpected arg ili 305 (cpuid.c: 4)
PGC-S-0000-Internal compiler error. insert_argrsrv: unexpected arg ili 305 (cpuid.c: 4)
PGC-S-0000-Internal compiler error. insert_argrsrv: unexpected arg ili 305 (cpuid.c: 4)
PGC-S-0000-Internal compiler error. insert_argrsrv: unexpected arg ili 305 (cpuid.c: 4)
PGC-S-0000-Internal compiler error. insert_argrsrv: unexpected arg ili 305 (cpuid.c: 4)
PGC-S-0000-Internal compiler error. insert_argrsrv: unexpected arg ili 305 (cpuid.c: 4)
PGC-S-0000-Internal compiler error. insert_argrsrv: unexpected arg ili 305 (cpuid.c: 4)
PGC-S-0000-Internal compiler error. insert_argrsrv: unexpected arg ili 305 (cpuid.c: 4)
PGC-S-0000-Internal compiler error. insert_argrsrv: unexpected arg ili 305 (cpuid.c: 4)
PGC-S-0000-Internal compiler error. insert_argrsrv: unexpected arg ili 305 (cpuid.c: 4)
PGC-S-0000-Internal compiler error. insert_argrsrv: unexpected arg ili 305 (cpuid.c: 4)
PGC-S-0000-Internal compiler error. insert_argrsrv: unexpected arg ili 305 (cpuid.c: 4)
PGC-S-0000-Internal compiler error. insert_argrsrv: unexpected arg ili 305 (cpuid.c: 4)
PGC-S-0000-Internal compiler error. insert_argrsrv: unexpected arg ili 305 (cpuid.c: 4)
PGC-S-0000-Internal compiler error. insert_argrsrv: unexpected arg ili 305 (cpuid.c: 4)
PGC-S-0000-Internal compiler error. insert_argrsrv: unexpected arg ili 305 (cpuid.c: 4)
PGC-S-0000-Internal compiler error. insert_argrsrv: unexpected arg ili 305 (cpuid.c: 4)
PGC-S-0000-Internal compiler error. insert_argrsrv: unexpected arg ili 305 (cpuid.c: 4)
PGC-S-0000-Internal compiler error. insert_argrsrv: unexpected arg ili 305 (cpuid.c: 4)
PGC-S-0000-Internal compiler error. insert_argrsrv: unexpected arg ili 305 (cpuid.c: 4)
PGC-S-0000-Internal compiler error. insert_argrsrv: unexpected arg ili 305 (cpuid.c: 4)
PGC-S-0000-Internal compiler error. insert_argrsrv: unexpected arg ili 305 (cpuid.c: 4)
PGC-S-0000-Internal compiler error. insert_argrsrv: unexpected arg ili 305 (cpuid.c: 4)
PGC-F-0008-Error limit exceeded (cpuid.c: 4)
PGC/win64/x86-64 win64 6.1-4: compilation aborted
Back to top
View user's profile
mkcolg



Joined: 30 Jun 2004
Posts: 6129
Location: The Portland Group Inc.

PostPosted: Mon Apr 10, 2006 1:47 pm    Post subject: Reply with quote

Hi Bheeshmar,

We did recently add extended ASM support to our Linux compilers. Unfortunately, Win64 extended ASM support is still in process. I've added a technical problem report (TPR#3797) with this error which hopefully we'll be able resolve in the 6.2 release.

Thanks,
Mat
Back to top
View user's profile
mkcolg



Joined: 30 Jun 2004
Posts: 6129
Location: The Portland Group Inc.

PostPosted: Thu May 11, 2006 2:20 pm    Post subject: Reply with quote

Hi Bheeshmar,

FYI, We were able to add Win64 extended ASM support to the 6.1-5 release.

- Mat
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling All times are GMT - 7 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © phpBB Group