@@ -348,8 +348,7 @@ def vbclr_h : PatFrag<(ops node:$ws, node:$wt),
348
348
def vbclr_w : PatFrag<(ops node:$ws, node:$wt),
349
349
(and node:$ws, (vnot (shl (vsplat_imm_eq_1), node:$wt)))>;
350
350
def vbclr_d : PatFrag<(ops node:$ws, node:$wt),
351
- (and node:$ws, (vnot (shl (v2i64 (vsplat_imm_eq_1)),
352
- node:$wt)))>;
351
+ (and node:$ws, (vnot (shl (vsplat_imm_eq_1), node:$wt)))>;
353
352
354
353
def vbneg_b : PatFrag<(ops node:$ws, node:$wt),
355
354
(xor node:$ws, (shl (vsplat_imm_eq_1), node:$wt))>;
@@ -358,8 +357,7 @@ def vbneg_h : PatFrag<(ops node:$ws, node:$wt),
358
357
def vbneg_w : PatFrag<(ops node:$ws, node:$wt),
359
358
(xor node:$ws, (shl (vsplat_imm_eq_1), node:$wt))>;
360
359
def vbneg_d : PatFrag<(ops node:$ws, node:$wt),
361
- (xor node:$ws, (shl (v2i64 (vsplat_imm_eq_1)),
362
- node:$wt))>;
360
+ (xor node:$ws, (shl (vsplat_imm_eq_1), node:$wt))>;
363
361
364
362
def vbset_b : PatFrag<(ops node:$ws, node:$wt),
365
363
(or node:$ws, (shl (vsplat_imm_eq_1), node:$wt))>;
@@ -368,8 +366,7 @@ def vbset_h : PatFrag<(ops node:$ws, node:$wt),
368
366
def vbset_w : PatFrag<(ops node:$ws, node:$wt),
369
367
(or node:$ws, (shl (vsplat_imm_eq_1), node:$wt))>;
370
368
def vbset_d : PatFrag<(ops node:$ws, node:$wt),
371
- (or node:$ws, (shl (v2i64 (vsplat_imm_eq_1)),
372
- node:$wt))>;
369
+ (or node:$ws, (shl (vsplat_imm_eq_1), node:$wt))>;
373
370
374
371
def muladd : PatFrag<(ops node:$wd, node:$ws, node:$wt),
375
372
(add node:$wd, (mul node:$ws, node:$wt))>;
@@ -3838,7 +3835,7 @@ multiclass MSABitPats<SDNode Node, string Insn> {
3838
3835
def : MSABitPat<Node, v16i8, !cast<MSAInst>(Insn#_B), vsplati8imm7>;
3839
3836
def : MSABitPat<Node, v8i16, !cast<MSAInst>(Insn#_H), vsplati16imm15>;
3840
3837
def : MSABitPat<Node, v4i32, !cast<MSAInst>(Insn#_W), vsplati32imm31>;
3841
- def : MSAPat<(Node v2i64:$ws, (shl (v2i64 ( vsplat_imm_eq_1) ),
3838
+ def : MSAPat<(Node v2i64:$ws, (shl (vsplat_imm_eq_1),
3842
3839
(vsplati64imm63 v2i64:$wt))),
3843
3840
(v2i64 (!cast<MSAInst>(Insn#_D) v2i64:$ws, v2i64:$wt))>;
3844
3841
}
@@ -3858,7 +3855,7 @@ def : MSAPat<(and v8i16:$ws, (vnot (shl (vsplat_imm_eq_1),
3858
3855
def : MSAPat<(and v4i32:$ws, (vnot (shl (vsplat_imm_eq_1),
3859
3856
(vsplati32imm31 v4i32:$wt)))),
3860
3857
(v4i32 (BCLR_W v4i32:$ws, v4i32:$wt))>;
3861
- def : MSAPat<(and v2i64:$ws, (vnot (shl (v2i64 ( vsplat_imm_eq_1) ),
3858
+ def : MSAPat<(and v2i64:$ws, (vnot (shl (vsplat_imm_eq_1),
3862
3859
(vsplati64imm63 v2i64:$wt)))),
3863
3860
(v2i64 (BCLR_D v2i64:$ws, v2i64:$wt))>;
3864
3861
0 commit comments