[llvm] [DAG] Adding m_FPToUI and m_FPToSI to SDPatternMatch.h (PR #104044)
Jorge Botto via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 14 14:31:06 PDT 2024
================
@@ -263,6 +268,9 @@ TEST_F(SelectionDAGPatternMatchTest, matchUnaryOp) {
EXPECT_FALSE(sd_match(Sub, m_Neg(m_Value())));
EXPECT_FALSE(sd_match(Neg, m_Not(m_Value())));
EXPECT_TRUE(sd_match(VScale, m_VScale(m_Value())));
+
+ EXPECT_TRUE(sd_match(FPToUI, m_FPToUI(m_Value())));
+ EXPECT_TRUE(sd_match(FPToSI, m_FPToSI(m_Value())));
----------------
jf-botto wrote:
Thank you. Added.
https://github.com/llvm/llvm-project/pull/104044
More information about the llvm-commits
mailing list