llvm-project icon indicating copy to clipboard operation
llvm-project copied to clipboard

X86 type legalizer crash on X86ISD::STRICT_FMIN node

Open BZZiv opened this issue 1 year ago • 2 comments

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

BZZiv avatar Dec 10 '24 17:12 BZZiv

@llvm/issue-subscribers-backend-x86

Author: None (BZZiv)

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

llvmbot avatar Dec 10 '24 18:12 llvmbot

Thanks for the report! I happened to commit a fix a few hours ago :) https://github.com/llvm/llvm-project/pull/119391

phoebewang avatar Dec 11 '24 03:12 phoebewang