[llvm] [AArch64][GlobalISel] Make G_DUP immediate 32-bits or larger (PR #96780)
David Spickett via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 9 05:06:54 PDT 2024
DavidSpickett wrote:
[scal-to-vec1-719b0d.zip](https://github.com/user-attachments/files/16142899/scal-to-vec1-719b0d.zip)
```
$ ./scal-to-vec1-719b0d.sh
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace, preprocessed source, and associated run script.
Stack dump:
0. Program arguments: /home/david.spickett/build-llvm-aarch64/bin/clang-19 -cc1 -triple aarch64-unknown-linux-gnu -emit-obj -disable-free -clear-ast-before-backend -main-file-name scal-to-vec1.c -mrelocation-model pic -pic-level 2 -pic-is-pie -mframe-pointer=non-leaf -fmath-errno -ffp-contract=on -fno-rounding-math -mconstructor-aliases -funwind-tables=2 -target-cpu generic -target-feature +v8a -target-feature +fp-armv8 -target-feature +neon -target-abi aapcs -debugger-tuning=gdb -fdebug-compilation-dir=/home/tcwg-buildbot/worker/clang-aarch64-global-isel/test/sandbox/build/SingleSource/Regression/C/gcc-c-torture/execute -fcoverage-compilation-dir=/home/tcwg-buildbot/worker/clang-aarch64-global-isel/test/sandbox/build/SingleSource/Regression/C/gcc-c-torture/execute -sys-header-deps -D NDEBUG -O0 -Werror=date-time -Wno-implicit-int -Wno-int-conversion -Wno-implicit-function-declaration -w -ferror-limit 19 -fno-signed-char -fgnuc-version=4.2.1 -fskip-odr-check-in-gmf -target-feature +outline-atomics -target-feature -fmv -faddrsig -D__GCC_HAVE_DWARF2_CFI_ASM=1 -x c scal-to-vec1-719b0d.c
1. <eof> parser at end of file
2. Code generation
3. Running pass 'Function Pass Manager' on module 'scal-to-vec1-719b0d.c'.
4. Running pass 'RegBankSelect' on function '@main'
#0 0x0000aaaad3808304 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/home/david.spickett/build-llvm-aarch64/bin/clang-19+0x3736304)
#1 0x0000aaaad3806104 llvm::sys::RunSignalHandlers() (/home/david.spickett/build-llvm-aarch64/bin/clang-19+0x3734104)
#2 0x0000aaaad3808a2c SignalHandler(int) Signals.cpp:0:0
#3 0x0000ffffb29015c0 (linux-vdso.so.1+0x5c0)
#4 0x0000aaaad14801c8 llvm::AArch64RegisterBankInfo::getInstrMapping(llvm::MachineInstr const&) const (/home/david.spickett/build-llvm-aarch64/bin/clang-19+0x13ae1c8)
#5 0x0000aaaad44591ac llvm::RegBankSelect::assignInstr(llvm::MachineInstr&) (/home/david.spickett/build-llvm-aarch64/bin/clang-19+0x43871ac)
#6 0x0000aaaad4459608 llvm::RegBankSelect::assignRegisterBanks(llvm::MachineFunction&) (/home/david.spickett/build-llvm-aarch64/bin/clang-19+0x4387608)
#7 0x0000aaaad4459948 llvm::RegBankSelect::runOnMachineFunction(llvm::MachineFunction&) (/home/david.spickett/build-llvm-aarch64/bin/clang-19+0x4387948)
#8 0x0000aaaad2d346e0 llvm::MachineFunctionPass::runOnFunction(llvm::Function&) (/home/david.spickett/build-llvm-aarch64/bin/clang-19+0x2c626e0)
#9 0x0000aaaad32594b8 llvm::FPPassManager::runOnFunction(llvm::Function&) (/home/david.spickett/build-llvm-aarch64/bin/clang-19+0x31874b8)
#10 0x0000aaaad3260f44 llvm::FPPassManager::runOnModule(llvm::Module&) (/home/david.spickett/build-llvm-aarch64/bin/clang-19+0x318ef44)
#11 0x0000aaaad3259ea8 llvm::legacy::PassManagerImpl::run(llvm::Module&) (/home/david.spickett/build-llvm-aarch64/bin/clang-19+0x3187ea8)
#12 0x0000aaaad3a06170 clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::HeaderSearchOptions const&, clang::CodeGenOptions const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::StringRef, llvm::Module*, clang::BackendAction, llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem>, std::unique_ptr<llvm::raw_pwrite_stream, std::default_delete<llvm::raw_pwrite_stream>>, clang::BackendConsumer*) (/home/david.spickett/build-llvm-aarch64/bin/clang-19+0x3934170)
#13 0x0000aaaad3f0a8c4 clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) (/home/david.spickett/build-llvm-aarch64/bin/clang-19+0x3e388c4)
#14 0x0000aaaad58a068c clang::ParseAST(clang::Sema&, bool, bool) (/home/david.spickett/build-llvm-aarch64/bin/clang-19+0x57ce68c)
#15 0x0000aaaad412ccf4 clang::FrontendAction::Execute() (/home/david.spickett/build-llvm-aarch64/bin/clang-19+0x405acf4)
#16 0x0000aaaad40b1308 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (/home/david.spickett/build-llvm-aarch64/bin/clang-19+0x3fdf308)
#17 0x0000aaaad420b3e4 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) (/home/david.spickett/build-llvm-aarch64/bin/clang-19+0x41393e4)
#18 0x0000aaaad13433e0 cc1_main(llvm::ArrayRef<char const*>, char const*, void*) (/home/david.spickett/build-llvm-aarch64/bin/clang-19+0x12713e0)
#19 0x0000aaaad1340344 ExecuteCC1Tool(llvm::SmallVectorImpl<char const*>&, llvm::ToolContext const&) driver.cpp:0:0
#20 0x0000aaaad133eff8 clang_main(int, char**, llvm::ToolContext const&) (/home/david.spickett/build-llvm-aarch64/bin/clang-19+0x126cff8)
#21 0x0000aaaad134d7f0 main (/home/david.spickett/build-llvm-aarch64/bin/clang-19+0x127b7f0)
#22 0x0000ffffb243ce10 __libc_start_main /build/glibc-Q8DG8B/glibc-2.31/csu/../csu/libc-start.c:342:3
#23 0x0000aaaad133ddb8 _start (/home/david.spickett/build-llvm-aarch64/bin/clang-19+0x126bdb8)
./scal-to-vec1-719b0d.sh: line 1: 3165123 Segmentation fault (core dumped) "/home/david.spickett/build-llvm-aarch64/bin/clang-19" "-cc1" "-triple" "aarch64-unknown-linux-gnu" "-emit-obj" "-disable-free" "-clear-ast-before-backend" "-main-file-name" "scal-to-vec1.c" "-mrelocation-model" "pic" "-pic-level" "2" "-pic-is-pie" "-mframe-pointer=non-leaf" "-fmath-errno" "-ffp-contract=on" "-fno-rounding-math" "-mconstructor-aliases" "-funwind-tables=2" "-target-cpu" "generic" "-target-feature" "+v8a" "-target-feature" "+fp-armv8" "-target-feature" "+neon" "-target-abi" "aapcs" "-debugger-tuning=gdb" "-fdebug-compilation-dir=/home/tcwg-buildbot/worker/clang-aarch64-global-isel/test/sandbox/build/SingleSource/Regression/C/gcc-c-torture/execute" "-fcoverage-compilation-dir=/home/tcwg-buildbot/worker/clang-aarch64-global-isel/test/sandbox/build/SingleSource/Regression/C/gcc-c-torture/execute" "-sys-header-deps" "-D" "NDEBUG" "-O0" "-Werror=date-time" "-Wno-implicit-int" "-Wno-int-conversion" "-Wno-implicit-function-declaration" "-w" "-ferror-limit" "19" "-fno-signed-char" "-fgnuc-version=4.2.1" "-fskip-odr-check-in-gmf" "-target-feature" "+outline-atomics" "-target-feature" "-fmv" "-faddrsig" "-D__GCC_HAVE_DWARF2_CFI_ASM=1" "-x" "c" "scal-to-vec1-719b0d.c"
```
https://github.com/llvm/llvm-project/pull/96780
More information about the llvm-commits
mailing list