<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/113034>113034</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[clang-20.0.0git29d0a847+libcxx] virtual void llvm::X86TargetLowering::ReplaceNodeResults(SDNode *, SmallVectorImpl<SDValue> &, SelectionDA G &) const: Assertion `Subtarget.hasXOP() && "Expected XOP"' failed.
</td>
</tr>
<tr>
<th>Labels</th>
<td>
libc++
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
emirhantasdeviren
</td>
</tr>
</table>
<pre>
Hello,
When I try building both sys-devel/llvm-19.1.2::gentoo and sys-devel/llvm-20.0.0.9999::gentoo I get same error.
I managed to capture this line from the logs. (See the attachment to view all)
```
FAILED: lib/Support/CMakeFiles/LLVMSupport.dir/APInt.cpp.o
/usr/lib/llvm/20/bin/clang++ -m32 -mfpmath=sse -DLLVM_EXPORTS -D_DEBUG -D_FILE_OFFSET_BITS=64 -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMI
T_MACROS -I/var/tmp/portage/sys-devel/llvm-20.0.0.9999/work/llvm_build-abi_x86_32.x86/lib/Support -I/var/tmp/portage/sys-devel/llvm-20.0.0.9999/work/llvm/lib/Support -I/var/tmp/portage/sys-devel/llvm-20.0.0.9999
/work/llvm_build-abi_x86_32.x86/include -I/var/tmp/portage/sys-devel/llvm-20.0.0.9999/work/llvm/include -march=znver5 -O2 -pipe -stdlib=libc++ -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werr
or=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthro
ugh -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunctio
n-sections -fdata-sections -std=c++17 -UNDEBUG -MD -MT lib/Support/CMakeFiles/LLVMSupport.dir/APInt.cpp.o -MF lib/Support/CMakeFiles/LLVMSupport.dir/APInt.cpp.o.d -o lib/Support/CMakeFiles/LLVMSupport.dir/APInt
.cpp.o -c /var/tmp/portage/sys-devel/llvm-20.0.0.9999/work/llvm/lib/Support/APInt.cpp
clang++: /var/tmp/portage/sys-devel/llvm-20.0.0.9999/work/llvm/lib/Target/X86/X86ISelLowering.cpp:34122: virtual void llvm::X86TargetLowering::ReplaceNodeResults(SDNode *, SmallVectorImpl<SDValue> &, SelectionDA
G &) const: Assertion `Subtarget.hasXOP() && "Expected XOP"' failed.
```
https://bugs.gentoo.org/941843
[build.log](https://github.com/user-attachments/files/17444912/build.log)
[emerge-info.txt](https://github.com/user-attachments/files/17444913/emerge-info.txt)
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzEVt9v6ygW_mvIC8KysfPDD3lI4rgbqW2umvSmbxE2xzY7GLyA03b--hW2e3tnZzRa7XS0amUFDuc7fJyPc2DWiloBrNF8i-bZjPWu0WYNrTANU45ZDjdhQM0Kzd_X_wApNaI7FGYo3IzfSwMKH7Az77joheRC1bjQrsH23RION5CI5lLeWhKlQRRQFG9QvKlBOa0xU_z362gY-L80TdPfLD7gGhy2rAUMxmgT_LyNA26ZYjVw7DQuWed6A9g1wmIpFODK6Ba7BrDUtQ0woqsTwDDBnGNl04Jy3vMm4BUzKRFNJ_RFOP0Pw3xzuN9nKN5gKQpE81Pfddo4RPPdA_sFciHBIprf339_mEwBFwbRfPPtoFxQdl2gJ2Ca99ZbRiDPHNGchojmhVCI5qVkqkZ0i-gWkzammLRV1zLXoDizFjDJfJTr_uXb8el8wiS7Zvvt853_kR_u99djnp_25-v2cD6hOFsk3nB3f9juXl6um9Np_3Q-H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