[PATCH] D60208: [X86] Extend boolean arguments to inline-asm according to getBooleanType

James Y Knight via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 3 10:43:01 PDT 2019


jyknight added a comment.

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


Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D60208/new/

https://reviews.llvm.org/D60208





More information about the llvm-commits mailing list