[llvm] [AArch64] Reland merge index address with large offset into base address (PR #79951)
Thurston Dang via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 16 15:42:46 PDT 2024
thurstond wrote:
Since buildbot output expires, here is the failure message for future reference:
```
FAIL: LLVM :: CodeGen/PowerPC/ppc64-nest.ll (38035 of 81639)
******************** TEST 'LLVM :: CodeGen/PowerPC/ppc64-nest.ll' FAILED ********************
Exit Code: 2
Command Output (stderr):
--
RUN: at line 1: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/llc -verify-machineinstrs < /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/test/CodeGen/PowerPC/ppc64-nest.ll | /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/FileCheck /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/test/CodeGen/PowerPC/ppc64-nest.ll
+ /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/llc -verify-machineinstrs
+ /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/FileCheck /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/test/CodeGen/PowerPC/ppc64-nest.ll
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
Stack dump:
0. Program arguments: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/llc -verify-machineinstrs
1. Running pass 'Function Pass Manager' on module '<stdin>'.
2. Running pass 'PowerPC DAG->DAG Pattern Instruction Selection' on function '@nest_caller'
#0 0x0000b078769c0bc0 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/lib/Support/Unix/Signals.inc:723:13
#1 0x0000b078769bdcd8 __cxx_atomic_store<CallbackAndCookie::Status> /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/libcxx_build_ubsan/include/c++/v1/__atomic/cxx_atomic_impl.h:304:3
#2 0x0000b078769bdcd8 store /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/libcxx_build_ubsan/include/c++/v1/__atomic/atomic_base.h:51:5
#3 0x0000b078769bdcd8 llvm::sys::RunSignalHandlers() /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/lib/Support/Signals.cpp:107:16
#4 0x0000b078769c16ac SignalHandler(int) /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/lib/Support/Unix/Signals.inc:413:1
#5 0x0000efaa9b33b8f8 (linux-vdso.so.1+0x8f8)
#6 0x0000b07874395294 getOS /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/include/llvm/TargetParser/Triple.h:382:33
#7 0x0000b07874395294 isOSAIX /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/include/llvm/TargetParser/Triple.h:711:12
#8 0x0000b07874395294 isAIXABI /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/lib/Target/PowerPC/PPCSubtarget.h:215:47
#9 0x0000b07874395294 llvm::PPCTargetLowering::LowerCall(llvm::TargetLowering::CallLoweringInfo&, llvm::SmallVectorImpl<llvm::SDValue>&) const /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/lib/Target/PowerPC/PPCISelLowering.cpp:5971:17
#10 0x0000b0787666cc48 llvm::TargetLowering::LowerCallTo(llvm::TargetLowering::CallLoweringInfo&) const /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp:0:15
#11 0x0000b0787668ddd0 llvm::SelectionDAGBuilder::lowerInvokable(llvm::TargetLowering::CallLoweringInfo&, llvm::BasicBlock const*) /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp:8700:3
#12 0x0000b078766751e4 getNode /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/include/llvm/CodeGen/SelectionDAGNodes.h:159:36
#13 0x0000b078766751e4 llvm::SelectionDAGBuilder::LowerCallTo(llvm::CallBase const&, llvm::SDValue, bool, bool, llvm::BasicBlock const*, llvm::TargetLowering::PtrAuthInfo const*) /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp:8847:20
#14 0x0000b0787665bb74 llvm::SelectionDAGBuilder::visitCall(llvm::CallInst const&) /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp:9467:1
#15 0x0000b0787664e7e0 getValueID /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/include/llvm/IR/Value.h:533:12
#16 0x0000b0787664e7e0 getOpcode /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/include/llvm/IR/Instruction.h:274:39
#17 0x0000b0787664e7e0 isTerminator /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/include/llvm/IR/Instruction.h:277:51
#18 0x0000b0787664e7e0 llvm::SelectionDAGBuilder::visit(llvm::Instruction const&) /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp:1346:10
#19 0x0000b0787674366c getNext /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/include/llvm/ADT/ilist_node_base.h:42:38
#20 0x0000b0787674366c getNext /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/include/llvm/ADT/ilist_node.h:125:59
#21 0x0000b0787674366c operator++ /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/include/llvm/ADT/ilist_iterator.h:345:57
#22 0x0000b0787674366c llvm::SelectionDAGISel::SelectBasicBlock(llvm::ilist_iterator_w_bits<llvm::ilist_detail::node_options<llvm::Instruction, true, false, void, true, llvm::BasicBlock>, false, true>, llvm::ilist_iterator_w_bits<llvm::ilist_detail::node_options<llvm::Instruction, true, false, void, true, llvm::BasicBlock>, false, true>, bool&) /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:816:77
#23 0x0000b07876742094 llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&) /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:0:7
#24 0x0000b0787673e988 llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&) /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:615:7
#25 0x0000b078743e7c50 (anonymous namespace)::PPCDAGToDAGISel::runOnMachineFunction(llvm::MachineFunction&) /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp:171:7
#26 0x0000b0787673bf28 llvm::SelectionDAGISelLegacy::runOnMachineFunction(llvm::MachineFunction&) /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:374:20
#27 0x0000b0787560d958 llvm::MachineFunctionPass::runOnFunction(llvm::Function&) /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/lib/CodeGen/MachineFunctionPass.cpp:94:13
#28 0x0000b07875d0b078 llvm::FPPassManager::runOnFunction(llvm::Function&) /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:0:27
#29 0x0000b07875d14e44 getNext /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/include/llvm/ADT/ilist_node_base.h:42:38
#30 0x0000b07875d14e44 getNext /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/include/llvm/ADT/ilist_node.h:117:59
#31 0x0000b07875d14e44 operator++ /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/include/llvm/ADT/ilist_iterator.h:187:57
#32 0x0000b07875d14e44 llvm::FPPassManager::runOnModule(llvm::Module&) /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:1453:20
#33 0x0000b07875d0bb38 runOnModule /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:0:27
#34 0x0000b07875d0bb38 llvm::legacy::PassManagerImpl::run(llvm::Module&) /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:541:44
#35 0x0000b0787309d90c compileModule(char**, llvm::LLVMContext&) /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/tools/llc/llc.cpp:741:17
#36 0x0000b0787309b2f0 main /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/tools/llc/llc.cpp:0:22
#37 0x0000efaa9acc84c4 (/lib/aarch64-linux-gnu/libc.so.6+0x284c4)
#38 0x0000efaa9acc8598 __libc_start_main (/lib/aarch64-linux-gnu/libc.so.6+0x28598)
#39 0x0000b0787306dc30 _start (/home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/llc+0x68ddc30)
UndefinedBehaviorSanitizer:DEADLYSIGNAL
==1541260==ERROR: UndefinedBehaviorSanitizer: SEGV on unknown address 0x220022002324 (pc 0xb07874395294 bp 0xffffede79610 sp 0xffffede795b0 T1541260)
==1541260==The signal is caused by a READ memory access.
#0 0xb07874395294 in getOS /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/include/llvm/TargetParser/Triple.h:382:33
#1 0xb07874395294 in isOSAIX /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/include/llvm/TargetParser/Triple.h:711:12
#2 0xb07874395294 in isAIXABI /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/lib/Target/PowerPC/PPCSubtarget.h:215:47
#3 0xb07874395294 in llvm::PPCTargetLowering::LowerCall(llvm::TargetLowering::CallLoweringInfo&, llvm::SmallVectorImpl<llvm::SDValue>&) const /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/lib/Target/PowerPC/PPCISelLowering.cpp:5971:17
#4 0xb0787666cc44 in llvm::TargetLowering::LowerCallTo(llvm::TargetLowering::CallLoweringInfo&) const /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp:11113:15
#5 0xb0787668ddcc in llvm::SelectionDAGBuilder::lowerInvokable(llvm::TargetLowering::CallLoweringInfo&, llvm::BasicBlock const*) /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp:8698:44
#6 0xb078766751e0 in llvm::SelectionDAGBuilder::LowerCallTo(llvm::CallBase const&, llvm::SDValue, bool, bool, llvm::BasicBlock const*, llvm::TargetLowering::PtrAuthInfo const*) /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp:8845:40
#7 0xb0787665bb70 in llvm::SelectionDAGBuilder::visitCall(llvm::CallInst const&) /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp:9466:5
#8 0xb0787664e7dc in llvm::SelectionDAGBuilder::visit(llvm::Instruction const&) /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp:1344:3
#9 0xb07876743668 in llvm::SelectionDAGISel::SelectBasicBlock(llvm::ilist_iterator_w_bits<llvm::ilist_detail::node_options<llvm::Instruction, true, false, void, true, llvm::BasicBlock>, false, true>, llvm::ilist_iterator_w_bits<llvm::ilist_detail::node_options<llvm::Instruction, true, false, void, true, llvm::BasicBlock>, false, true>, bool&) /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:818:12
#10 0xb07876742090 in llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&) /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:1839:7
#11 0xb0787673e984 in llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&) /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:614:3
#12 0xb078743e7c4c in (anonymous namespace)::PPCDAGToDAGISel::runOnMachineFunction(llvm::MachineFunction&) /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp:169:25
#13 0xb0787673bf24 in llvm::SelectionDAGISelLegacy::runOnMachineFunction(llvm::MachineFunction&) /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:374:20
#14 0xb0787560d954 in llvm::MachineFunctionPass::runOnFunction(llvm::Function&) /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/lib/CodeGen/MachineFunctionPass.cpp:94:13
#15 0xb07875d0b074 in llvm::FPPassManager::runOnFunction(llvm::Function&) /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:1408:27
#16 0xb07875d14e40 in llvm::FPPassManager::runOnModule(llvm::Module&) /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:1454:16
#17 0xb07875d0bb34 in runOnModule /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:1523:27
#18 0xb07875d0bb34 in llvm::legacy::PassManagerImpl::run(llvm::Module&) /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:541:44
#19 0xb0787309d908 in compileModule(char**, llvm::LLVMContext&) /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/tools/llc/llc.cpp:739:8
#20 0xb0787309b2ec in main /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/tools/llc/llc.cpp:408:22
#21 0xefaa9acc84c0 (/lib/aarch64-linux-gnu/libc.so.6+0x284c0) (BuildId: 3119d7bcf68a34e21742cd08095272de601d373f)
#22 0xefaa9acc8594 in __libc_start_main (/lib/aarch64-linux-gnu/libc.so.6+0x28594) (BuildId: 3119d7bcf68a34e21742cd08095272de601d373f)
#23 0xb0787306dc2c in _start (/home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/llc+0x68ddc2c)
==1541260==Register values:
x0 = 0x2200220022002200 x1 = 0x0000ffffede79be0 x2 = 0x0000ffffede79c18 x3 = 0x0000b078b1a6ccd0
x4 = 0x0000000000000000 x5 = 0x0000ffffede79848 x6 = 0x0000000000000001 x7 = 0x0000000000000008
x8 = 0x0000000000000038 x9 = 0x0000000000000000 x10 = 0x0000000000000001 x11 = 0x0000efaa9ac2d670
x12 = 0x0000000000000000 x13 = 0x0000000000000000 x14 = 0x0000000000000000 x15 = 0x0000b078b19f9890
x16 = 0x0000000000000001 x17 = 0x0000000000000000 x18 = 0x0000000000000001 x19 = 0x0000efaa9abed670
x20 = 0x0000ffffede79b60 x21 = 0x0000000000000000 x22 = 0x0000b078b1a13500 x23 = 0x0000b078b1a6cbf0
x24 = 0x0000000000000000 x25 = 0x0000000000000000 x26 = 0x0000b07800000000 x27 = 0x0000b078b1a13500
x28 = 0x0000b078b1a135f0 fp = 0x0000ffffede79610 lr = 0x0000b07874395204 sp = 0x0000ffffede795b0
UndefinedBehaviorSanitizer can not provide additional info.
SUMMARY: UndefinedBehaviorSanitizer: SEGV /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/include/llvm/TargetParser/Triple.h:382:33 in getOS
==1541260==ABORTING
FileCheck error: '<stdin>' is empty.
FileCheck command line: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/FileCheck /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/test/CodeGen/PowerPC/ppc64-nest.ll
```
It might be related to https://github.com/llvm/llvm-project/issues/76202
https://github.com/llvm/llvm-project/pull/79951
More information about the llvm-commits
mailing list