PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

pshufw 0,%mm0,%mm0 ?

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



Joined: 21 Sep 2005
Posts: 3

PostPosted: Tue Oct 25, 2005 5:56 pm    Post subject: pshufw 0,%mm0,%mm0 ? Reply with quote

is it possible to compile this C file using pgCC ?
I get the following error
Quote:
Error: suffix or operands invalid for `pshufw'

and i have a feeling that i am missing something here.
Thanks

Code:
#include <stdio.h>
main()
{
    printf("hello world\n");
    __asm
    ("
      pshufw    0,%mm0,%mm0
    ");

}
Back to top
View user's profile
mkcolg



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

PostPosted: Tue Oct 25, 2005 8:44 pm    Post subject: Reply with quote

Hi Sukesh,

This compiles:
Code:
#include <stdio.h>
main()
{
    printf("hello world\n");
    __asm("pshufw    $0,%mm0,%mm0");
}


You need to use $0 for constants.

Hope this helps,
Mat
Back to top
View user's profile
Sukesh



Joined: 21 Sep 2005
Posts: 3

PostPosted: Wed Oct 26, 2005 11:03 am    Post subject: Reply with quote

thanks mat....
(... i really need to get out of the icc world)
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