Open zhangxin6483 opened 7 months ago
@llvm/issue-subscribers-backend-aarch64
Author: None (zhangxin6483)
Maybe what you want is a cross-toolchain (host=x86 and target=aarch64), you can
Maybe what you want is a cross-toolchain (host=x86 and target=aarch64), you can
- Download release binary directly from https://github.com/llvm/llvm-project/releases/tag/llvmorg-18.1.2
- Build cross-toolchain from source code : https://llvm.org/docs/GettingStarted.html#getting-the-source-code-and-building-llvm
- Compile code online if you only want to get assembly results as soon as possible : https://godbolt.org/z/crq3rfExb
ok, thank you.
While buildingJailhouse with enabling clang am receiving the below error,
error: unknown target CPU 'armv8-a+nofp' note: valid target CPU values are: nocona, core2, penryn, bonnell, atom, silvermont, slm, goldmont, goldmont-plus, tremont, nehalem, corei7, westmere, sandybridge, corei7-avx, ivybridge, core-avx-i, haswell, core-avx2, broadwell, skylake, skylake-avx512, skx, cascadelake, cooperlake, cannonlake, icelake-client, icelake-server, tigerlake, sapphirerapids, alderlake, knl, knm, k8, athlon64, athlon-fx, opteron, k8-sse3, athlon64-sse3, opteron-sse3, amdfam10, barcelona, btver1, btver2, bdver1, bdver2, bdver3, bdver4, znver1, znver2, znver3, x86-64, x86-64-v2, x86-64-v3, x86-64-v4
kroot@tracy-pc:/home/jailhouse/src/jailhouse# clang -print-supported-cpus Android (7284624, based on r416183b) clang version 12.0.5 (https://android.googlesource.com/toolchain/llvm-project c935d99d7cf2016289302412d708641d52d2f7ee) Target: x86_64-unknown-linux-gnu Thread model: posix InstalledDir: /home/zhangshizong/itx3588j-aosp12/prebuilts/clang/host/linux-x86/clang-r416183b/bin Available CPUs for this target:
Use -mcpu or -mtune to specify the target's processor. For example, clang --target=aarch64-unknown-linux-gui -mcpu=cortex-a35
Can I get more information on how to make it work for armv8-a+nofp?
tks.