Issue 240350
Summary [Hexagon] test hwloop-ubsan-fallthrough.mir broken on main
Labels infrastructure, backend:Hexagon, compiler-rt:ubsan
Assignees
Reporter dominik-steenken
    My Pr CI for https://github.com/llvm/llvm-project/pull/239638 failed with a seemingly unrrelated hexagon issue. I've confirmed that this test fails also on main. I bisected the problem to commit 7c1059903097, which gives:
```
# | *** Bad machine code: Kill flag on virtual register ***
# | - function: strlen
# | - basic block: %bb.1 loop (0x6c578a8)
# | - instruction: %8:predregs = C2_cmpeqi killed %7:intregs, 0
# | - operand 1:   killed %7:intregs
# | 
# | *** Bad machine code: Kill flag on virtual register ***
# | - function:    strlen
# | - basic block: %bb.1 loop (0x6c578a8)
# | - instruction: J2_jumpt killed %8:predregs, %bb.4, implicit-def dead $pc
# | - operand 0:   killed %8:predregs
# | LLVM ERROR: Found 2 machine code errors.
# | PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace and instructions to reproduce the bug.
# | Stack dump:
# | 0.  Program arguments: /home/dost/workspace/llvm-project/build/bin/llc -mtriple=hexagon -run-pass=hwloops /home/dost/workspace/llvm-project/llvm/test/CodeGen/Hexagon/hwloop-ubsan-fallthrough.mir -o -
# |  #0 0x0000000002f5f008 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/home/dost/workspace/llvm-project/build/bin/llc+0x2f5f008)
# |  #1 0x0000000002f5fcd2 SignalHandler(int, siginfo_t*, void*) Signals.cpp:0:0
# | #2 0x000003ffffffe4e0 (linux-vdso.so.1+0x4e0)
# |  #3 0x000003fff78af456 __pthread_kill_implementation pthread_kill.c:44:76
# |  #4 0x000003fff78544f0 gsignal ../sysdeps/posix/raise.c:27:3
# |  #5 0x000003fff7834442 abort abort.c:85:3
# |  #6 0x0000000002e61340 llvm::report_fatal_error(llvm::Twine const&, bool) (/home/dost/workspace/llvm-project/build/bin/llc+0x2e61340)
# |  #7 0x0000000003c6a92a (anonymous namespace)::MachineVerifier::ReportedErrors::~ReportedErrors() MachineVerifier.cpp:0:0
# |  #8 0x0000000003c69c2a llvm::MachineFunction::verify(llvm::Pass*, char const*, llvm::raw_ostream*, bool) const (/home/dost/workspace/llvm-project/build/bin/llc+0x3c69c2a)
# | #9 0x000000000515495c llvm::MIRParserImpl::initializeMachineFunction(llvm::yaml::MachineFunction const&, llvm::MachineFunction&) (/home/dost/workspace/llvm-project/build/bin/llc+0x515495c)
# | #10 0x000000000515390a llvm::MIRParserImpl::parseMachineFunction(llvm::Module&, llvm::MachineModuleInfo&, llvm::AnalysisManager<llvm::Module>*, llvm::ilist_iterator<llvm::ilist_detail::node_options<llvm::Function, true, false, void, false, void>, false, false>&) (/home/dost/workspace/llvm-project/build/bin/llc+0x515390a)
# | #11 0x000000000515d834 llvm::MIRParser::parseMachineFunctions(llvm::Module&, llvm::MachineModuleInfo&) (/home/dost/workspace/llvm-project/build/bin/llc+0x515d834)
# | #12 0x0000000002f69fb2 compileModule(char**, llvm::SmallVectorImpl<llvm::PassPlugin>&, llvm::LLVMContext&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&) llcdriver.cpp:0:0
# | #13 0x0000000002f67564 llcMain (/home/dost/workspace/llvm-project/build/bin/llc+0x2f67564)
# | #14 0x0000000002e60cb4 main (/home/dost/workspace/llvm-project/build/bin/llc+0x2e60cb4)
# | #15 0x000003fff7834aec __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:83:3
# | #16 0x000003fff7834c46 ../csu/libc-start.c:128:20
# | #17 0x000003fff7834c46 __libc_start_main@GLIBC_2.2 ../csu/libc-start.c:347:5
# | #18 0x0000000002e60b8a _start (/home/dost/workspace/llvm-project/build/bin/llc+0x2e60b8a)
# `-----------------------------
# error: command failed with exit status: -6
# executed command: /home/dost/workspace/llvm-project/build/bin/FileCheck /home/dost/workspace/llvm-project/llvm/test/CodeGen/Hexagon/hwloop-ubsan-fallthrough.mir
# .---command stderr------------
# | FileCheck error: '<stdin>' is empty.
# | FileCheck command line: /home/dost/workspace/llvm-project/build/bin/FileCheck /home/dost/workspace/llvm-project/llvm/test/CodeGen/Hexagon/hwloop-ubsan-fallthrough.mir
# `-----------------------------
# error: command failed with exit status: 2
```
where the immediately previous commit did not.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to