<html><body>
<p><font size="2" face="sans-serif">Hi,</font><br>
<br>
<font size="2" face="sans-serif">Is QPX inlined assembly supported on bgq's clang?  I tried a simple test and it seems that it calls the host machine's assembler (/usr/bin/as) instead of /bgsys/drivers/ppcfloor/gnu-linux/bin/powerpc64-bgq-linux-as.  I'm new to clang, so its possible I missed a compiler config option but didn't see one that did the trick.  </font><br>
<br>
<font size="2" face="sans-serif">Thanks!</font><br>
<font size="2" face="sans-serif">Tom</font><br>
<br>
<font size="2" face="sans-serif">test.c:</font>
<ul style="padding-left: 36pt"><font size="2" face="sans-serif">char buffer[32];</font><br>
<br>
<font size="2" face="sans-serif">int main(int argc, char** argv)</font><br>
<font size="2" face="sans-serif">{</font><br>
<font size="2" face="sans-serif">    asm volatile("qvlfsx  0, 0, %0;" : : "r" (buffer));</font><br>
<font size="2" face="sans-serif">}</font></ul>
<br>
<tt><font size="2">% /bghome/blocksom/development/llvm/install/bin/clang test.c -mcpu=a2q -v</font></tt>
<ul style="padding-left: 36pt"><tt><font size="2">clang version 3.3 (trunk 170456)</font></tt><br>
<tt><font size="2">Target: powerpc64-unknown-linux-gnu</font></tt><br>
<tt><font size="2">Thread model: posix</font></tt><br>
<tt><font size="2"> "/bghome/blocksom/development/llvm/install/bin/clang" -cc1 -triple powerpc64-unknown-linux-gnu -S -disable-free -main-file-name test.c -mrelocation-model static -mdisable-fp-elim -fmath-errno -mconstructor-aliases -target-cpu a2q -target-linker-version 2.20.51.0.2 -momit-leaf-frame-pointer -v -resource-dir /bghome/blocksom/development/llvm/install/bin/../lib/clang/3.3 -fmodule-cache-path /var/tmp/clang-module-cache -internal-isystem /usr/local/include -internal-isystem /bghome/blocksom/development/llvm/install/bin/../lib/clang/3.3/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fno-dwarf-directory-asm -fdebug-compilation-dir /bghome/tgooding -ferror-limit 19 -fmessage-length 131 -mstackrealign -fno-signed-char -fobjc-runtime=gcc -fdiagnostics-show-option -fcolor-diagnostics -o /tmp/test-SrL995.s -x c test.c</font></tt><br>
<tt><font size="2">clang -cc1 version 3.3 based upon LLVM 3.3svn default target powerpc64-unknown-linux-gnu</font></tt><br>
<tt><font size="2">ignoring nonexistent directory "/include"</font></tt><br>
<tt><font size="2">#include "..." search starts here:</font></tt><br>
<tt><font size="2">#include <...> search starts here:</font></tt><br>
<tt><font size="2"> /usr/local/include</font></tt><br>
<tt><font size="2"> /bghome/blocksom/development/llvm/install/bin/../lib/clang/3.3/include</font></tt><br>
<tt><font size="2"> /usr/include</font></tt><br>
<tt><font size="2">End of search list.</font></tt><br>
<tt><font size="2" color="#FF0000"><b> "/usr/bin/as" -a64 -mppc64 -many -o /tmp/test-E8Sanv.o /tmp/test-SrL995.s</b></font></tt><br>
<tt><font size="2">/tmp/test-SrL995.s: Assembler messages:</font></tt><br>
<tt><font size="2">/tmp/test-SrL995.s:21: Error: Unrecognized opcode: `qvlfsx'</font></tt><br>
<tt><font size="2">clang: error: assembler command failed with exit code 1 (use -v to see invocation)</font></tt></ul>
<br>
<font size="2" face="sans-serif">Tom Gooding<br>
Senior Engineer / Blue Gene Kernels<br>
507-253-0747  (internal:  553-0747)<br>
</font></body></html>