<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/142314>142314</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            unhandled opcode in isAArch64FrameOffsetLegal
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          TatyanaDoubts
      </td>
    </tr>
</table>

<pre>
    To reproduce run llc with the test below:

[reduced-stripped.ll.zip](https://github.com/user-attachments/files/20541190/reduced-stripped.ll.zip)

Reproducer: https://godbolt.org/z/h4jxj6sW4

Stack dump:
```
unhandled opcode in isAArch64FrameOffsetLegal
UNREACHABLE executed at /root/llvm-project/llvm/lib/Target/AArch64/AArch64InstrInfo.cpp:6286!
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
Stack dump:
0.      Program arguments: /opt/compiler-explorer/clang-assertions-trunk/bin/llc -o /app/output.s -x86-asm-syntax=intel <source>
1.      Running pass 'Function Pass Manager' on module '<source>'.
2.      Running pass 'Prologue/Epilogue Insertion & Frame Finalization' on function '@widget'
 #0 0x0000000003f00ab8 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/opt/compiler-explorer/clang-assertions-trunk/bin/llc+0x3f00ab8)
 #1 0x0000000003efe444 SignalHandler(int, siginfo_t*, void*) Signals.cpp:0:0
 #2 0x0000747fc7442520 (/lib/x86_64-linux-gnu/libc.so.6+0x42520)
 #3 0x0000747fc74969fc pthread_kill (/lib/x86_64-linux-gnu/libc.so.6+0x969fc)
 #4 0x0000747fc7442476 gsignal (/lib/x86_64-linux-gnu/libc.so.6+0x42476)
 #5 0x0000747fc74287f3 abort (/lib/x86_64-linux-gnu/libc.so.6+0x287f3)
 #6 0x0000000003e4adda (/opt/compiler-explorer/clang-assertions-trunk/bin/llc+0x3e4adda)
 #7 0x0000000000ac2080 llvm::isAArch64FrameOffsetLegal(llvm::MachineInstr const&, llvm::StackOffset&, bool*, unsigned int*, long*) (/opt/compiler-explorer/clang-assertions-trunk/bin/llc+0xac2080)
 #8 0x0000000000c7f000 llvm::AArch64FrameLowering::determineCalleeSaves(llvm::MachineFunction&, llvm::BitVector&, llvm::RegScavenger*) const (.part.0) AArch64FrameLowering.cpp:0:0
 #9 0x0000000002ffeb86 (anonymous namespace)::PEIImpl::run(llvm::MachineFunction&) (.constprop.0) PrologEpilogInserter.cpp:0:0
#10 0x0000000003001a7b (anonymous namespace)::PEILegacy::runOnMachineFunction(llvm::MachineFunction&) PrologEpilogInserter.cpp:0:0
#11 0x0000000002e4955a llvm::MachineFunctionPass::runOnFunction(llvm::Function&) (.part.0) MachineFunctionPass.cpp:0:0
#12 0x00000000034759cf llvm::FPPassManager::runOnFunction(llvm::Function&) (/opt/compiler-explorer/clang-assertions-trunk/bin/llc+0x34759cf)
#13 0x0000000003475d81 llvm::FPPassManager::runOnModule(llvm::Module&) (/opt/compiler-explorer/clang-assertions-trunk/bin/llc+0x3475d81)
#14 0x0000000003476621 llvm::legacy::PassManagerImpl::run(llvm::Module&) (/opt/compiler-explorer/clang-assertions-trunk/bin/llc+0x3476621)
#15 0x00000000008c3548 compileModule(char**, llvm::LLVMContext&) llc.cpp:0:0
#16 0x00000000007a160e main (/opt/compiler-explorer/clang-assertions-trunk/bin/llc+0x7a160e)
#17 0x0000747fc7429d90 (/lib/x86_64-linux-gnu/libc.so.6+0x29d90)
#18 0x0000747fc7429e40 __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x29e40)
#19 0x00000000008b9c25 _start (/opt/compiler-explorer/clang-assertions-trunk/bin/llc+0x8b9c25)
Program terminated with signal: SIGSEGV
Compiler returned: 139
```
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJy0l0tv2zoWxz8NvSFsUNR74YWSxvcGSOcGTaezNCjqSGZLkQJJJU4__YCUfP2oO21mMoEDy5L4P7_z4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