[LLVMdev] bsr not implemented?

Gunther Piez gpiez at web.de
Sat Apr 9 03:13:15 PDT 2011


Hello,

just trying to use the dragonegg plugin with gcc on my project.
Unfortunately I get an

/usr/local/lib/gcc/x86_64-unknown-linux-gnu/4.5.2/include/ia32intrin.h:170:35:
error: unsupported target builtin ‘__builtin_ia32_bsrdi’ used

error. I use (and need) the "bsr" (bit scan reverse) instruction. So it
seems it isn't implemented (yet). Can I safely use gcc inline assembly
instead? Are the some preprocessor macros defined while using dragonegg
so that I can conditionally compile?

- Gunther



More information about the llvm-dev mailing list