Lines Matching refs:rhs

27   defm _F32 : I<(outs F32:$dst), (ins F32:$lhs, F32:$rhs), (outs), (ins),
28 [(set F32:$dst, (node F32:$lhs, F32:$rhs))],
29 !strconcat("f32.", !strconcat(name, "\t$dst, $lhs, $rhs")),
31 defm _F64 : I<(outs F64:$dst), (ins F64:$lhs, F64:$rhs), (outs), (ins),
32 [(set F64:$dst, (node F64:$lhs, F64:$rhs))],
33 !strconcat("f64.", !strconcat(name, "\t$dst, $lhs, $rhs")),
37 defm _F32 : I<(outs I32:$dst), (ins F32:$lhs, F32:$rhs), (outs), (ins),
38 [(set I32:$dst, (setcc F32:$lhs, F32:$rhs, cond))],
39 !strconcat("f32.", !strconcat(name, "\t$dst, $lhs, $rhs")),
41 defm _F64 : I<(outs I32:$dst), (ins F64:$lhs, F64:$rhs), (outs), (ins),
42 [(set I32:$dst, (setcc F64:$lhs, F64:$rhs, cond))],
43 !strconcat("f64.", !strconcat(name, "\t$dst, $lhs, $rhs")),
69 // DAGCombine oddly folds casts into the rhs of copysign. Unfold them.
70 def : Pat<(fcopysign F64:$lhs, F32:$rhs),
71 (COPYSIGN_F64 F64:$lhs, (F64_PROMOTE_F32 F32:$rhs))>;
72 def : Pat<(fcopysign F32:$lhs, F64:$rhs),
73 (COPYSIGN_F32 F32:$lhs, (F32_DEMOTE_F64 F64:$rhs))>;
93 def : Pat<(seteq f32:$lhs, f32:$rhs), (EQ_F32 f32:$lhs, f32:$rhs)>;
94 def : Pat<(setne f32:$lhs, f32:$rhs), (NE_F32 f32:$lhs, f32:$rhs)>;
95 def : Pat<(setlt f32:$lhs, f32:$rhs), (LT_F32 f32:$lhs, f32:$rhs)>;
96 def : Pat<(setle f32:$lhs, f32:$rhs), (LE_F32 f32:$lhs, f32:$rhs)>;
97 def : Pat<(setgt f32:$lhs, f32:$rhs), (GT_F32 f32:$lhs, f32:$rhs)>;
98 def : Pat<(setge f32:$lhs, f32:$rhs), (GE_F32 f32:$lhs, f32:$rhs)>;
99 def : Pat<(seteq f64:$lhs, f64:$rhs), (EQ_F64 f64:$lhs, f64:$rhs)>;
100 def : Pat<(setne f64:$lhs, f64:$rhs), (NE_F64 f64:$lhs, f64:$rhs)>;
101 def : Pat<(setlt f64:$lhs, f64:$rhs), (LT_F64 f64:$lhs, f64:$rhs)>;
102 def : Pat<(setle f64:$lhs, f64:$rhs), (LE_F64 f64:$lhs, f64:$rhs)>;
103 def : Pat<(setgt f64:$lhs, f64:$rhs), (GT_F64 f64:$lhs, f64:$rhs)>;
104 def : Pat<(setge f64:$lhs, f64:$rhs), (GE_F64 f64:$lhs, f64:$rhs)>;
106 defm SELECT_F32 : I<(outs F32:$dst), (ins F32:$lhs, F32:$rhs, I32:$cond),
108 [(set F32:$dst, (select I32:$cond, F32:$lhs, F32:$rhs))],
109 "f32.select\t$dst, $lhs, $rhs, $cond", "f32.select", 0x1b>;
110 defm SELECT_F64 : I<(outs F64:$dst), (ins F64:$lhs, F64:$rhs, I32:$cond),
112 [(set F64:$dst, (select I32:$cond, F64:$lhs, F64:$rhs))],
113 "f64.select\t$dst, $lhs, $rhs, $cond", "f64.select", 0x1b>;
118 def : Pat<(select (i32 (setne I32:$cond, 0)), F32:$lhs, F32:$rhs),
119 (SELECT_F32 F32:$lhs, F32:$rhs, I32:$cond)>;
120 def : Pat<(select (i32 (setne I32:$cond, 0)), F64:$lhs, F64:$rhs),
121 (SELECT_F64 F64:$lhs, F64:$rhs, I32:$cond)>;
124 def : Pat<(select (i32 (seteq I32:$cond, 0)), F32:$lhs, F32:$rhs),
125 (SELECT_F32 F32:$rhs, F32:$lhs, I32:$cond)>;
126 def : Pat<(select (i32 (seteq I32:$cond, 0)), F64:$lhs, F64:$rhs),
127 (SELECT_F64 F64:$rhs, F64:$lhs, I32:$cond)>;