-
Notifications
You must be signed in to change notification settings - Fork 286
Description
Description
I've run into the error below when compiling a particular file with -O2 on the arm64 ABI. It doesn't happen with -O1 or -O3 on arm64, and no problems with -O2 on the same file with other ABIs. Preprocessed source and run script are also attached: bug.zip
fatal error: error in backend: Cannot select: 0x62a2a28: v4i16 = AArch64ISD::DUP 0x62ab698, ./src/vice/vicii/vicii-draw.c:1490:24 @[ ./src/vice/vicii/vicii-draw.c:1509:5 ]
0x62ab698: i16 = truncate 0x62ab700, ./src/vice/vicii/vicii-draw.c:1490:24 @[ ./src/vice/vicii/vicii-draw.c:1509:5 ]
0x62ab700: i32,ch = CopyFromReg 0x61be328, Register:i32 %7, ./src/vice/vicii/vicii-draw.c:1489:13 @[ ./src/vice/vicii/vicii-draw.c:1509:5 ]
0x62aaf48: i32 = Register %7
In function: vicii_draw_init
clang: error: clang frontend command failed with exit code 70 (use -v to see invocation)
Android (5900059 based on r365631c) clang version 9.0.8 (https://android.googlesource.com/toolchain/llvm-project 207d7abc1a2abf3ef8d4301736d6a7ebc224a290) (based on LLVM 9.0.8svn)
Target: aarch64-none-linux-android21
Thread model: posix
InstalledDir: /opt/android-sdk-update-manager/ndk/21.1.6210238/toolchains/llvm/prebuilt/linux-x86_64/bin
clang: note: diagnostic msg: PLEASE submit a bug report to https://github.com/android-ndk/ndk/issues and include the crash backtrace, preprocessed source, and associated run script.
Environment Details
- NDK Version: 21.1.6210238-beta1
- Build system: Custom
- Host OS: Gentoo Linux
- ABI: arm64-v8a
- NDK API level: 21