X86 type legalizer crash on X86ISD::STRICT_FMIN node
Getting the following error on a short C testcase with -frounding-math flag:
ReplaceNodeResults: t15: v2f32,ch = X86ISD::STRICT_FMIN t0, t3, t5, example.c:6:14
Do not know how to custom type legalize this operation!
UNREACHABLE executed at /root/llvm-project/llvm/lib/Target/X86/X86ISelLowering.cpp:33268!
reduced .c reproducer
https://godbolt.org/z/5zjarsjv5
reduced .ll reproducer:
https://godbolt.org/z/7G4rcWq4G
After git bisecting it seems that this crash started only after introducing commit https://github.com/llvm/llvm-project/commit/9882b35a3a3e46d749b801bd0b98c3d90af6006c
@llvm/issue-subscribers-backend-x86
Author: None (BZZiv)
reduced .c reproducer https://godbolt.org/z/5zjarsjv5
reduced .ll reproducer: https://godbolt.org/z/7G4rcWq4G
After "git bisecting" it seems that this crash started only after introducing commit https://github.com/llvm/llvm-project/commit/9882b35a3a3e46d749b801bd0b98c3d90af6006c
Thanks for the report! I happened to commit a fix a few hours ago :) https://github.com/llvm/llvm-project/pull/119391