[llvm-dev] LLVM mtriple for aarch64-win32-msvc ?
Martin Storsjö via llvm-dev
llvm-dev at lists.llvm.org
Sat Sep 16 11:33:32 PDT 2017
On Sat, 16 Sep 2017, Tim Northover wrote:
> On 16 September 2017 at 04:00, Chris Lovett via llvm-dev
> <llvm-dev at lists.llvm.org> wrote:
>> So using armv7-win32-msvc is getting me a bit closer, but what CPU,
>> raspberry pi 3 is running a Cortext-A53, but when I specify that in -mcpu
>> argument I get this error:
>>> llc.exe test.bc -o test.obj -filetype=obj -O3 -mtriple=armv7-win32-msvc
>>> -mcpu=cortex-a53 -relocation-model=pic
>>> llc.exe failed: LLVM ERROR: CPU: 'cortex-a53' does not support ARM mode
> I think I remember from discussions with Saleem that Windows only
> supports code running in Thumb mode, so using "thumbv7" at the start
> of the triple is probably a lot more likely to work.
Indeed, that's correct. Within the clang frontend, we remap all
armv7-win32 to thumbv7-win32 internally, and for various reasons I've kept
using the armv7 named triplet in my own command lines.
More information about the llvm-dev