[PATCH] D34950: [compiler-rt][builtins] XFAIL tests involving complex divide for ARM hard float targets

Saleem Abdulrasool via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 4 11:32:55 PDT 2017


compnerd added a comment.

The generation of the soft float calls to the GNU division routines is for compatibility.  GCC will generate soft float calls unless the target is marked as hf.  So, we should adjust the triple that we use (`-target armv7-unknown-none-eabihf -meabi=gnu` should do the trick I believe).  GCC's handling of the ABI here is really rather annoying since `-target armv7-unknown-none-eabi -meabi=gnu -mfloat-abi=hard` will generate soft float calls to the routines, but `-target armv7-unknown-none-eabihf -meabi=gnu -mfloat-abi=soft` will generate hard float calls.  However, we need to emulate the silly behaviour for compatibility.


https://reviews.llvm.org/D34950





More information about the llvm-commits mailing list