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

    <tr>
        <th>Summary</th>
        <td>
            Crash in LLVM on RHEL8.7 building a RHEL8 kernel reported by loberman@redhat.com
        </td>
    </tr>

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

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

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

<pre>
    LLVM ERROR: Cannot select: intrinsic %llvm.preserve.struct.access.index
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
Stack dump:
0.      Program arguments: llc -march=bpf -filetype=obj -o samples/bpf/test_map_in_map_kern.o
1.      Running pass 'Function Pass Manager' on module '<stdin>'.
2.      Running pass 'BPF DAG->DAG Pattern Instruction Selection' on function '@trace_sys_connect'
1 warning generated.
 #0 0x00007f7d7e4a8910 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/lib64/libLLVM-14.so+0xbae910)
 #1 0x00007f7d7e4a64b4 llvm::sys::RunSignalHandlers() (/lib64/libLLVM-14.so+0xbac4b4)
 #2 0x00007f7d7e4a6fe5 (/lib64/libLLVM-14.so+0xbacfe5)
 #3 0x00007f7d7d6eccf0 __restore_rt (/lib64/libpthread.so.0+0x12cf0)
 #4 0x00007f7d7ca33aff raise (/lib64/libc.so.6+0x4eaff)
 #5 0x00007f7d7ca06ea5 abort (/lib64/libc.so.6+0x21ea5)
 #6 0x00007f7d7e3cf82c llvm::report_fatal_error(llvm::Twine const&, bool) (/lib64/libLLVM-14.so+0xad582c)
 #7 0x00007f7d7ed59e88 llvm::SelectionDAGISel::CannotYetSelect(llvm::SDNode*) (/lib64/libLLVM-14.so+0x145fe88)
 #8 0x00007f7d7ed5b29f llvm::SelectionDAGISel::SelectCodeCommon(llvm::SDNode*, unsigned char const*, unsigned int) (/lib64/libLLVM-14.so+0x146129f)
 #9 0x00007f7d810e12b8 (/lib64/libLLVM-14.so+0x37e72b8)
#10 0x00007f7d7ed58ce4 llvm::SelectionDAGISel::DoInstructionSelection() (/lib64/libLLVM-14.so+0x145ece4)
#11 0x00007f7d7ed6003a llvm::SelectionDAGISel::CodeGenAndEmitDAG() (/lib64/libLLVM-14.so+0x146603a)
#12 0x00007f7d7ed6352e llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&) (/lib64/libLLVM-14.so+0x146952e)
#13 0x00007f7d7ed65c08 (/lib64/libLLVM-14.so+0x146bc08)
#14 0x00007f7d7e87e872 (/lib64/libLLVM-14.so+0xf84872)
#15 0x00007f7d7e5e8d14 llvm::FPPassManager::runOnFunction(llvm::Function&) (/lib64/libLLVM-14.so+0xceed14)
#16 0x00007f7d7e5e8f4b llvm::FPPassManager::runOnModule(llvm::Module&) (/lib64/libLLVM-14.so+0xceef4b)
#17 0x00007f7d7e5e9820 llvm::legacy::PassManagerImpl::run(llvm::Module&) (/lib64/libLLVM-14.so+0xcef820)
#18 0x000055cf9e99c72e (/usr/bin/llc+0x1872e)
#19 0x000055cf9e993202 main (/usr/bin/llc+0xf202)
#20 0x00007f7d7ca1fd85 __libc_start_main (/lib64/libc.so.6+0x3ad85)
#21 0x000055cf9e99393e _start (/usr/bin/llc+0xf93e)
1 warning generated.
1 warning generated.
/bin/sh: line 9: 441260 Done                    clang -nostdinc -isystem /usr/lib/gcc/x86_64-redhat-linux/8/include -I./arch/x86/include -I./arch/x86/include/generated -I./include/drm-backport -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -fno-stack-protector -g -Isamples/bpf -I./tools/testing/selftests/bpf/ -I./tools/lib/ -D__KERNEL__ -D__BPF_TRACING__ -Wno-unused-value -Wno-pointer-sign -D__TARGET_ARCH_x86 -Wno-compare-distinct-pointer-types -Wno-gnu-variable-sized-type-not-at-end -Wno-address-of-packed-member -Wno-tautological-compare -Wno-unknown-warning-option -I./samples/bpf/ -include asm_goto_workaround.h -O2 -emit-llvm -c samples/bpf/test_map_in_map_kern.c -o -
     441261 Aborted                 (core dumped) | llc -march=bpf -filetype=obj -o samples/bpf/test_map_in_map_kern.o
make[1]: *** [samples/bpf/Makefile:303: samples/bpf/test_map_in_map_kern.o] Error 134
make: *** [Makefile:1736: samples/bpf/] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.3TotLc (%build)

</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJysWF1v4j7W_zTujRXkOO8XXNACnerpzFS0elZ7FTn2CfhPYke2M23306-cQCFM_1O0uwgpYDu_8_M5x-fFzFq5VQBzlNyiZHnDerfTZt7oCkzL1E2lxfv88fH_v-PVZvNzg6IFvmNKaYctNMCdH5DKGams5BjRpGl-tbPOgAXzC2bWmZ67GeMcrJ1JJeANkSUii6fH1eJ5hW1ftdJhhqt-iw102jjsNN4511kULRBdI7reSrfrqxnXLaJrj394BJ3Rf3kOdC2t7cEiusZMCSwVb3oB2O0Ac8PsDleM751hHGaj-GfH-B6Lvu28lGGIzBApnozeGtZiZrZ9C8p5ErhpOA5aZvgORcuqq3FQywbcewcoWurqLxxobFnbNQODqqsRXTuwrmxZV0o1PPZg1EyPkkIvadMrJdUWd8xajGi27hV3Uiv85Ae-M8W2YBDNsFa41aJvwK9C0Z11QioUrRDNDpuhn-HdPq3xcnEfoGi1XNzjJ-YcGIUf1GgSL-l5sKDU6iCmPlLwgmIy6Ku077bkWqlBz9lhA_iVmUHaFhQY5kAcqGBEI4LJGyGEZHUmMohZXoQED2aLFiha2Hc7_ngyUrnBEC9eEqL5aZFhr6W2zgBrEU0RvfNOhmiBEc299WWVxuPT-2YQxjOrEb0lbxWDIiSIFic-4QWfNK7iz_hsevUst4o135gSDRg7yLpGJI-reCKSXoqsIbkGp4ZkghOd44gUOK8JLksD1mkDpXG_g3ZuZ4CJmdUzMsCGlNdThcTnqJxFEatrbJi08Dsc90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