- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi everyone,
How to check whether the value is loaded into the xmm register in C ??I am using GCC. For eg,
typedef struct
{
int val[4];
}state;
int main()
{
int *m;
state a;
asm(" movups (%eax),%xmm0:"=r"(m):"r"(a.val);
}
Here i am not able to print the m value. I need help in this issue. Thank you in advance.
How to check whether the value is loaded into the xmm register in C ??I am using GCC. For eg,
typedef struct
{
int val[4];
}state;
int main()
{
int *m;
state a;
asm(" movups (%eax),%xmm0:"=r"(m):"r"(a.val);
}
Here i am not able to print the m value. I need help in this issue. Thank you in advance.
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Well if you tell the CPU to load a value to XMM register it will do it or die trying. Perhaps you meant to ask how to check the loaded value from the XMM register? The only way is to write it back to memory and print it out using traditional C or C++ code.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page