I am trying to get inline assembler to work using the pgi compilers on the xt3.
It works fine if I use pgcc, but I need to compile c++ code, and pgCC chokes on it.
Here is my asm section:
“movupd (%0), %%xmm1\n\t”
“addpd %%xmm1, %%xmm1\n\n”
“movupd %%xmm1, (%0)”
:: “r” (&d)
and here is pgCC’s output:
“hello.c”, line 17: error: unknown register name “%xmm1”
1 error detected in the compilation of “hello.c”.
I would really appreciate it if someone could tell me what I’m doing wrong, or how to get this to work with c++.