Lines Matching refs:rhs

41 // DAGCombine oddly folds casts into the rhs of copysign. Unfold them.
42 def : Pat<(fcopysign F64:$lhs, F32:$rhs),
43 (COPYSIGN_F64 F64:$lhs, (F64_PROMOTE_F32 F32:$rhs))>;
44 def : Pat<(fcopysign F32:$lhs, F64:$rhs),
45 (COPYSIGN_F32 F32:$lhs, (F32_DEMOTE_F64 F64:$rhs))>;
65 def : Pat<(seteq f32:$lhs, f32:$rhs), (EQ_F32 f32:$lhs, f32:$rhs)>;
66 def : Pat<(setne f32:$lhs, f32:$rhs), (NE_F32 f32:$lhs, f32:$rhs)>;
67 def : Pat<(setlt f32:$lhs, f32:$rhs), (LT_F32 f32:$lhs, f32:$rhs)>;
68 def : Pat<(setle f32:$lhs, f32:$rhs), (LE_F32 f32:$lhs, f32:$rhs)>;
69 def : Pat<(setgt f32:$lhs, f32:$rhs), (GT_F32 f32:$lhs, f32:$rhs)>;
70 def : Pat<(setge f32:$lhs, f32:$rhs), (GE_F32 f32:$lhs, f32:$rhs)>;
71 def : Pat<(seteq f64:$lhs, f64:$rhs), (EQ_F64 f64:$lhs, f64:$rhs)>;
72 def : Pat<(setne f64:$lhs, f64:$rhs), (NE_F64 f64:$lhs, f64:$rhs)>;
73 def : Pat<(setlt f64:$lhs, f64:$rhs), (LT_F64 f64:$lhs, f64:$rhs)>;
74 def : Pat<(setle f64:$lhs, f64:$rhs), (LE_F64 f64:$lhs, f64:$rhs)>;
75 def : Pat<(setgt f64:$lhs, f64:$rhs), (GT_F64 f64:$lhs, f64:$rhs)>;
76 def : Pat<(setge f64:$lhs, f64:$rhs), (GE_F64 f64:$lhs, f64:$rhs)>;
80 def SELECT_F32 : I<(outs F32:$dst), (ins I32:$cond, F32:$lhs, F32:$rhs),
81 [(set F32:$dst, (select I32:$cond, F32:$lhs, F32:$rhs))],
82 "f32.select\t$dst, $cond, $lhs, $rhs">;
83 def SELECT_F64 : I<(outs F64:$dst), (ins I32:$cond, F64:$lhs, F64:$rhs),
84 [(set F64:$dst, (select I32:$cond, F64:$lhs, F64:$rhs))],
85 "f64.select\t$dst, $cond, $lhs, $rhs">;
92 def : Pat<(select (i32 (setne I32:$cond, 0)), F32:$lhs, F32:$rhs),
93 (SELECT_F32 I32:$cond, F32:$lhs, F32:$rhs)>;
94 def : Pat<(select (i32 (setne I32:$cond, 0)), F64:$lhs, F64:$rhs),
95 (SELECT_F64 I32:$cond, F64:$lhs, F64:$rhs)>;
98 def : Pat<(select (i32 (seteq I32:$cond, 0)), F32:$lhs, F32:$rhs),
99 (SELECT_F32 I32:$cond, F32:$rhs, F32:$lhs)>;
100 def : Pat<(select (i32 (seteq I32:$cond, 0)), F64:$lhs, F64:$rhs),
101 (SELECT_F64 I32:$cond, F64:$rhs, F64:$lhs)>;