Fix behavior of is_fp_class on empty class set
authorSerge Pavlov <sepavloff@gmail.com>
Tue, 24 May 2022 11:30:13 +0000 (18:30 +0700)
committerSerge Pavlov <sepavloff@gmail.com>
Tue, 24 May 2022 14:50:18 +0000 (21:50 +0700)
commit6fc0bc5b0fa7b87960a8b326853643df503d76f7
tree4f409a1a0b408069bc0e7ee6f5189143c9ea0ac7
parent11455e47588940bd397e72e0c50811001c09295e
Fix behavior of is_fp_class on empty class set

The second argument to is_fp_class specifies the set of floating-point
class to test against. It can be zero, in this case the intrinsic is
expected to return zero value.

Differential Revision: https://reviews.llvm.org/D112025
llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
llvm/test/CodeGen/X86/is_fpclass.ll