Issue |
135815
|
Summary |
typo in `-mcpu` arg for `llc` led to crash
|
Labels |
new issue
|
Assignees |
|
Reporter |
amordo
|
`gfx900` had to be instead of `gf900`
```
$ ./llvm-project/build/bin/llc -march=amdgcn -mcpu=gf900 < amd.ll
'gf900' is not a recognized processor for this target (ignoring processor)
'gf900' is not a recognized processor for this target (ignoring processor)
'gf900' is not a recognized processor for this target (ignoring processor)
'gf900' is not a recognized processor for this target (ignoring processor)
'gf900' is not a recognized processor for this target (ignoring processor)
'gf900' is not a recognized processor for this target (ignoring processor)
'gf900' is not a recognized processor for this target (ignoring processor)
LLVM ERROR: Cannot select: 0x12e072f80: ch = store<(store (s64) into %ir.out)> # D:1 0x12de0ae18, 0x12e072f10, 0x12e072ea0, undef:i64
0x12e072f10: v2i32 = bitcast # D:1 0x12e073140
0x12e073140: i64 = llvm.amdgcn.s.quadmask # D:1 TargetConstant:i64<3170>, 0x12e073060
0x12e0730d0: i64 = TargetConstant<3170>
0x12e073060: i64 = bitcast # D:1 0x12e073370
0x12e073370: v2i32 = BUILD_VECTOR # D:1 0x12e072c70, undef:i32
0x12e072c70: i32,ch = CopyFromReg # D:1 0x12de0ae18, Register:i32 %0
0x12e072c00: i32 = Register %0
0x12e0731b0: i32 = undef
0x12e072ea0: i64 = build_pair # D:1 0x12e072d50, 0x12e072e30
0x12e072d50: i32,ch = CopyFromReg # D:1 0x12de0ae18, Register:i32 %1
0x12e072ce0: i32 = Register %1
0x12e072e30: i32,ch = CopyFromReg # D:1 0x12de0ae18, Register:i32 %2
0x12e072dc0: i32 = Register %2
0x12e073220: i64 = undef
In function: test
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
Stack dump:
0. Program arguments: ./llvm-project/build/bin/llc -march=amdgcn -mcpu=gf900
1. Running pass 'CallGraph Pass Manager' on module '<stdin>'.
2. Running pass 'AMDGPU DAG->DAG Pattern Instruction Selection' on function '@test'
#0 0x000000010724ab78 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/Users/bob/llvm-project/build/bin/llc+0x10239ab78)
#1 0x0000000107248e30 llvm::sys::RunSignalHandlers() (/Users/bob/llvm-project/build/bin/llc+0x102398e30)
#2 0x000000010724b21c SignalHandler(int, __siginfo*, void*) (/Users/bob/llvm-project/build/bin/llc+0x10239b21c)
#3 0x00000001a9286a24 (/usr/lib/system/libsystem_platform.dylib+0x18042ea24)
#4 0x00000001a9257c28 (/usr/lib/system/libsystem_pthread.dylib+0x1803ffc28)
#5 0x00000001a9165ae8 (/usr/lib/system/libsystem_c.dylib+0x18030dae8)
#6 0x00000001071b975c llvm::report_fatal_error(llvm::Twine const&, bool) (/Users/bob/llvm-project/build/bin/llc+0x10230975c)
#7 0x000000010711970c llvm::SelectionDAGISel::isOrEquivalentToAdd(llvm::SDNode const*) const (/Users/bob/llvm-project/build/bin/llc+0x10226970c)
#8 0x0000000107118e60 llvm::SelectionDAGISel::SelectCodeCommon(llvm::SDNode*, unsigned char const*, unsigned int) (/Users/bob/llvm-project/build/bin/llc+0x102268e60)
#9 0x0000000107111210 llvm::SelectionDAGISel::DoInstructionSelection() (/Users/bob/llvm-project/build/bin/llc+0x102261210)
#10 0x0000000107110a7c llvm::SelectionDAGISel::CodeGenAndEmitDAG() (/Users/bob/llvm-project/build/bin/llc+0x102260a7c)
#11 0x0000000107110254 llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&) (/Users/bob/llvm-project/build/bin/llc+0x102260254)
#12 0x000000010710e338 llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&) (/Users/bob/llvm-project/build/bin/llc+0x10225e338)
#13 0x000000010527dec4 llvm::AMDGPUDAGToDAGISel::runOnMachineFunction(llvm::MachineFunction&) (/Users/bob/llvm-project/build/bin/llc+0x1003cdec4)
#14 0x000000010710cdec llvm::SelectionDAGISelLegacy::runOnMachineFunction(llvm::MachineFunction&) (/Users/bob/llvm-project/build/bin/llc+0x10225cdec)
#15 0x00000001066f1544 llvm::MachineFunctionPass::runOnFunction(llvm::Function&) (/Users/bob/llvm-project/build/bin/llc+0x101841544)
#16 0x0000000106b1e1c8 llvm::FPPassManager::runOnFunction(llvm::Function&) (/Users/bob/llvm-project/build/bin/llc+0x101c6e1c8)
#17 0x00000001062483c4 (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (/Users/bob/llvm-project/build/bin/llc+0x1013983c4)
#18 0x0000000106b1ecc8 llvm::legacy::PassManagerImpl::run(llvm::Module&) (/Users/bob/llvm-project/build/bin/llc+0x101c6ecc8)
#19 0x0000000104eb5e6c main (/Users/bob/llvm-project/build/bin/llc+0x100005e6c)
#20 0x00000001a8efffd8
zsh: abort ./llvm-project/build/bin/llc -march=amdgcn -mcpu=gf900 < amd.ll
```
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs