public void Exs_FloatIeeeConstant_Cmp() { Given_ExpressionSimplifier(); var expr = m.FLt(foo, Constant.Word32(0xC0B00000)); var result = expr.Accept(simplifier); Assert.AreEqual("foo_0 < -5.5F", result.ToString()); }
public void Exs_FloatIeeeConstant_Cmp() { Given_ExpressionSimplifier(); arch.Setup(a => a.ReinterpretAsFloat(It.IsAny <Constant>())) .Returns(new Func <Constant, Constant>(c => Constant.FloatFromBitpattern(c.ToInt32()))); var expr = m.FLt(foo, Constant.Word32(0xC0B00000)); var result = expr.Accept(simplifier); Assert.AreEqual("foo_1 < -5.5F", result.ToString()); }