Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
Note that with:
- https://reviews.llvm.org/D60208 ("[X86] Extend boolean arguments to
inline-asm according to getBooleanType")
- https://reviews.llvm.org/D58260 ("[INLINER] allow inlining of
blockaddresses if sole uses are callbrs")
- https://reviews.llvm.org/D56571 ("[RFC prototype] Implementation of
asm-goto support in clang")
I can compile a mainline x86 defconfig Linux kernel and boot it in QEMU.
Comment Actions
This looks like the same bug is present in the generic code in llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp as well.
E.g.,
$ echo 'void f() { asm("# TEST: %0" : : "i"((_Bool)255)); }' | arm-none-eabi-gcc -S -o - -xc - | grep TEST # TEST: #1 $ echo 'void f() { asm("# TEST: %0" : : "i"((_Bool)255)); }' | build/bin/clang -target arm-none-eabi -S -o - -xc - | grep TEST @ TEST: #-1
Comment Actions
What other target have their own lowering code? (Or, restated, is x86 the only target not using the generic lowering code?)