Commit 5548f7d5 authored by Josh Bleecher Snyder's avatar Josh Bleecher Snyder

cmd/compile: eliminate some bounds checks from generated rewrite rules

Noticed while looking at #20356.

Cuts 160k (1%) off of the cmd/compile binary.

Change-Id: If2397bc6971d6be9be6975048adecb0b5efa6d66
Reviewed-on: https://go-review.googlesource.com/43501
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: default avatarKeith Randall <khr@golang.org>
parent 4b0d74f8
......@@ -442,6 +442,9 @@ func genMatch0(w io.Writer, arch arch, match, v string, m map[string]struct{}, t
}
}
if n := len(args); n > 1 {
fmt.Fprintf(w, "_ = %s.Args[%d]\n", v, n-1) // combine some bounds checks
}
for i, arg := range args {
if arg == "_" {
continue
......
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -513,6 +513,7 @@ func rewriteValueMIPS_OpAdd16_0(v *Value) bool {
// cond:
// result: (ADD x y)
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPSADD)
......@@ -526,6 +527,7 @@ func rewriteValueMIPS_OpAdd32_0(v *Value) bool {
// cond:
// result: (ADD x y)
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPSADD)
......@@ -539,6 +541,7 @@ func rewriteValueMIPS_OpAdd32F_0(v *Value) bool {
// cond:
// result: (ADDF x y)
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPSADDF)
......@@ -555,6 +558,7 @@ func rewriteValueMIPS_OpAdd32withcarry_0(v *Value) bool {
// result: (ADD c (ADD <t> x y))
for {
t := v.Type
_ = v.Args[2]
x := v.Args[0]
y := v.Args[1]
c := v.Args[2]
......@@ -572,6 +576,7 @@ func rewriteValueMIPS_OpAdd64F_0(v *Value) bool {
// cond:
// result: (ADDD x y)
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPSADDD)
......@@ -585,6 +590,7 @@ func rewriteValueMIPS_OpAdd8_0(v *Value) bool {
// cond:
// result: (ADD x y)
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPSADD)
......@@ -598,6 +604,7 @@ func rewriteValueMIPS_OpAddPtr_0(v *Value) bool {
// cond:
// result: (ADD x y)
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPSADD)
......@@ -624,6 +631,7 @@ func rewriteValueMIPS_OpAnd16_0(v *Value) bool {
// cond:
// result: (AND x y)
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPSAND)
......@@ -637,6 +645,7 @@ func rewriteValueMIPS_OpAnd32_0(v *Value) bool {
// cond:
// result: (AND x y)
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPSAND)
......@@ -650,6 +659,7 @@ func rewriteValueMIPS_OpAnd8_0(v *Value) bool {
// cond:
// result: (AND x y)
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPSAND)
......@@ -663,6 +673,7 @@ func rewriteValueMIPS_OpAndB_0(v *Value) bool {
// cond:
// result: (AND x y)
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPSAND)
......@@ -676,6 +687,7 @@ func rewriteValueMIPS_OpAtomicAdd32_0(v *Value) bool {
// cond:
// result: (LoweredAtomicAdd ptr val mem)
for {
_ = v.Args[2]
ptr := v.Args[0]
val := v.Args[1]
mem := v.Args[2]
......@@ -697,6 +709,7 @@ func rewriteValueMIPS_OpAtomicAnd8_0(v *Value) bool {
// cond: !config.BigEndian
// result: (LoweredAtomicAnd (AND <typ.UInt32Ptr> (MOVWconst [^3]) ptr) (OR <typ.UInt32> (SLL <typ.UInt32> (ZeroExt8to32 val) (SLLconst <typ.UInt32> [3] (ANDconst <typ.UInt32> [3] ptr))) (NORconst [0] <typ.UInt32> (SLL <typ.UInt32> (MOVWconst [0xff]) (SLLconst <typ.UInt32> [3] (ANDconst <typ.UInt32> [3] ptr))))) mem)
for {
_ = v.Args[2]
ptr := v.Args[0]
val := v.Args[1]
mem := v.Args[2]
......@@ -746,6 +759,7 @@ func rewriteValueMIPS_OpAtomicAnd8_0(v *Value) bool {
// cond: config.BigEndian
// result: (LoweredAtomicAnd (AND <typ.UInt32Ptr> (MOVWconst [^3]) ptr) (OR <typ.UInt32> (SLL <typ.UInt32> (ZeroExt8to32 val) (SLLconst <typ.UInt32> [3] (ANDconst <typ.UInt32> [3] (XORconst <typ.UInt32> [3] ptr)))) (NORconst [0] <typ.UInt32> (SLL <typ.UInt32> (MOVWconst [0xff]) (SLLconst <typ.UInt32> [3] (ANDconst <typ.UInt32> [3] (XORconst <typ.UInt32> [3] ptr)))))) mem)
for {
_ = v.Args[2]
ptr := v.Args[0]
val := v.Args[1]
mem := v.Args[2]
......@@ -804,6 +818,7 @@ func rewriteValueMIPS_OpAtomicCompareAndSwap32_0(v *Value) bool {
// cond:
// result: (LoweredAtomicCas ptr old new_ mem)
for {
_ = v.Args[3]
ptr := v.Args[0]
old := v.Args[1]
new_ := v.Args[2]
......@@ -821,6 +836,7 @@ func rewriteValueMIPS_OpAtomicExchange32_0(v *Value) bool {
// cond:
// result: (LoweredAtomicExchange ptr val mem)
for {
_ = v.Args[2]
ptr := v.Args[0]
val := v.Args[1]
mem := v.Args[2]
......@@ -836,6 +852,7 @@ func rewriteValueMIPS_OpAtomicLoad32_0(v *Value) bool {
// cond:
// result: (LoweredAtomicLoad ptr mem)
for {
_ = v.Args[1]
ptr := v.Args[0]
mem := v.Args[1]
v.reset(OpMIPSLoweredAtomicLoad)
......@@ -849,6 +866,7 @@ func rewriteValueMIPS_OpAtomicLoadPtr_0(v *Value) bool {
// cond:
// result: (LoweredAtomicLoad ptr mem)
for {
_ = v.Args[1]
ptr := v.Args[0]
mem := v.Args[1]
v.reset(OpMIPSLoweredAtomicLoad)
......@@ -868,6 +886,7 @@ func rewriteValueMIPS_OpAtomicOr8_0(v *Value) bool {
// cond: !config.BigEndian
// result: (LoweredAtomicOr (AND <typ.UInt32Ptr> (MOVWconst [^3]) ptr) (SLL <typ.UInt32> (ZeroExt8to32 val) (SLLconst <typ.UInt32> [3] (ANDconst <typ.UInt32> [3] ptr))) mem)
for {
_ = v.Args[2]
ptr := v.Args[0]
val := v.Args[1]
mem := v.Args[2]
......@@ -900,6 +919,7 @@ func rewriteValueMIPS_OpAtomicOr8_0(v *Value) bool {
// cond: config.BigEndian
// result: (LoweredAtomicOr (AND <typ.UInt32Ptr> (MOVWconst [^3]) ptr) (SLL <typ.UInt32> (ZeroExt8to32 val) (SLLconst <typ.UInt32> [3] (ANDconst <typ.UInt32> [3] (XORconst <typ.UInt32> [3] ptr)))) mem)
for {
_ = v.Args[2]
ptr := v.Args[0]
val := v.Args[1]
mem := v.Args[2]
......@@ -938,6 +958,7 @@ func rewriteValueMIPS_OpAtomicStore32_0(v *Value) bool {
// cond:
// result: (LoweredAtomicStore ptr val mem)
for {
_ = v.Args[2]
ptr := v.Args[0]
val := v.Args[1]
mem := v.Args[2]
......@@ -953,6 +974,7 @@ func rewriteValueMIPS_OpAtomicStorePtrNoWB_0(v *Value) bool {
// cond:
// result: (LoweredAtomicStore ptr val mem)
for {
_ = v.Args[2]
ptr := v.Args[0]
val := v.Args[1]
mem := v.Args[2]
......@@ -971,6 +993,7 @@ func rewriteValueMIPS_OpAvg32u_0(v *Value) bool {
// result: (ADD (SRLconst <t> (SUB <t> x y) [1]) y)
for {
t := v.Type
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPSADD)
......@@ -1012,6 +1035,7 @@ func rewriteValueMIPS_OpClosureCall_0(v *Value) bool {
// result: (CALLclosure [argwid] entry closure mem)
for {
argwid := v.AuxInt
_ = v.Args[2]
entry := v.Args[0]
closure := v.Args[1]
mem := v.Args[2]
......@@ -1140,6 +1164,7 @@ func rewriteValueMIPS_OpConvert_0(v *Value) bool {
// cond:
// result: (MOVWconvert x mem)
for {
_ = v.Args[1]
x := v.Args[0]
mem := v.Args[1]
v.reset(OpMIPSMOVWconvert)
......@@ -1252,6 +1277,7 @@ func rewriteValueMIPS_OpDiv16_0(v *Value) bool {
// cond:
// result: (Select1 (DIV (SignExt16to32 x) (SignExt16to32 y)))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpSelect1)
......@@ -1275,6 +1301,7 @@ func rewriteValueMIPS_OpDiv16u_0(v *Value) bool {
// cond:
// result: (Select1 (DIVU (ZeroExt16to32 x) (ZeroExt16to32 y)))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpSelect1)
......@@ -1298,6 +1325,7 @@ func rewriteValueMIPS_OpDiv32_0(v *Value) bool {
// cond:
// result: (Select1 (DIV x y))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpSelect1)
......@@ -1313,6 +1341,7 @@ func rewriteValueMIPS_OpDiv32F_0(v *Value) bool {
// cond:
// result: (DIVF x y)
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPSDIVF)
......@@ -1330,6 +1359,7 @@ func rewriteValueMIPS_OpDiv32u_0(v *Value) bool {
// cond:
// result: (Select1 (DIVU x y))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpSelect1)
......@@ -1345,6 +1375,7 @@ func rewriteValueMIPS_OpDiv64F_0(v *Value) bool {
// cond:
// result: (DIVD x y)
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPSDIVD)
......@@ -1362,6 +1393,7 @@ func rewriteValueMIPS_OpDiv8_0(v *Value) bool {
// cond:
// result: (Select1 (DIV (SignExt8to32 x) (SignExt8to32 y)))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpSelect1)
......@@ -1385,6 +1417,7 @@ func rewriteValueMIPS_OpDiv8u_0(v *Value) bool {
// cond:
// result: (Select1 (DIVU (ZeroExt8to32 x) (ZeroExt8to32 y)))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpSelect1)
......@@ -1408,6 +1441,7 @@ func rewriteValueMIPS_OpEq16_0(v *Value) bool {
// cond:
// result: (SGTUconst [1] (XOR (ZeroExt16to32 x) (ZeroExt16to32 y)))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPSSGTUconst)
......@@ -1432,6 +1466,7 @@ func rewriteValueMIPS_OpEq32_0(v *Value) bool {
// cond:
// result: (SGTUconst [1] (XOR x y))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPSSGTUconst)
......@@ -1450,6 +1485,7 @@ func rewriteValueMIPS_OpEq32F_0(v *Value) bool {
// cond:
// result: (FPFlagTrue (CMPEQF x y))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPSFPFlagTrue)
......@@ -1467,6 +1503,7 @@ func rewriteValueMIPS_OpEq64F_0(v *Value) bool {
// cond:
// result: (FPFlagTrue (CMPEQD x y))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPSFPFlagTrue)
......@@ -1486,6 +1523,7 @@ func rewriteValueMIPS_OpEq8_0(v *Value) bool {
// cond:
// result: (SGTUconst [1] (XOR (ZeroExt8to32 x) (ZeroExt8to32 y)))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPSSGTUconst)
......@@ -1510,6 +1548,7 @@ func rewriteValueMIPS_OpEqB_0(v *Value) bool {
// cond:
// result: (XORconst [1] (XOR <typ.Bool> x y))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPSXORconst)
......@@ -1530,6 +1569,7 @@ func rewriteValueMIPS_OpEqPtr_0(v *Value) bool {
// cond:
// result: (SGTUconst [1] (XOR x y))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPSSGTUconst)
......@@ -1550,6 +1590,7 @@ func rewriteValueMIPS_OpGeq16_0(v *Value) bool {
// cond:
// result: (XORconst [1] (SGT (SignExt16to32 y) (SignExt16to32 x)))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPSXORconst)
......@@ -1574,6 +1615,7 @@ func rewriteValueMIPS_OpGeq16U_0(v *Value) bool {
// cond:
// result: (XORconst [1] (SGTU (ZeroExt16to32 y) (ZeroExt16to32 x)))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPSXORconst)
......@@ -1598,6 +1640,7 @@ func rewriteValueMIPS_OpGeq32_0(v *Value) bool {
// cond:
// result: (XORconst [1] (SGT y x))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPSXORconst)
......@@ -1616,6 +1659,7 @@ func rewriteValueMIPS_OpGeq32F_0(v *Value) bool {
// cond:
// result: (FPFlagTrue (CMPGEF x y))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPSFPFlagTrue)
......@@ -1635,6 +1679,7 @@ func rewriteValueMIPS_OpGeq32U_0(v *Value) bool {
// cond:
// result: (XORconst [1] (SGTU y x))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPSXORconst)
......@@ -1653,6 +1698,7 @@ func rewriteValueMIPS_OpGeq64F_0(v *Value) bool {
// cond:
// result: (FPFlagTrue (CMPGED x y))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPSFPFlagTrue)
......@@ -1672,6 +1718,7 @@ func rewriteValueMIPS_OpGeq8_0(v *Value) bool {
// cond:
// result: (XORconst [1] (SGT (SignExt8to32 y) (SignExt8to32 x)))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPSXORconst)
......@@ -1696,6 +1743,7 @@ func rewriteValueMIPS_OpGeq8U_0(v *Value) bool {
// cond:
// result: (XORconst [1] (SGTU (ZeroExt8to32 y) (ZeroExt8to32 x)))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPSXORconst)
......@@ -1729,6 +1777,7 @@ func rewriteValueMIPS_OpGreater16_0(v *Value) bool {
// cond:
// result: (SGT (SignExt16to32 x) (SignExt16to32 y))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPSSGT)
......@@ -1750,6 +1799,7 @@ func rewriteValueMIPS_OpGreater16U_0(v *Value) bool {
// cond:
// result: (SGTU (ZeroExt16to32 x) (ZeroExt16to32 y))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPSSGTU)
......@@ -1767,6 +1817,7 @@ func rewriteValueMIPS_OpGreater32_0(v *Value) bool {
// cond:
// result: (SGT x y)
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPSSGT)
......@@ -1782,6 +1833,7 @@ func rewriteValueMIPS_OpGreater32F_0(v *Value) bool {
// cond:
// result: (FPFlagTrue (CMPGTF x y))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPSFPFlagTrue)
......@@ -1797,6 +1849,7 @@ func rewriteValueMIPS_OpGreater32U_0(v *Value) bool {
// cond:
// result: (SGTU x y)
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPSSGTU)
......@@ -1812,6 +1865,7 @@ func rewriteValueMIPS_OpGreater64F_0(v *Value) bool {
// cond:
// result: (FPFlagTrue (CMPGTD x y))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPSFPFlagTrue)
......@@ -1831,6 +1885,7 @@ func rewriteValueMIPS_OpGreater8_0(v *Value) bool {
// cond:
// result: (SGT (SignExt8to32 x) (SignExt8to32 y))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPSSGT)
......@@ -1852,6 +1907,7 @@ func rewriteValueMIPS_OpGreater8U_0(v *Value) bool {
// cond:
// result: (SGTU (ZeroExt8to32 x) (ZeroExt8to32 y))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPSSGTU)
......@@ -1873,6 +1929,7 @@ func rewriteValueMIPS_OpHmul32_0(v *Value) bool {
// cond:
// result: (Select0 (MULT x y))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpSelect0)
......@@ -1892,6 +1949,7 @@ func rewriteValueMIPS_OpHmul32u_0(v *Value) bool {
// cond:
// result: (Select0 (MULTU x y))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpSelect0)
......@@ -1908,6 +1966,7 @@ func rewriteValueMIPS_OpInterCall_0(v *Value) bool {
// result: (CALLinter [argwid] entry mem)
for {
argwid := v.AuxInt
_ = v.Args[1]
entry := v.Args[0]
mem := v.Args[1]
v.reset(OpMIPSCALLinter)
......@@ -1922,6 +1981,7 @@ func rewriteValueMIPS_OpIsInBounds_0(v *Value) bool {
// cond:
// result: (SGTU len idx)
for {
_ = v.Args[1]
idx := v.Args[0]
len := v.Args[1]
v.reset(OpMIPSSGTU)
......@@ -1957,6 +2017,7 @@ func rewriteValueMIPS_OpIsSliceInBounds_0(v *Value) bool {
// cond:
// result: (XORconst [1] (SGTU idx len))
for {
_ = v.Args[1]
idx := v.Args[0]
len := v.Args[1]
v.reset(OpMIPSXORconst)
......@@ -1977,6 +2038,7 @@ func rewriteValueMIPS_OpLeq16_0(v *Value) bool {
// cond:
// result: (XORconst [1] (SGT (SignExt16to32 x) (SignExt16to32 y)))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPSXORconst)
......@@ -2001,6 +2063,7 @@ func rewriteValueMIPS_OpLeq16U_0(v *Value) bool {
// cond:
// result: (XORconst [1] (SGTU (ZeroExt16to32 x) (ZeroExt16to32 y)))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPSXORconst)
......@@ -2025,6 +2088,7 @@ func rewriteValueMIPS_OpLeq32_0(v *Value) bool {
// cond:
// result: (XORconst [1] (SGT x y))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPSXORconst)
......@@ -2043,6 +2107,7 @@ func rewriteValueMIPS_OpLeq32F_0(v *Value) bool {
// cond:
// result: (FPFlagTrue (CMPGEF y x))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPSFPFlagTrue)
......@@ -2062,6 +2127,7 @@ func rewriteValueMIPS_OpLeq32U_0(v *Value) bool {
// cond:
// result: (XORconst [1] (SGTU x y))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPSXORconst)
......@@ -2080,6 +2146,7 @@ func rewriteValueMIPS_OpLeq64F_0(v *Value) bool {
// cond:
// result: (FPFlagTrue (CMPGED y x))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPSFPFlagTrue)
......@@ -2099,6 +2166,7 @@ func rewriteValueMIPS_OpLeq8_0(v *Value) bool {
// cond:
// result: (XORconst [1] (SGT (SignExt8to32 x) (SignExt8to32 y)))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPSXORconst)
......@@ -2123,6 +2191,7 @@ func rewriteValueMIPS_OpLeq8U_0(v *Value) bool {
// cond:
// result: (XORconst [1] (SGTU (ZeroExt8to32 x) (ZeroExt8to32 y)))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPSXORconst)
......@@ -2147,6 +2216,7 @@ func rewriteValueMIPS_OpLess16_0(v *Value) bool {
// cond:
// result: (SGT (SignExt16to32 y) (SignExt16to32 x))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPSSGT)
......@@ -2168,6 +2238,7 @@ func rewriteValueMIPS_OpLess16U_0(v *Value) bool {
// cond:
// result: (SGTU (ZeroExt16to32 y) (ZeroExt16to32 x))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPSSGTU)
......@@ -2185,6 +2256,7 @@ func rewriteValueMIPS_OpLess32_0(v *Value) bool {
// cond:
// result: (SGT y x)
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPSSGT)
......@@ -2200,6 +2272,7 @@ func rewriteValueMIPS_OpLess32F_0(v *Value) bool {
// cond:
// result: (FPFlagTrue (CMPGTF y x))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPSFPFlagTrue)
......@@ -2215,6 +2288,7 @@ func rewriteValueMIPS_OpLess32U_0(v *Value) bool {
// cond:
// result: (SGTU y x)
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPSSGTU)
......@@ -2230,6 +2304,7 @@ func rewriteValueMIPS_OpLess64F_0(v *Value) bool {
// cond:
// result: (FPFlagTrue (CMPGTD y x))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPSFPFlagTrue)
......@@ -2249,6 +2324,7 @@ func rewriteValueMIPS_OpLess8_0(v *Value) bool {
// cond:
// result: (SGT (SignExt8to32 y) (SignExt8to32 x))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPSSGT)
......@@ -2270,6 +2346,7 @@ func rewriteValueMIPS_OpLess8U_0(v *Value) bool {
// cond:
// result: (SGTU (ZeroExt8to32 y) (ZeroExt8to32 x))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPSSGTU)
......@@ -2288,6 +2365,7 @@ func rewriteValueMIPS_OpLoad_0(v *Value) bool {
// result: (MOVBUload ptr mem)
for {
t := v.Type
_ = v.Args[1]
ptr := v.Args[0]
mem := v.Args[1]
if !(t.IsBoolean()) {
......@@ -2303,6 +2381,7 @@ func rewriteValueMIPS_OpLoad_0(v *Value) bool {
// result: (MOVBload ptr mem)
for {
t := v.Type
_ = v.Args[1]
ptr := v.Args[0]
mem := v.Args[1]
if !(is8BitInt(t) && isSigned(t)) {
......@@ -2318,6 +2397,7 @@ func rewriteValueMIPS_OpLoad_0(v *Value) bool {
// result: (MOVBUload ptr mem)
for {
t := v.Type
_ = v.Args[1]
ptr := v.Args[0]
mem := v.Args[1]
if !(is8BitInt(t) && !isSigned(t)) {
......@@ -2333,6 +2413,7 @@ func rewriteValueMIPS_OpLoad_0(v *Value) bool {
// result: (MOVHload ptr mem)
for {
t := v.Type
_ = v.Args[1]
ptr := v.Args[0]
mem := v.Args[1]
if !(is16BitInt(t) && isSigned(t)) {
......@@ -2348,6 +2429,7 @@ func rewriteValueMIPS_OpLoad_0(v *Value) bool {
// result: (MOVHUload ptr mem)
for {
t := v.Type
_ = v.Args[1]
ptr := v.Args[0]
mem := v.Args[1]
if !(is16BitInt(t) && !isSigned(t)) {
......@@ -2363,6 +2445,7 @@ func rewriteValueMIPS_OpLoad_0(v *Value) bool {
// result: (MOVWload ptr mem)
for {
t := v.Type
_ = v.Args[1]
ptr := v.Args[0]
mem := v.Args[1]
if !(is32BitInt(t) || isPtr(t)) {
......@@ -2378,6 +2461,7 @@ func rewriteValueMIPS_OpLoad_0(v *Value) bool {
// result: (MOVFload ptr mem)
for {
t := v.Type
_ = v.Args[1]
ptr := v.Args[0]
mem := v.Args[1]
if !(is32BitFloat(t)) {
......@@ -2393,6 +2477,7 @@ func rewriteValueMIPS_OpLoad_0(v *Value) bool {
// result: (MOVDload ptr mem)
for {
t := v.Type
_ = v.Args[1]
ptr := v.Args[0]
mem := v.Args[1]
if !(is64BitFloat(t)) {
......@@ -2415,6 +2500,7 @@ func rewriteValueMIPS_OpLsh16x16_0(v *Value) bool {
// result: (CMOVZ (SLL <t> x (ZeroExt16to32 y) ) (MOVWconst [0]) (SGTUconst [32] (ZeroExt16to32 y)))
for {
t := v.Type
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPSCMOVZ)
......@@ -2446,6 +2532,7 @@ func rewriteValueMIPS_OpLsh16x32_0(v *Value) bool {
// result: (CMOVZ (SLL <t> x y) (MOVWconst [0]) (SGTUconst [32] y))
for {
t := v.Type
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPSCMOVZ)
......@@ -2468,6 +2555,7 @@ func rewriteValueMIPS_OpLsh16x64_0(v *Value) bool {
// cond: uint32(c) < 16
// result: (SLLconst x [c])
for {
_ = v.Args[1]
x := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpConst64 {
......@@ -2486,6 +2574,7 @@ func rewriteValueMIPS_OpLsh16x64_0(v *Value) bool {
// cond: uint32(c) >= 16
// result: (MOVWconst [0])
for {
_ = v.Args[1]
v_1 := v.Args[1]
if v_1.Op != OpConst64 {
break
......@@ -2510,6 +2599,7 @@ func rewriteValueMIPS_OpLsh16x8_0(v *Value) bool {
// result: (CMOVZ (SLL <t> x (ZeroExt8to32 y) ) (MOVWconst [0]) (SGTUconst [32] (ZeroExt8to32 y)))
for {
t := v.Type
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPSCMOVZ)
......@@ -2541,6 +2631,7 @@ func rewriteValueMIPS_OpLsh32x16_0(v *Value) bool {
// result: (CMOVZ (SLL <t> x (ZeroExt16to32 y) ) (MOVWconst [0]) (SGTUconst [32] (ZeroExt16to32 y)))
for {
t := v.Type
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPSCMOVZ)
......@@ -2572,6 +2663,7 @@ func rewriteValueMIPS_OpLsh32x32_0(v *Value) bool {
// result: (CMOVZ (SLL <t> x y) (MOVWconst [0]) (SGTUconst [32] y))
for {
t := v.Type
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPSCMOVZ)
......@@ -2594,6 +2686,7 @@ func rewriteValueMIPS_OpLsh32x64_0(v *Value) bool {
// cond: uint32(c) < 32
// result: (SLLconst x [c])
for {
_ = v.Args[1]
x := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpConst64 {
......@@ -2612,6 +2705,7 @@ func rewriteValueMIPS_OpLsh32x64_0(v *Value) bool {
// cond: uint32(c) >= 32
// result: (MOVWconst [0])
for {
_ = v.Args[1]
v_1 := v.Args[1]
if v_1.Op != OpConst64 {
break
......@@ -2636,6 +2730,7 @@ func rewriteValueMIPS_OpLsh32x8_0(v *Value) bool {
// result: (CMOVZ (SLL <t> x (ZeroExt8to32 y) ) (MOVWconst [0]) (SGTUconst [32] (ZeroExt8to32 y)))
for {
t := v.Type
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPSCMOVZ)
......@@ -2667,6 +2762,7 @@ func rewriteValueMIPS_OpLsh8x16_0(v *Value) bool {
// result: (CMOVZ (SLL <t> x (ZeroExt16to32 y) ) (MOVWconst [0]) (SGTUconst [32] (ZeroExt16to32 y)))
for {
t := v.Type
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPSCMOVZ)
......@@ -2698,6 +2794,7 @@ func rewriteValueMIPS_OpLsh8x32_0(v *Value) bool {
// result: (CMOVZ (SLL <t> x y) (MOVWconst [0]) (SGTUconst [32] y))
for {
t := v.Type
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPSCMOVZ)
......@@ -2720,6 +2817,7 @@ func rewriteValueMIPS_OpLsh8x64_0(v *Value) bool {
// cond: uint32(c) < 8
// result: (SLLconst x [c])
for {
_ = v.Args[1]
x := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpConst64 {
......@@ -2738,6 +2836,7 @@ func rewriteValueMIPS_OpLsh8x64_0(v *Value) bool {
// cond: uint32(c) >= 8
// result: (MOVWconst [0])
for {
_ = v.Args[1]
v_1 := v.Args[1]
if v_1.Op != OpConst64 {
break
......@@ -2762,6 +2861,7 @@ func rewriteValueMIPS_OpLsh8x8_0(v *Value) bool {
// result: (CMOVZ (SLL <t> x (ZeroExt8to32 y) ) (MOVWconst [0]) (SGTUconst [32] (ZeroExt8to32 y)))
for {
t := v.Type
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPSCMOVZ)
......@@ -2788,6 +2888,7 @@ func rewriteValueMIPS_OpMIPSADD_0(v *Value) bool {
// cond:
// result: (ADDconst [c] x)
for {
_ = v.Args[1]
x := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpMIPSMOVWconst {
......@@ -2803,6 +2904,7 @@ func rewriteValueMIPS_OpMIPSADD_0(v *Value) bool {
// cond:
// result: (ADDconst [c] x)
for {
_ = v.Args[1]
v_0 := v.Args[0]
if v_0.Op != OpMIPSMOVWconst {
break
......@@ -2818,6 +2920,7 @@ func rewriteValueMIPS_OpMIPSADD_0(v *Value) bool {
// cond:
// result: (SUB x y)
for {
_ = v.Args[1]
x := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpMIPSNEG {
......@@ -2833,6 +2936,7 @@ func rewriteValueMIPS_OpMIPSADD_0(v *Value) bool {
// cond:
// result: (SUB x y)
for {
_ = v.Args[1]
v_0 := v.Args[0]
if v_0.Op != OpMIPSNEG {
break
......@@ -2933,6 +3037,7 @@ func rewriteValueMIPS_OpMIPSAND_0(v *Value) bool {
// cond:
// result: (ANDconst [c] x)
for {
_ = v.Args[1]
x := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpMIPSMOVWconst {
......@@ -2948,6 +3053,7 @@ func rewriteValueMIPS_OpMIPSAND_0(v *Value) bool {
// cond:
// result: (ANDconst [c] x)
for {
_ = v.Args[1]
v_0 := v.Args[0]
if v_0.Op != OpMIPSMOVWconst {
break
......@@ -2963,6 +3069,7 @@ func rewriteValueMIPS_OpMIPSAND_0(v *Value) bool {
// cond:
// result: x
for {
_ = v.Args[1]
x := v.Args[0]
if x != v.Args[1] {
break
......@@ -2976,6 +3083,7 @@ func rewriteValueMIPS_OpMIPSAND_0(v *Value) bool {
// cond:
// result: (SGTUconst [1] (OR <x.Type> x y))
for {
_ = v.Args[1]
v_0 := v.Args[0]
if v_0.Op != OpMIPSSGTUconst {
break
......@@ -3004,6 +3112,7 @@ func rewriteValueMIPS_OpMIPSAND_0(v *Value) bool {
// cond:
// result: (SGTUconst [1] (OR <x.Type> x y))
for {
_ = v.Args[1]
v_0 := v.Args[0]
if v_0.Op != OpMIPSSGTUconst {
break
......@@ -3094,6 +3203,7 @@ func rewriteValueMIPS_OpMIPSCMOVZ_0(v *Value) bool {
// cond:
// result: b
for {
_ = v.Args[2]
b := v.Args[1]
v_2 := v.Args[2]
if v_2.Op != OpMIPSMOVWconst {
......@@ -3111,6 +3221,7 @@ func rewriteValueMIPS_OpMIPSCMOVZ_0(v *Value) bool {
// cond: c!=0
// result: a
for {
_ = v.Args[2]
a := v.Args[0]
v_2 := v.Args[2]
if v_2.Op != OpMIPSMOVWconst {
......@@ -3129,6 +3240,7 @@ func rewriteValueMIPS_OpMIPSCMOVZ_0(v *Value) bool {
// cond:
// result: (CMOVZzero a c)
for {
_ = v.Args[2]
a := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpMIPSMOVWconst {
......@@ -3150,6 +3262,7 @@ func rewriteValueMIPS_OpMIPSCMOVZzero_0(v *Value) bool {
// cond:
// result: (MOVWconst [0])
for {
_ = v.Args[1]
v_1 := v.Args[1]
if v_1.Op != OpMIPSMOVWconst {
break
......@@ -3165,6 +3278,7 @@ func rewriteValueMIPS_OpMIPSCMOVZzero_0(v *Value) bool {
// cond: c!=0
// result: a
for {
_ = v.Args[1]
a := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpMIPSMOVWconst {
......@@ -3186,6 +3300,7 @@ func rewriteValueMIPS_OpMIPSLoweredAtomicAdd_0(v *Value) bool {
// cond: is16Bit(c)
// result: (LoweredAtomicAddconst [c] ptr mem)
for {
_ = v.Args[2]
ptr := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpMIPSMOVWconst {
......@@ -3209,6 +3324,7 @@ func rewriteValueMIPS_OpMIPSLoweredAtomicStore_0(v *Value) bool {
// cond:
// result: (LoweredAtomicStorezero ptr mem)
for {
_ = v.Args[2]
ptr := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpMIPSMOVWconst {
......@@ -3232,6 +3348,7 @@ func rewriteValueMIPS_OpMIPSMOVBUload_0(v *Value) bool {
for {
off1 := v.AuxInt
sym := v.Aux
_ = v.Args[1]
x := v.Args[0]
if x.Op != OpMIPSADDconst {
break
......@@ -3255,6 +3372,7 @@ func rewriteValueMIPS_OpMIPSMOVBUload_0(v *Value) bool {
for {
off1 := v.AuxInt
sym1 := v.Aux
_ = v.Args[1]
v_0 := v.Args[0]
if v_0.Op != OpMIPSMOVWaddr {
break
......@@ -3279,6 +3397,7 @@ func rewriteValueMIPS_OpMIPSMOVBUload_0(v *Value) bool {
for {
off := v.AuxInt
sym := v.Aux
_ = v.Args[1]
ptr := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpMIPSMOVBstore {
......@@ -3286,6 +3405,7 @@ func rewriteValueMIPS_OpMIPSMOVBUload_0(v *Value) bool {
}
off2 := v_1.AuxInt
sym2 := v_1.Aux
_ = v_1.Args[2]
ptr2 := v_1.Args[0]
x := v_1.Args[1]
if !(sym == sym2 && off == off2 && isSamePtr(ptr, ptr2) && !isSigned(x.Type)) {
......@@ -3309,6 +3429,7 @@ func rewriteValueMIPS_OpMIPSMOVBUreg_0(v *Value) bool {
if x.Op != OpMIPSMOVBUload {
break
}
_ = x.Args[1]
v.reset(OpMIPSMOVWreg)
v.AddArg(x)
return true
......@@ -3336,6 +3457,7 @@ func rewriteValueMIPS_OpMIPSMOVBUreg_0(v *Value) bool {
}
off := x.AuxInt
sym := x.Aux
_ = x.Args[1]
ptr := x.Args[0]
mem := x.Args[1]
if !(x.Uses == 1 && clobber(x)) {
......@@ -3388,6 +3510,7 @@ func rewriteValueMIPS_OpMIPSMOVBload_0(v *Value) bool {
for {
off1 := v.AuxInt
sym := v.Aux
_ = v.Args[1]
x := v.Args[0]
if x.Op != OpMIPSADDconst {
break
......@@ -3411,6 +3534,7 @@ func rewriteValueMIPS_OpMIPSMOVBload_0(v *Value) bool {
for {
off1 := v.AuxInt
sym1 := v.Aux
_ = v.Args[1]
v_0 := v.Args[0]
if v_0.Op != OpMIPSMOVWaddr {
break
......@@ -3435,6 +3559,7 @@ func rewriteValueMIPS_OpMIPSMOVBload_0(v *Value) bool {
for {
off := v.AuxInt
sym := v.Aux
_ = v.Args[1]
ptr := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpMIPSMOVBstore {
......@@ -3442,6 +3567,7 @@ func rewriteValueMIPS_OpMIPSMOVBload_0(v *Value) bool {
}
off2 := v_1.AuxInt
sym2 := v_1.Aux
_ = v_1.Args[2]
ptr2 := v_1.Args[0]
x := v_1.Args[1]
if !(sym == sym2 && off == off2 && isSamePtr(ptr, ptr2) && isSigned(x.Type)) {
......@@ -3465,6 +3591,7 @@ func rewriteValueMIPS_OpMIPSMOVBreg_0(v *Value) bool {
if x.Op != OpMIPSMOVBload {
break
}
_ = x.Args[1]
v.reset(OpMIPSMOVWreg)
v.AddArg(x)
return true
......@@ -3492,6 +3619,7 @@ func rewriteValueMIPS_OpMIPSMOVBreg_0(v *Value) bool {
}
off := x.AuxInt
sym := x.Aux
_ = x.Args[1]
ptr := x.Args[0]
mem := x.Args[1]
if !(x.Uses == 1 && clobber(x)) {
......@@ -3547,6 +3675,7 @@ func rewriteValueMIPS_OpMIPSMOVBstore_0(v *Value) bool {
for {
off1 := v.AuxInt
sym := v.Aux
_ = v.Args[2]
x := v.Args[0]
if x.Op != OpMIPSADDconst {
break
......@@ -3572,6 +3701,7 @@ func rewriteValueMIPS_OpMIPSMOVBstore_0(v *Value) bool {
for {
off1 := v.AuxInt
sym1 := v.Aux
_ = v.Args[2]
v_0 := v.Args[0]
if v_0.Op != OpMIPSMOVWaddr {
break
......@@ -3598,6 +3728,7 @@ func rewriteValueMIPS_OpMIPSMOVBstore_0(v *Value) bool {
for {
off := v.AuxInt
sym := v.Aux
_ = v.Args[2]
ptr := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpMIPSMOVWconst {
......@@ -3620,6 +3751,7 @@ func rewriteValueMIPS_OpMIPSMOVBstore_0(v *Value) bool {
for {
off := v.AuxInt
sym := v.Aux
_ = v.Args[2]
ptr := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpMIPSMOVBreg {
......@@ -3641,6 +3773,7 @@ func rewriteValueMIPS_OpMIPSMOVBstore_0(v *Value) bool {
for {
off := v.AuxInt
sym := v.Aux
_ = v.Args[2]
ptr := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpMIPSMOVBUreg {
......@@ -3662,6 +3795,7 @@ func rewriteValueMIPS_OpMIPSMOVBstore_0(v *Value) bool {
for {
off := v.AuxInt
sym := v.Aux
_ = v.Args[2]
ptr := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpMIPSMOVHreg {
......@@ -3683,6 +3817,7 @@ func rewriteValueMIPS_OpMIPSMOVBstore_0(v *Value) bool {
for {
off := v.AuxInt
sym := v.Aux
_ = v.Args[2]
ptr := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpMIPSMOVHUreg {
......@@ -3704,6 +3839,7 @@ func rewriteValueMIPS_OpMIPSMOVBstore_0(v *Value) bool {
for {
off := v.AuxInt
sym := v.Aux
_ = v.Args[2]
ptr := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpMIPSMOVWreg {
......@@ -3728,6 +3864,7 @@ func rewriteValueMIPS_OpMIPSMOVBstorezero_0(v *Value) bool {
for {
off1 := v.AuxInt
sym := v.Aux
_ = v.Args[1]
x := v.Args[0]
if x.Op != OpMIPSADDconst {
break
......@@ -3751,6 +3888,7 @@ func rewriteValueMIPS_OpMIPSMOVBstorezero_0(v *Value) bool {
for {
off1 := v.AuxInt
sym1 := v.Aux
_ = v.Args[1]
v_0 := v.Args[0]
if v_0.Op != OpMIPSMOVWaddr {
break
......@@ -3778,6 +3916,7 @@ func rewriteValueMIPS_OpMIPSMOVDload_0(v *Value) bool {
for {
off1 := v.AuxInt
sym := v.Aux
_ = v.Args[1]
x := v.Args[0]
if x.Op != OpMIPSADDconst {
break
......@@ -3801,6 +3940,7 @@ func rewriteValueMIPS_OpMIPSMOVDload_0(v *Value) bool {
for {
off1 := v.AuxInt
sym1 := v.Aux
_ = v.Args[1]
v_0 := v.Args[0]
if v_0.Op != OpMIPSMOVWaddr {
break
......@@ -3825,6 +3965,7 @@ func rewriteValueMIPS_OpMIPSMOVDload_0(v *Value) bool {
for {
off := v.AuxInt
sym := v.Aux
_ = v.Args[1]
ptr := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpMIPSMOVDstore {
......@@ -3832,6 +3973,7 @@ func rewriteValueMIPS_OpMIPSMOVDload_0(v *Value) bool {
}
off2 := v_1.AuxInt
sym2 := v_1.Aux
_ = v_1.Args[2]
ptr2 := v_1.Args[0]
x := v_1.Args[1]
if !(sym == sym2 && off == off2 && isSamePtr(ptr, ptr2)) {
......@@ -3851,6 +3993,7 @@ func rewriteValueMIPS_OpMIPSMOVDstore_0(v *Value) bool {
for {
off1 := v.AuxInt
sym := v.Aux
_ = v.Args[2]
x := v.Args[0]
if x.Op != OpMIPSADDconst {
break
......@@ -3876,6 +4019,7 @@ func rewriteValueMIPS_OpMIPSMOVDstore_0(v *Value) bool {
for {
off1 := v.AuxInt
sym1 := v.Aux
_ = v.Args[2]
v_0 := v.Args[0]
if v_0.Op != OpMIPSMOVWaddr {
break
......@@ -3905,6 +4049,7 @@ func rewriteValueMIPS_OpMIPSMOVFload_0(v *Value) bool {
for {
off1 := v.AuxInt
sym := v.Aux
_ = v.Args[1]
x := v.Args[0]
if x.Op != OpMIPSADDconst {
break
......@@ -3928,6 +4073,7 @@ func rewriteValueMIPS_OpMIPSMOVFload_0(v *Value) bool {
for {
off1 := v.AuxInt
sym1 := v.Aux
_ = v.Args[1]
v_0 := v.Args[0]
if v_0.Op != OpMIPSMOVWaddr {
break
......@@ -3952,6 +4098,7 @@ func rewriteValueMIPS_OpMIPSMOVFload_0(v *Value) bool {
for {
off := v.AuxInt
sym := v.Aux
_ = v.Args[1]
ptr := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpMIPSMOVFstore {
......@@ -3959,6 +4106,7 @@ func rewriteValueMIPS_OpMIPSMOVFload_0(v *Value) bool {
}
off2 := v_1.AuxInt
sym2 := v_1.Aux
_ = v_1.Args[2]
ptr2 := v_1.Args[0]
x := v_1.Args[1]
if !(sym == sym2 && off == off2 && isSamePtr(ptr, ptr2)) {
......@@ -3978,6 +4126,7 @@ func rewriteValueMIPS_OpMIPSMOVFstore_0(v *Value) bool {
for {
off1 := v.AuxInt
sym := v.Aux
_ = v.Args[2]
x := v.Args[0]
if x.Op != OpMIPSADDconst {
break
......@@ -4003,6 +4152,7 @@ func rewriteValueMIPS_OpMIPSMOVFstore_0(v *Value) bool {
for {
off1 := v.AuxInt
sym1 := v.Aux
_ = v.Args[2]
v_0 := v.Args[0]
if v_0.Op != OpMIPSMOVWaddr {
break
......@@ -4032,6 +4182,7 @@ func rewriteValueMIPS_OpMIPSMOVHUload_0(v *Value) bool {
for {
off1 := v.AuxInt
sym := v.Aux
_ = v.Args[1]
x := v.Args[0]
if x.Op != OpMIPSADDconst {
break
......@@ -4055,6 +4206,7 @@ func rewriteValueMIPS_OpMIPSMOVHUload_0(v *Value) bool {
for {
off1 := v.AuxInt
sym1 := v.Aux
_ = v.Args[1]
v_0 := v.Args[0]
if v_0.Op != OpMIPSMOVWaddr {
break
......@@ -4079,6 +4231,7 @@ func rewriteValueMIPS_OpMIPSMOVHUload_0(v *Value) bool {
for {
off := v.AuxInt
sym := v.Aux
_ = v.Args[1]
ptr := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpMIPSMOVHstore {
......@@ -4086,6 +4239,7 @@ func rewriteValueMIPS_OpMIPSMOVHUload_0(v *Value) bool {
}
off2 := v_1.AuxInt
sym2 := v_1.Aux
_ = v_1.Args[2]
ptr2 := v_1.Args[0]
x := v_1.Args[1]
if !(sym == sym2 && off == off2 && isSamePtr(ptr, ptr2) && !isSigned(x.Type)) {
......@@ -4109,6 +4263,7 @@ func rewriteValueMIPS_OpMIPSMOVHUreg_0(v *Value) bool {
if x.Op != OpMIPSMOVBUload {
break
}
_ = x.Args[1]
v.reset(OpMIPSMOVWreg)
v.AddArg(x)
return true
......@@ -4121,6 +4276,7 @@ func rewriteValueMIPS_OpMIPSMOVHUreg_0(v *Value) bool {
if x.Op != OpMIPSMOVHUload {
break
}
_ = x.Args[1]
v.reset(OpMIPSMOVWreg)
v.AddArg(x)
return true
......@@ -4160,6 +4316,7 @@ func rewriteValueMIPS_OpMIPSMOVHUreg_0(v *Value) bool {
}
off := x.AuxInt
sym := x.Aux
_ = x.Args[1]
ptr := x.Args[0]
mem := x.Args[1]
if !(x.Uses == 1 && clobber(x)) {
......@@ -4212,6 +4369,7 @@ func rewriteValueMIPS_OpMIPSMOVHload_0(v *Value) bool {
for {
off1 := v.AuxInt
sym := v.Aux
_ = v.Args[1]
x := v.Args[0]
if x.Op != OpMIPSADDconst {
break
......@@ -4235,6 +4393,7 @@ func rewriteValueMIPS_OpMIPSMOVHload_0(v *Value) bool {
for {
off1 := v.AuxInt
sym1 := v.Aux
_ = v.Args[1]
v_0 := v.Args[0]
if v_0.Op != OpMIPSMOVWaddr {
break
......@@ -4259,6 +4418,7 @@ func rewriteValueMIPS_OpMIPSMOVHload_0(v *Value) bool {
for {
off := v.AuxInt
sym := v.Aux
_ = v.Args[1]
ptr := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpMIPSMOVHstore {
......@@ -4266,6 +4426,7 @@ func rewriteValueMIPS_OpMIPSMOVHload_0(v *Value) bool {
}
off2 := v_1.AuxInt
sym2 := v_1.Aux
_ = v_1.Args[2]
ptr2 := v_1.Args[0]
x := v_1.Args[1]
if !(sym == sym2 && off == off2 && isSamePtr(ptr, ptr2) && isSigned(x.Type)) {
......@@ -4289,6 +4450,7 @@ func rewriteValueMIPS_OpMIPSMOVHreg_0(v *Value) bool {
if x.Op != OpMIPSMOVBload {
break
}
_ = x.Args[1]
v.reset(OpMIPSMOVWreg)
v.AddArg(x)
return true
......@@ -4301,6 +4463,7 @@ func rewriteValueMIPS_OpMIPSMOVHreg_0(v *Value) bool {
if x.Op != OpMIPSMOVBUload {
break
}
_ = x.Args[1]
v.reset(OpMIPSMOVWreg)
v.AddArg(x)
return true
......@@ -4313,6 +4476,7 @@ func rewriteValueMIPS_OpMIPSMOVHreg_0(v *Value) bool {
if x.Op != OpMIPSMOVHload {
break
}
_ = x.Args[1]
v.reset(OpMIPSMOVWreg)
v.AddArg(x)
return true
......@@ -4364,6 +4528,7 @@ func rewriteValueMIPS_OpMIPSMOVHreg_0(v *Value) bool {
}
off := x.AuxInt
sym := x.Aux
_ = x.Args[1]
ptr := x.Args[0]
mem := x.Args[1]
if !(x.Uses == 1 && clobber(x)) {
......@@ -4419,6 +4584,7 @@ func rewriteValueMIPS_OpMIPSMOVHstore_0(v *Value) bool {
for {
off1 := v.AuxInt
sym := v.Aux
_ = v.Args[2]
x := v.Args[0]
if x.Op != OpMIPSADDconst {
break
......@@ -4444,6 +4610,7 @@ func rewriteValueMIPS_OpMIPSMOVHstore_0(v *Value) bool {
for {
off1 := v.AuxInt
sym1 := v.Aux
_ = v.Args[2]
v_0 := v.Args[0]
if v_0.Op != OpMIPSMOVWaddr {
break
......@@ -4470,6 +4637,7 @@ func rewriteValueMIPS_OpMIPSMOVHstore_0(v *Value) bool {
for {
off := v.AuxInt
sym := v.Aux
_ = v.Args[2]
ptr := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpMIPSMOVWconst {
......@@ -4492,6 +4660,7 @@ func rewriteValueMIPS_OpMIPSMOVHstore_0(v *Value) bool {
for {
off := v.AuxInt
sym := v.Aux
_ = v.Args[2]
ptr := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpMIPSMOVHreg {
......@@ -4513,6 +4682,7 @@ func rewriteValueMIPS_OpMIPSMOVHstore_0(v *Value) bool {
for {
off := v.AuxInt
sym := v.Aux
_ = v.Args[2]
ptr := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpMIPSMOVHUreg {
......@@ -4534,6 +4704,7 @@ func rewriteValueMIPS_OpMIPSMOVHstore_0(v *Value) bool {
for {
off := v.AuxInt
sym := v.Aux
_ = v.Args[2]
ptr := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpMIPSMOVWreg {
......@@ -4558,6 +4729,7 @@ func rewriteValueMIPS_OpMIPSMOVHstorezero_0(v *Value) bool {
for {
off1 := v.AuxInt
sym := v.Aux
_ = v.Args[1]
x := v.Args[0]
if x.Op != OpMIPSADDconst {
break
......@@ -4581,6 +4753,7 @@ func rewriteValueMIPS_OpMIPSMOVHstorezero_0(v *Value) bool {
for {
off1 := v.AuxInt
sym1 := v.Aux
_ = v.Args[1]
v_0 := v.Args[0]
if v_0.Op != OpMIPSMOVWaddr {
break
......@@ -4608,6 +4781,7 @@ func rewriteValueMIPS_OpMIPSMOVWload_0(v *Value) bool {
for {
off1 := v.AuxInt
sym := v.Aux
_ = v.Args[1]
x := v.Args[0]
if x.Op != OpMIPSADDconst {
break
......@@ -4631,6 +4805,7 @@ func rewriteValueMIPS_OpMIPSMOVWload_0(v *Value) bool {
for {
off1 := v.AuxInt
sym1 := v.Aux
_ = v.Args[1]
v_0 := v.Args[0]
if v_0.Op != OpMIPSMOVWaddr {
break
......@@ -4655,6 +4830,7 @@ func rewriteValueMIPS_OpMIPSMOVWload_0(v *Value) bool {
for {
off := v.AuxInt
sym := v.Aux
_ = v.Args[1]
ptr := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpMIPSMOVWstore {
......@@ -4662,6 +4838,7 @@ func rewriteValueMIPS_OpMIPSMOVWload_0(v *Value) bool {
}
off2 := v_1.AuxInt
sym2 := v_1.Aux
_ = v_1.Args[2]
ptr2 := v_1.Args[0]
x := v_1.Args[1]
if !(sym == sym2 && off == off2 && isSamePtr(ptr, ptr2)) {
......@@ -4709,6 +4886,7 @@ func rewriteValueMIPS_OpMIPSMOVWstore_0(v *Value) bool {
for {
off1 := v.AuxInt
sym := v.Aux
_ = v.Args[2]
x := v.Args[0]
if x.Op != OpMIPSADDconst {
break
......@@ -4734,6 +4912,7 @@ func rewriteValueMIPS_OpMIPSMOVWstore_0(v *Value) bool {
for {
off1 := v.AuxInt
sym1 := v.Aux
_ = v.Args[2]
v_0 := v.Args[0]
if v_0.Op != OpMIPSMOVWaddr {
break
......@@ -4760,6 +4939,7 @@ func rewriteValueMIPS_OpMIPSMOVWstore_0(v *Value) bool {
for {
off := v.AuxInt
sym := v.Aux
_ = v.Args[2]
ptr := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpMIPSMOVWconst {
......@@ -4782,6 +4962,7 @@ func rewriteValueMIPS_OpMIPSMOVWstore_0(v *Value) bool {
for {
off := v.AuxInt
sym := v.Aux
_ = v.Args[2]
ptr := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpMIPSMOVWreg {
......@@ -4806,6 +4987,7 @@ func rewriteValueMIPS_OpMIPSMOVWstorezero_0(v *Value) bool {
for {
off1 := v.AuxInt
sym := v.Aux
_ = v.Args[1]
x := v.Args[0]
if x.Op != OpMIPSADDconst {
break
......@@ -4829,6 +5011,7 @@ func rewriteValueMIPS_OpMIPSMOVWstorezero_0(v *Value) bool {
for {
off1 := v.AuxInt
sym1 := v.Aux
_ = v.Args[1]
v_0 := v.Args[0]
if v_0.Op != OpMIPSMOVWaddr {
break
......@@ -4854,6 +5037,7 @@ func rewriteValueMIPS_OpMIPSMUL_0(v *Value) bool {
// cond:
// result: (MOVWconst [0])
for {
_ = v.Args[1]
v_0 := v.Args[0]
if v_0.Op != OpMIPSMOVWconst {
break
......@@ -4869,6 +5053,7 @@ func rewriteValueMIPS_OpMIPSMUL_0(v *Value) bool {
// cond:
// result: (MOVWconst [0])
for {
_ = v.Args[1]
v_1 := v.Args[1]
if v_1.Op != OpMIPSMOVWconst {
break
......@@ -4884,6 +5069,7 @@ func rewriteValueMIPS_OpMIPSMUL_0(v *Value) bool {
// cond:
// result: x
for {
_ = v.Args[1]
v_0 := v.Args[0]
if v_0.Op != OpMIPSMOVWconst {
break
......@@ -4901,6 +5087,7 @@ func rewriteValueMIPS_OpMIPSMUL_0(v *Value) bool {
// cond:
// result: x
for {
_ = v.Args[1]
x := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpMIPSMOVWconst {
......@@ -4918,6 +5105,7 @@ func rewriteValueMIPS_OpMIPSMUL_0(v *Value) bool {
// cond:
// result: (NEG x)
for {
_ = v.Args[1]
v_0 := v.Args[0]
if v_0.Op != OpMIPSMOVWconst {
break
......@@ -4934,6 +5122,7 @@ func rewriteValueMIPS_OpMIPSMUL_0(v *Value) bool {
// cond:
// result: (NEG x)
for {
_ = v.Args[1]
x := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpMIPSMOVWconst {
......@@ -4950,6 +5139,7 @@ func rewriteValueMIPS_OpMIPSMUL_0(v *Value) bool {
// cond: isPowerOfTwo(int64(uint32(c)))
// result: (SLLconst [log2(int64(uint32(c)))] x)
for {
_ = v.Args[1]
v_0 := v.Args[0]
if v_0.Op != OpMIPSMOVWconst {
break
......@@ -4968,6 +5158,7 @@ func rewriteValueMIPS_OpMIPSMUL_0(v *Value) bool {
// cond: isPowerOfTwo(int64(uint32(c)))
// result: (SLLconst [log2(int64(uint32(c)))] x)
for {
_ = v.Args[1]
x := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpMIPSMOVWconst {
......@@ -4986,6 +5177,7 @@ func rewriteValueMIPS_OpMIPSMUL_0(v *Value) bool {
// cond:
// result: (MOVWconst [int64(int32(c)*int32(d))])
for {
_ = v.Args[1]
v_0 := v.Args[0]
if v_0.Op != OpMIPSMOVWconst {
break
......@@ -5004,6 +5196,7 @@ func rewriteValueMIPS_OpMIPSMUL_0(v *Value) bool {
// cond:
// result: (MOVWconst [int64(int32(c)*int32(d))])
for {
_ = v.Args[1]
v_0 := v.Args[0]
if v_0.Op != OpMIPSMOVWconst {
break
......@@ -5041,6 +5234,7 @@ func rewriteValueMIPS_OpMIPSNOR_0(v *Value) bool {
// cond:
// result: (NORconst [c] x)
for {
_ = v.Args[1]
x := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpMIPSMOVWconst {
......@@ -5056,6 +5250,7 @@ func rewriteValueMIPS_OpMIPSNOR_0(v *Value) bool {
// cond:
// result: (NORconst [c] x)
for {
_ = v.Args[1]
v_0 := v.Args[0]
if v_0.Op != OpMIPSMOVWconst {
break
......@@ -5093,6 +5288,7 @@ func rewriteValueMIPS_OpMIPSOR_0(v *Value) bool {
// cond:
// result: (ORconst [c] x)
for {
_ = v.Args[1]
x := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpMIPSMOVWconst {
......@@ -5108,6 +5304,7 @@ func rewriteValueMIPS_OpMIPSOR_0(v *Value) bool {
// cond:
// result: (ORconst [c] x)
for {
_ = v.Args[1]
v_0 := v.Args[0]
if v_0.Op != OpMIPSMOVWconst {
break
......@@ -5123,6 +5320,7 @@ func rewriteValueMIPS_OpMIPSOR_0(v *Value) bool {
// cond:
// result: x
for {
_ = v.Args[1]
x := v.Args[0]
if x != v.Args[1] {
break
......@@ -5136,6 +5334,7 @@ func rewriteValueMIPS_OpMIPSOR_0(v *Value) bool {
// cond:
// result: (SGTUzero (OR <x.Type> x y))
for {
_ = v.Args[1]
v_0 := v.Args[0]
if v_0.Op != OpMIPSSGTUzero {
break
......@@ -5157,6 +5356,7 @@ func rewriteValueMIPS_OpMIPSOR_0(v *Value) bool {
// cond:
// result: (SGTUzero (OR <x.Type> x y))
for {
_ = v.Args[1]
v_0 := v.Args[0]
if v_0.Op != OpMIPSSGTUzero {
break
......@@ -5238,6 +5438,7 @@ func rewriteValueMIPS_OpMIPSSGT_0(v *Value) bool {
// cond:
// result: (SGTconst [c] x)
for {
_ = v.Args[1]
v_0 := v.Args[0]
if v_0.Op != OpMIPSMOVWconst {
break
......@@ -5253,6 +5454,7 @@ func rewriteValueMIPS_OpMIPSSGT_0(v *Value) bool {
// cond:
// result: (SGTzero x)
for {
_ = v.Args[1]
x := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpMIPSMOVWconst {
......@@ -5272,6 +5474,7 @@ func rewriteValueMIPS_OpMIPSSGTU_0(v *Value) bool {
// cond:
// result: (SGTUconst [c] x)
for {
_ = v.Args[1]
v_0 := v.Args[0]
if v_0.Op != OpMIPSMOVWconst {
break
......@@ -5287,6 +5490,7 @@ func rewriteValueMIPS_OpMIPSSGTU_0(v *Value) bool {
// cond:
// result: (SGTUzero x)
for {
_ = v.Args[1]
x := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpMIPSMOVWconst {
......@@ -5681,6 +5885,7 @@ func rewriteValueMIPS_OpMIPSSLL_0(v *Value) bool {
// cond: uint32(c)>=32
// result: (MOVWconst [0])
for {
_ = v.Args[1]
v_1 := v.Args[1]
if v_1.Op != OpMIPSMOVWconst {
break
......@@ -5697,6 +5902,7 @@ func rewriteValueMIPS_OpMIPSSLL_0(v *Value) bool {
// cond:
// result: (SLLconst x [c])
for {
_ = v.Args[1]
x := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpMIPSMOVWconst {
......@@ -5732,6 +5938,7 @@ func rewriteValueMIPS_OpMIPSSRA_0(v *Value) bool {
// cond: uint32(c)>=32
// result: (SRAconst x [31])
for {
_ = v.Args[1]
x := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpMIPSMOVWconst {
......@@ -5750,6 +5957,7 @@ func rewriteValueMIPS_OpMIPSSRA_0(v *Value) bool {
// cond:
// result: (SRAconst x [c])
for {
_ = v.Args[1]
x := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpMIPSMOVWconst {
......@@ -5785,6 +5993,7 @@ func rewriteValueMIPS_OpMIPSSRL_0(v *Value) bool {
// cond: uint32(c)>=32
// result: (MOVWconst [0])
for {
_ = v.Args[1]
v_1 := v.Args[1]
if v_1.Op != OpMIPSMOVWconst {
break
......@@ -5801,6 +6010,7 @@ func rewriteValueMIPS_OpMIPSSRL_0(v *Value) bool {
// cond:
// result: (SRLconst x [c])
for {
_ = v.Args[1]
x := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpMIPSMOVWconst {
......@@ -5836,6 +6046,7 @@ func rewriteValueMIPS_OpMIPSSUB_0(v *Value) bool {
// cond:
// result: (SUBconst [c] x)
for {
_ = v.Args[1]
x := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpMIPSMOVWconst {
......@@ -5851,6 +6062,7 @@ func rewriteValueMIPS_OpMIPSSUB_0(v *Value) bool {
// cond:
// result: (MOVWconst [0])
for {
_ = v.Args[1]
x := v.Args[0]
if x != v.Args[1] {
break
......@@ -5863,6 +6075,7 @@ func rewriteValueMIPS_OpMIPSSUB_0(v *Value) bool {
// cond:
// result: (NEG x)
for {
_ = v.Args[1]
v_0 := v.Args[0]
if v_0.Op != OpMIPSMOVWconst {
break
......@@ -5944,6 +6157,7 @@ func rewriteValueMIPS_OpMIPSXOR_0(v *Value) bool {
// cond:
// result: (XORconst [c] x)
for {
_ = v.Args[1]
x := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpMIPSMOVWconst {
......@@ -5959,6 +6173,7 @@ func rewriteValueMIPS_OpMIPSXOR_0(v *Value) bool {
// cond:
// result: (XORconst [c] x)
for {
_ = v.Args[1]
v_0 := v.Args[0]
if v_0.Op != OpMIPSMOVWconst {
break
......@@ -5974,6 +6189,7 @@ func rewriteValueMIPS_OpMIPSXOR_0(v *Value) bool {
// cond:
// result: (MOVWconst [0])
for {
_ = v.Args[1]
x := v.Args[0]
if x != v.Args[1] {
break
......@@ -6052,6 +6268,7 @@ func rewriteValueMIPS_OpMod16_0(v *Value) bool {
// cond:
// result: (Select0 (DIV (SignExt16to32 x) (SignExt16to32 y)))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpSelect0)
......@@ -6075,6 +6292,7 @@ func rewriteValueMIPS_OpMod16u_0(v *Value) bool {
// cond:
// result: (Select0 (DIVU (ZeroExt16to32 x) (ZeroExt16to32 y)))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpSelect0)
......@@ -6098,6 +6316,7 @@ func rewriteValueMIPS_OpMod32_0(v *Value) bool {
// cond:
// result: (Select0 (DIV x y))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpSelect0)
......@@ -6117,6 +6336,7 @@ func rewriteValueMIPS_OpMod32u_0(v *Value) bool {
// cond:
// result: (Select0 (DIVU x y))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpSelect0)
......@@ -6136,6 +6356,7 @@ func rewriteValueMIPS_OpMod8_0(v *Value) bool {
// cond:
// result: (Select0 (DIV (SignExt8to32 x) (SignExt8to32 y)))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpSelect0)
......@@ -6159,6 +6380,7 @@ func rewriteValueMIPS_OpMod8u_0(v *Value) bool {
// cond:
// result: (Select0 (DIVU (ZeroExt8to32 x) (ZeroExt8to32 y)))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpSelect0)
......@@ -6185,6 +6407,7 @@ func rewriteValueMIPS_OpMove_0(v *Value) bool {
if v.AuxInt != 0 {
break
}
_ = v.Args[2]
mem := v.Args[2]
v.reset(OpCopy)
v.Type = mem.Type
......@@ -6198,6 +6421,7 @@ func rewriteValueMIPS_OpMove_0(v *Value) bool {
if v.AuxInt != 1 {
break
}
_ = v.Args[2]
dst := v.Args[0]
src := v.Args[1]
mem := v.Args[2]
......@@ -6218,6 +6442,7 @@ func rewriteValueMIPS_OpMove_0(v *Value) bool {
break
}
t := v.Aux
_ = v.Args[2]
dst := v.Args[0]
src := v.Args[1]
mem := v.Args[2]
......@@ -6240,6 +6465,7 @@ func rewriteValueMIPS_OpMove_0(v *Value) bool {
if v.AuxInt != 2 {
break
}
_ = v.Args[2]
dst := v.Args[0]
src := v.Args[1]
mem := v.Args[2]
......@@ -6269,6 +6495,7 @@ func rewriteValueMIPS_OpMove_0(v *Value) bool {
break
}
t := v.Aux
_ = v.Args[2]
dst := v.Args[0]
src := v.Args[1]
mem := v.Args[2]
......@@ -6292,6 +6519,7 @@ func rewriteValueMIPS_OpMove_0(v *Value) bool {
break
}
t := v.Aux
_ = v.Args[2]
dst := v.Args[0]
src := v.Args[1]
mem := v.Args[2]
......@@ -6323,6 +6551,7 @@ func rewriteValueMIPS_OpMove_0(v *Value) bool {
if v.AuxInt != 4 {
break
}
_ = v.Args[2]
dst := v.Args[0]
src := v.Args[1]
mem := v.Args[2]
......@@ -6369,6 +6598,7 @@ func rewriteValueMIPS_OpMove_0(v *Value) bool {
if v.AuxInt != 3 {
break
}
_ = v.Args[2]
dst := v.Args[0]
src := v.Args[1]
mem := v.Args[2]
......@@ -6407,6 +6637,7 @@ func rewriteValueMIPS_OpMove_0(v *Value) bool {
break
}
t := v.Aux
_ = v.Args[2]
dst := v.Args[0]
src := v.Args[1]
mem := v.Args[2]
......@@ -6439,6 +6670,7 @@ func rewriteValueMIPS_OpMove_0(v *Value) bool {
break
}
t := v.Aux
_ = v.Args[2]
dst := v.Args[0]
src := v.Args[1]
mem := v.Args[2]
......@@ -6498,6 +6730,7 @@ func rewriteValueMIPS_OpMove_10(v *Value) bool {
break
}
t := v.Aux
_ = v.Args[2]
dst := v.Args[0]
src := v.Args[1]
mem := v.Args[2]
......@@ -6539,6 +6772,7 @@ func rewriteValueMIPS_OpMove_10(v *Value) bool {
break
}
t := v.Aux
_ = v.Args[2]
dst := v.Args[0]
src := v.Args[1]
mem := v.Args[2]
......@@ -6580,6 +6814,7 @@ func rewriteValueMIPS_OpMove_10(v *Value) bool {
break
}
t := v.Aux
_ = v.Args[2]
dst := v.Args[0]
src := v.Args[1]
mem := v.Args[2]
......@@ -6628,6 +6863,7 @@ func rewriteValueMIPS_OpMove_10(v *Value) bool {
for {
s := v.AuxInt
t := v.Aux
_ = v.Args[2]
dst := v.Args[0]
src := v.Args[1]
mem := v.Args[2]
......@@ -6652,6 +6888,7 @@ func rewriteValueMIPS_OpMul16_0(v *Value) bool {
// cond:
// result: (MUL x y)
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPSMUL)
......@@ -6665,6 +6902,7 @@ func rewriteValueMIPS_OpMul32_0(v *Value) bool {
// cond:
// result: (MUL x y)
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPSMUL)
......@@ -6678,6 +6916,7 @@ func rewriteValueMIPS_OpMul32F_0(v *Value) bool {
// cond:
// result: (MULF x y)
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPSMULF)
......@@ -6691,6 +6930,7 @@ func rewriteValueMIPS_OpMul32uhilo_0(v *Value) bool {
// cond:
// result: (MULTU x y)
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPSMULTU)
......@@ -6704,6 +6944,7 @@ func rewriteValueMIPS_OpMul64F_0(v *Value) bool {
// cond:
// result: (MULD x y)
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPSMULD)
......@@ -6717,6 +6958,7 @@ func rewriteValueMIPS_OpMul8_0(v *Value) bool {
// cond:
// result: (MUL x y)
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPSMUL)
......@@ -6789,6 +7031,7 @@ func rewriteValueMIPS_OpNeq16_0(v *Value) bool {
// cond:
// result: (SGTU (XOR (ZeroExt16to32 x) (ZeroExt16to32 y)) (MOVWconst [0]))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPSSGTU)
......@@ -6815,6 +7058,7 @@ func rewriteValueMIPS_OpNeq32_0(v *Value) bool {
// cond:
// result: (SGTU (XOR x y) (MOVWconst [0]))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPSSGTU)
......@@ -6835,6 +7079,7 @@ func rewriteValueMIPS_OpNeq32F_0(v *Value) bool {
// cond:
// result: (FPFlagFalse (CMPEQF x y))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPSFPFlagFalse)
......@@ -6852,6 +7097,7 @@ func rewriteValueMIPS_OpNeq64F_0(v *Value) bool {
// cond:
// result: (FPFlagFalse (CMPEQD x y))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPSFPFlagFalse)
......@@ -6871,6 +7117,7 @@ func rewriteValueMIPS_OpNeq8_0(v *Value) bool {
// cond:
// result: (SGTU (XOR (ZeroExt8to32 x) (ZeroExt8to32 y)) (MOVWconst [0]))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPSSGTU)
......@@ -6893,6 +7140,7 @@ func rewriteValueMIPS_OpNeqB_0(v *Value) bool {
// cond:
// result: (XOR x y)
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPSXOR)
......@@ -6910,6 +7158,7 @@ func rewriteValueMIPS_OpNeqPtr_0(v *Value) bool {
// cond:
// result: (SGTU (XOR x y) (MOVWconst [0]))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPSSGTU)
......@@ -6928,6 +7177,7 @@ func rewriteValueMIPS_OpNilCheck_0(v *Value) bool {
// cond:
// result: (LoweredNilCheck ptr mem)
for {
_ = v.Args[1]
ptr := v.Args[0]
mem := v.Args[1]
v.reset(OpMIPSLoweredNilCheck)
......@@ -6980,6 +7230,7 @@ func rewriteValueMIPS_OpOr16_0(v *Value) bool {
// cond:
// result: (OR x y)
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPSOR)
......@@ -6993,6 +7244,7 @@ func rewriteValueMIPS_OpOr32_0(v *Value) bool {
// cond:
// result: (OR x y)
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPSOR)
......@@ -7006,6 +7258,7 @@ func rewriteValueMIPS_OpOr8_0(v *Value) bool {
// cond:
// result: (OR x y)
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPSOR)
......@@ -7019,6 +7272,7 @@ func rewriteValueMIPS_OpOrB_0(v *Value) bool {
// cond:
// result: (OR x y)
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPSOR)
......@@ -7061,6 +7315,7 @@ func rewriteValueMIPS_OpRsh16Ux16_0(v *Value) bool {
// result: (CMOVZ (SRL <t> (ZeroExt16to32 x) (ZeroExt16to32 y) ) (MOVWconst [0]) (SGTUconst [32] (ZeroExt16to32 y)))
for {
t := v.Type
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPSCMOVZ)
......@@ -7094,6 +7349,7 @@ func rewriteValueMIPS_OpRsh16Ux32_0(v *Value) bool {
// result: (CMOVZ (SRL <t> (ZeroExt16to32 x) y) (MOVWconst [0]) (SGTUconst [32] y))
for {
t := v.Type
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPSCMOVZ)
......@@ -7122,6 +7378,7 @@ func rewriteValueMIPS_OpRsh16Ux64_0(v *Value) bool {
// cond: uint32(c) < 16
// result: (SRLconst (SLLconst <typ.UInt32> x [16]) [c+16])
for {
_ = v.Args[1]
x := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpConst64 {
......@@ -7143,6 +7400,7 @@ func rewriteValueMIPS_OpRsh16Ux64_0(v *Value) bool {
// cond: uint32(c) >= 16
// result: (MOVWconst [0])
for {
_ = v.Args[1]
v_1 := v.Args[1]
if v_1.Op != OpConst64 {
break
......@@ -7167,6 +7425,7 @@ func rewriteValueMIPS_OpRsh16Ux8_0(v *Value) bool {
// result: (CMOVZ (SRL <t> (ZeroExt16to32 x) (ZeroExt8to32 y) ) (MOVWconst [0]) (SGTUconst [32] (ZeroExt8to32 y)))
for {
t := v.Type
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPSCMOVZ)
......@@ -7199,6 +7458,7 @@ func rewriteValueMIPS_OpRsh16x16_0(v *Value) bool {
// cond:
// result: (SRA (SignExt16to32 x) ( CMOVZ <typ.UInt32> (ZeroExt16to32 y) (MOVWconst [-1]) (SGTUconst [32] (ZeroExt16to32 y))))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPSSRA)
......@@ -7231,6 +7491,7 @@ func rewriteValueMIPS_OpRsh16x32_0(v *Value) bool {
// cond:
// result: (SRA (SignExt16to32 x) ( CMOVZ <typ.UInt32> y (MOVWconst [-1]) (SGTUconst [32] y)))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPSSRA)
......@@ -7259,6 +7520,7 @@ func rewriteValueMIPS_OpRsh16x64_0(v *Value) bool {
// cond: uint32(c) < 16
// result: (SRAconst (SLLconst <typ.UInt32> x [16]) [c+16])
for {
_ = v.Args[1]
x := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpConst64 {
......@@ -7280,6 +7542,7 @@ func rewriteValueMIPS_OpRsh16x64_0(v *Value) bool {
// cond: uint32(c) >= 16
// result: (SRAconst (SLLconst <typ.UInt32> x [16]) [31])
for {
_ = v.Args[1]
x := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpConst64 {
......@@ -7308,6 +7571,7 @@ func rewriteValueMIPS_OpRsh16x8_0(v *Value) bool {
// cond:
// result: (SRA (SignExt16to32 x) ( CMOVZ <typ.UInt32> (ZeroExt8to32 y) (MOVWconst [-1]) (SGTUconst [32] (ZeroExt8to32 y))))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPSSRA)
......@@ -7341,6 +7605,7 @@ func rewriteValueMIPS_OpRsh32Ux16_0(v *Value) bool {
// result: (CMOVZ (SRL <t> x (ZeroExt16to32 y) ) (MOVWconst [0]) (SGTUconst [32] (ZeroExt16to32 y)))
for {
t := v.Type
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPSCMOVZ)
......@@ -7372,6 +7637,7 @@ func rewriteValueMIPS_OpRsh32Ux32_0(v *Value) bool {
// result: (CMOVZ (SRL <t> x y) (MOVWconst [0]) (SGTUconst [32] y))
for {
t := v.Type
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPSCMOVZ)
......@@ -7394,6 +7660,7 @@ func rewriteValueMIPS_OpRsh32Ux64_0(v *Value) bool {
// cond: uint32(c) < 32
// result: (SRLconst x [c])
for {
_ = v.Args[1]
x := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpConst64 {
......@@ -7412,6 +7679,7 @@ func rewriteValueMIPS_OpRsh32Ux64_0(v *Value) bool {
// cond: uint32(c) >= 32
// result: (MOVWconst [0])
for {
_ = v.Args[1]
v_1 := v.Args[1]
if v_1.Op != OpConst64 {
break
......@@ -7436,6 +7704,7 @@ func rewriteValueMIPS_OpRsh32Ux8_0(v *Value) bool {
// result: (CMOVZ (SRL <t> x (ZeroExt8to32 y) ) (MOVWconst [0]) (SGTUconst [32] (ZeroExt8to32 y)))
for {
t := v.Type
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPSCMOVZ)
......@@ -7466,6 +7735,7 @@ func rewriteValueMIPS_OpRsh32x16_0(v *Value) bool {
// cond:
// result: (SRA x ( CMOVZ <typ.UInt32> (ZeroExt16to32 y) (MOVWconst [-1]) (SGTUconst [32] (ZeroExt16to32 y))))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPSSRA)
......@@ -7496,6 +7766,7 @@ func rewriteValueMIPS_OpRsh32x32_0(v *Value) bool {
// cond:
// result: (SRA x ( CMOVZ <typ.UInt32> y (MOVWconst [-1]) (SGTUconst [32] y)))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPSSRA)
......@@ -7518,6 +7789,7 @@ func rewriteValueMIPS_OpRsh32x64_0(v *Value) bool {
// cond: uint32(c) < 32
// result: (SRAconst x [c])
for {
_ = v.Args[1]
x := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpConst64 {
......@@ -7536,6 +7808,7 @@ func rewriteValueMIPS_OpRsh32x64_0(v *Value) bool {
// cond: uint32(c) >= 32
// result: (SRAconst x [31])
for {
_ = v.Args[1]
x := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpConst64 {
......@@ -7561,6 +7834,7 @@ func rewriteValueMIPS_OpRsh32x8_0(v *Value) bool {
// cond:
// result: (SRA x ( CMOVZ <typ.UInt32> (ZeroExt8to32 y) (MOVWconst [-1]) (SGTUconst [32] (ZeroExt8to32 y))))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPSSRA)
......@@ -7592,6 +7866,7 @@ func rewriteValueMIPS_OpRsh8Ux16_0(v *Value) bool {
// result: (CMOVZ (SRL <t> (ZeroExt8to32 x) (ZeroExt16to32 y) ) (MOVWconst [0]) (SGTUconst [32] (ZeroExt16to32 y)))
for {
t := v.Type
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPSCMOVZ)
......@@ -7625,6 +7900,7 @@ func rewriteValueMIPS_OpRsh8Ux32_0(v *Value) bool {
// result: (CMOVZ (SRL <t> (ZeroExt8to32 x) y) (MOVWconst [0]) (SGTUconst [32] y))
for {
t := v.Type
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPSCMOVZ)
......@@ -7653,6 +7929,7 @@ func rewriteValueMIPS_OpRsh8Ux64_0(v *Value) bool {
// cond: uint32(c) < 8
// result: (SRLconst (SLLconst <typ.UInt32> x [24]) [c+24])
for {
_ = v.Args[1]
x := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpConst64 {
......@@ -7674,6 +7951,7 @@ func rewriteValueMIPS_OpRsh8Ux64_0(v *Value) bool {
// cond: uint32(c) >= 8
// result: (MOVWconst [0])
for {
_ = v.Args[1]
v_1 := v.Args[1]
if v_1.Op != OpConst64 {
break
......@@ -7698,6 +7976,7 @@ func rewriteValueMIPS_OpRsh8Ux8_0(v *Value) bool {
// result: (CMOVZ (SRL <t> (ZeroExt8to32 x) (ZeroExt8to32 y) ) (MOVWconst [0]) (SGTUconst [32] (ZeroExt8to32 y)))
for {
t := v.Type
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPSCMOVZ)
......@@ -7730,6 +8009,7 @@ func rewriteValueMIPS_OpRsh8x16_0(v *Value) bool {
// cond:
// result: (SRA (SignExt16to32 x) ( CMOVZ <typ.UInt32> (ZeroExt16to32 y) (MOVWconst [-1]) (SGTUconst [32] (ZeroExt16to32 y))))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPSSRA)
......@@ -7762,6 +8042,7 @@ func rewriteValueMIPS_OpRsh8x32_0(v *Value) bool {
// cond:
// result: (SRA (SignExt16to32 x) ( CMOVZ <typ.UInt32> y (MOVWconst [-1]) (SGTUconst [32] y)))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPSSRA)
......@@ -7790,6 +8071,7 @@ func rewriteValueMIPS_OpRsh8x64_0(v *Value) bool {
// cond: uint32(c) < 8
// result: (SRAconst (SLLconst <typ.UInt32> x [24]) [c+24])
for {
_ = v.Args[1]
x := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpConst64 {
......@@ -7811,6 +8093,7 @@ func rewriteValueMIPS_OpRsh8x64_0(v *Value) bool {
// cond: uint32(c) >= 8
// result: (SRAconst (SLLconst <typ.UInt32> x [24]) [31])
for {
_ = v.Args[1]
x := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpConst64 {
......@@ -7839,6 +8122,7 @@ func rewriteValueMIPS_OpRsh8x8_0(v *Value) bool {
// cond:
// result: (SRA (SignExt16to32 x) ( CMOVZ <typ.UInt32> (ZeroExt8to32 y) (MOVWconst [-1]) (SGTUconst [32] (ZeroExt8to32 y))))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPSSRA)
......@@ -7876,6 +8160,7 @@ func rewriteValueMIPS_OpSelect0_0(v *Value) bool {
break
}
t := v_0.Type
_ = v_0.Args[1]
x := v_0.Args[0]
y := v_0.Args[1]
v.reset(OpMIPSADD)
......@@ -7893,6 +8178,7 @@ func rewriteValueMIPS_OpSelect0_0(v *Value) bool {
break
}
t := v_0.Type
_ = v_0.Args[1]
x := v_0.Args[0]
y := v_0.Args[1]
v.reset(OpMIPSSUB)
......@@ -7909,6 +8195,7 @@ func rewriteValueMIPS_OpSelect0_0(v *Value) bool {
if v_0.Op != OpMIPSMULTU {
break
}
_ = v_0.Args[1]
v_0_0 := v_0.Args[0]
if v_0_0.Op != OpMIPSMOVWconst {
break
......@@ -7928,6 +8215,7 @@ func rewriteValueMIPS_OpSelect0_0(v *Value) bool {
if v_0.Op != OpMIPSMULTU {
break
}
_ = v_0.Args[1]
v_0_1 := v_0.Args[1]
if v_0_1.Op != OpMIPSMOVWconst {
break
......@@ -7947,6 +8235,7 @@ func rewriteValueMIPS_OpSelect0_0(v *Value) bool {
if v_0.Op != OpMIPSMULTU {
break
}
_ = v_0.Args[1]
v_0_0 := v_0.Args[0]
if v_0_0.Op != OpMIPSMOVWconst {
break
......@@ -7966,6 +8255,7 @@ func rewriteValueMIPS_OpSelect0_0(v *Value) bool {
if v_0.Op != OpMIPSMULTU {
break
}
_ = v_0.Args[1]
v_0_1 := v_0.Args[1]
if v_0_1.Op != OpMIPSMOVWconst {
break
......@@ -7985,6 +8275,7 @@ func rewriteValueMIPS_OpSelect0_0(v *Value) bool {
if v_0.Op != OpMIPSMULTU {
break
}
_ = v_0.Args[1]
v_0_0 := v_0.Args[0]
if v_0_0.Op != OpMIPSMOVWconst {
break
......@@ -8012,6 +8303,7 @@ func rewriteValueMIPS_OpSelect0_0(v *Value) bool {
if v_0.Op != OpMIPSMULTU {
break
}
_ = v_0.Args[1]
x := v_0.Args[0]
v_0_1 := v_0.Args[1]
if v_0_1.Op != OpMIPSMOVWconst {
......@@ -8039,6 +8331,7 @@ func rewriteValueMIPS_OpSelect0_0(v *Value) bool {
if v_0.Op != OpMIPSMULTU {
break
}
_ = v_0.Args[1]
v_0_0 := v_0.Args[0]
if v_0_0.Op != OpMIPSMOVWconst {
break
......@@ -8061,6 +8354,7 @@ func rewriteValueMIPS_OpSelect0_0(v *Value) bool {
if v_0.Op != OpMIPSMULTU {
break
}
_ = v_0.Args[1]
x := v_0.Args[0]
v_0_1 := v_0.Args[1]
if v_0_1.Op != OpMIPSMOVWconst {
......@@ -8086,6 +8380,7 @@ func rewriteValueMIPS_OpSelect0_10(v *Value) bool {
if v_0.Op != OpMIPSMULTU {
break
}
_ = v_0.Args[1]
v_0_0 := v_0.Args[0]
if v_0_0.Op != OpMIPSMOVWconst {
break
......@@ -8108,6 +8403,7 @@ func rewriteValueMIPS_OpSelect0_10(v *Value) bool {
if v_0.Op != OpMIPSMULTU {
break
}
_ = v_0.Args[1]
v_0_0 := v_0.Args[0]
if v_0_0.Op != OpMIPSMOVWconst {
break
......@@ -8130,6 +8426,7 @@ func rewriteValueMIPS_OpSelect0_10(v *Value) bool {
if v_0.Op != OpMIPSDIV {
break
}
_ = v_0.Args[1]
v_0_0 := v_0.Args[0]
if v_0_0.Op != OpMIPSMOVWconst {
break
......@@ -8152,6 +8449,7 @@ func rewriteValueMIPS_OpSelect0_10(v *Value) bool {
if v_0.Op != OpMIPSDIVU {
break
}
_ = v_0.Args[1]
v_0_0 := v_0.Args[0]
if v_0_0.Op != OpMIPSMOVWconst {
break
......@@ -8182,6 +8480,7 @@ func rewriteValueMIPS_OpSelect1_0(v *Value) bool {
break
}
t := v_0.Type
_ = v_0.Args[1]
x := v_0.Args[0]
y := v_0.Args[1]
v.reset(OpMIPSSGTU)
......@@ -8202,6 +8501,7 @@ func rewriteValueMIPS_OpSelect1_0(v *Value) bool {
break
}
t := v_0.Type
_ = v_0.Args[1]
x := v_0.Args[0]
y := v_0.Args[1]
v.reset(OpMIPSSGTU)
......@@ -8221,6 +8521,7 @@ func rewriteValueMIPS_OpSelect1_0(v *Value) bool {
if v_0.Op != OpMIPSMULTU {
break
}
_ = v_0.Args[1]
v_0_0 := v_0.Args[0]
if v_0_0.Op != OpMIPSMOVWconst {
break
......@@ -8240,6 +8541,7 @@ func rewriteValueMIPS_OpSelect1_0(v *Value) bool {
if v_0.Op != OpMIPSMULTU {
break
}
_ = v_0.Args[1]
v_0_1 := v_0.Args[1]
if v_0_1.Op != OpMIPSMOVWconst {
break
......@@ -8259,6 +8561,7 @@ func rewriteValueMIPS_OpSelect1_0(v *Value) bool {
if v_0.Op != OpMIPSMULTU {
break
}
_ = v_0.Args[1]
v_0_0 := v_0.Args[0]
if v_0_0.Op != OpMIPSMOVWconst {
break
......@@ -8280,6 +8583,7 @@ func rewriteValueMIPS_OpSelect1_0(v *Value) bool {
if v_0.Op != OpMIPSMULTU {
break
}
_ = v_0.Args[1]
x := v_0.Args[0]
v_0_1 := v_0.Args[1]
if v_0_1.Op != OpMIPSMOVWconst {
......@@ -8301,6 +8605,7 @@ func rewriteValueMIPS_OpSelect1_0(v *Value) bool {
if v_0.Op != OpMIPSMULTU {
break
}
_ = v_0.Args[1]
v_0_0 := v_0.Args[0]
if v_0_0.Op != OpMIPSMOVWconst {
break
......@@ -8322,6 +8627,7 @@ func rewriteValueMIPS_OpSelect1_0(v *Value) bool {
if v_0.Op != OpMIPSMULTU {
break
}
_ = v_0.Args[1]
x := v_0.Args[0]
v_0_1 := v_0.Args[1]
if v_0_1.Op != OpMIPSMOVWconst {
......@@ -8343,6 +8649,7 @@ func rewriteValueMIPS_OpSelect1_0(v *Value) bool {
if v_0.Op != OpMIPSMULTU {
break
}
_ = v_0.Args[1]
v_0_0 := v_0.Args[0]
if v_0_0.Op != OpMIPSMOVWconst {
break
......@@ -8365,6 +8672,7 @@ func rewriteValueMIPS_OpSelect1_0(v *Value) bool {
if v_0.Op != OpMIPSMULTU {
break
}
_ = v_0.Args[1]
x := v_0.Args[0]
v_0_1 := v_0.Args[1]
if v_0_1.Op != OpMIPSMOVWconst {
......@@ -8390,6 +8698,7 @@ func rewriteValueMIPS_OpSelect1_10(v *Value) bool {
if v_0.Op != OpMIPSMULTU {
break
}
_ = v_0.Args[1]
v_0_0 := v_0.Args[0]
if v_0_0.Op != OpMIPSMOVWconst {
break
......@@ -8412,6 +8721,7 @@ func rewriteValueMIPS_OpSelect1_10(v *Value) bool {
if v_0.Op != OpMIPSMULTU {
break
}
_ = v_0.Args[1]
v_0_0 := v_0.Args[0]
if v_0_0.Op != OpMIPSMOVWconst {
break
......@@ -8434,6 +8744,7 @@ func rewriteValueMIPS_OpSelect1_10(v *Value) bool {
if v_0.Op != OpMIPSDIV {
break
}
_ = v_0.Args[1]
v_0_0 := v_0.Args[0]
if v_0_0.Op != OpMIPSMOVWconst {
break
......@@ -8456,6 +8767,7 @@ func rewriteValueMIPS_OpSelect1_10(v *Value) bool {
if v_0.Op != OpMIPSDIVU {
break
}
_ = v_0.Args[1]
v_0_0 := v_0.Args[0]
if v_0_0.Op != OpMIPSMOVWconst {
break
......@@ -8566,6 +8878,7 @@ func rewriteValueMIPS_OpStore_0(v *Value) bool {
// result: (MOVBstore ptr val mem)
for {
t := v.Aux
_ = v.Args[2]
ptr := v.Args[0]
val := v.Args[1]
mem := v.Args[2]
......@@ -8583,6 +8896,7 @@ func rewriteValueMIPS_OpStore_0(v *Value) bool {
// result: (MOVHstore ptr val mem)
for {
t := v.Aux
_ = v.Args[2]
ptr := v.Args[0]
val := v.Args[1]
mem := v.Args[2]
......@@ -8600,6 +8914,7 @@ func rewriteValueMIPS_OpStore_0(v *Value) bool {
// result: (MOVWstore ptr val mem)
for {
t := v.Aux
_ = v.Args[2]
ptr := v.Args[0]
val := v.Args[1]
mem := v.Args[2]
......@@ -8617,6 +8932,7 @@ func rewriteValueMIPS_OpStore_0(v *Value) bool {
// result: (MOVFstore ptr val mem)
for {
t := v.Aux
_ = v.Args[2]
ptr := v.Args[0]
val := v.Args[1]
mem := v.Args[2]
......@@ -8634,6 +8950,7 @@ func rewriteValueMIPS_OpStore_0(v *Value) bool {
// result: (MOVDstore ptr val mem)
for {
t := v.Aux
_ = v.Args[2]
ptr := v.Args[0]
val := v.Args[1]
mem := v.Args[2]
......@@ -8653,6 +8970,7 @@ func rewriteValueMIPS_OpSub16_0(v *Value) bool {
// cond:
// result: (SUB x y)
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPSSUB)
......@@ -8666,6 +8984,7 @@ func rewriteValueMIPS_OpSub32_0(v *Value) bool {
// cond:
// result: (SUB x y)
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPSSUB)
......@@ -8679,6 +8998,7 @@ func rewriteValueMIPS_OpSub32F_0(v *Value) bool {
// cond:
// result: (SUBF x y)
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPSSUBF)
......@@ -8695,6 +9015,7 @@ func rewriteValueMIPS_OpSub32withcarry_0(v *Value) bool {
// result: (SUB (SUB <t> x y) c)
for {
t := v.Type
_ = v.Args[2]
x := v.Args[0]
y := v.Args[1]
c := v.Args[2]
......@@ -8712,6 +9033,7 @@ func rewriteValueMIPS_OpSub64F_0(v *Value) bool {
// cond:
// result: (SUBD x y)
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPSSUBD)
......@@ -8725,6 +9047,7 @@ func rewriteValueMIPS_OpSub8_0(v *Value) bool {
// cond:
// result: (SUB x y)
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPSSUB)
......@@ -8738,6 +9061,7 @@ func rewriteValueMIPS_OpSubPtr_0(v *Value) bool {
// cond:
// result: (SUB x y)
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPSSUB)
......@@ -8787,6 +9111,7 @@ func rewriteValueMIPS_OpXor16_0(v *Value) bool {
// cond:
// result: (XOR x y)
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPSXOR)
......@@ -8800,6 +9125,7 @@ func rewriteValueMIPS_OpXor32_0(v *Value) bool {
// cond:
// result: (XOR x y)
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPSXOR)
......@@ -8813,6 +9139,7 @@ func rewriteValueMIPS_OpXor8_0(v *Value) bool {
// cond:
// result: (XOR x y)
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPSXOR)
......@@ -8833,6 +9160,7 @@ func rewriteValueMIPS_OpZero_0(v *Value) bool {
if v.AuxInt != 0 {
break
}
_ = v.Args[1]
mem := v.Args[1]
v.reset(OpCopy)
v.Type = mem.Type
......@@ -8846,6 +9174,7 @@ func rewriteValueMIPS_OpZero_0(v *Value) bool {
if v.AuxInt != 1 {
break
}
_ = v.Args[1]
ptr := v.Args[0]
mem := v.Args[1]
v.reset(OpMIPSMOVBstore)
......@@ -8864,6 +9193,7 @@ func rewriteValueMIPS_OpZero_0(v *Value) bool {
break
}
t := v.Aux
_ = v.Args[1]
ptr := v.Args[0]
mem := v.Args[1]
if !(t.(*types.Type).Alignment()%2 == 0) {
......@@ -8884,6 +9214,7 @@ func rewriteValueMIPS_OpZero_0(v *Value) bool {
if v.AuxInt != 2 {
break
}
_ = v.Args[1]
ptr := v.Args[0]
mem := v.Args[1]
v.reset(OpMIPSMOVBstore)
......@@ -8910,6 +9241,7 @@ func rewriteValueMIPS_OpZero_0(v *Value) bool {
break
}
t := v.Aux
_ = v.Args[1]
ptr := v.Args[0]
mem := v.Args[1]
if !(t.(*types.Type).Alignment()%4 == 0) {
......@@ -8931,6 +9263,7 @@ func rewriteValueMIPS_OpZero_0(v *Value) bool {
break
}
t := v.Aux
_ = v.Args[1]
ptr := v.Args[0]
mem := v.Args[1]
if !(t.(*types.Type).Alignment()%2 == 0) {
......@@ -8959,6 +9292,7 @@ func rewriteValueMIPS_OpZero_0(v *Value) bool {
if v.AuxInt != 4 {
break
}
_ = v.Args[1]
ptr := v.Args[0]
mem := v.Args[1]
v.reset(OpMIPSMOVBstore)
......@@ -8998,6 +9332,7 @@ func rewriteValueMIPS_OpZero_0(v *Value) bool {
if v.AuxInt != 3 {
break
}
_ = v.Args[1]
ptr := v.Args[0]
mem := v.Args[1]
v.reset(OpMIPSMOVBstore)
......@@ -9031,6 +9366,7 @@ func rewriteValueMIPS_OpZero_0(v *Value) bool {
break
}
t := v.Aux
_ = v.Args[1]
ptr := v.Args[0]
mem := v.Args[1]
if !(t.(*types.Type).Alignment()%2 == 0) {
......@@ -9067,6 +9403,7 @@ func rewriteValueMIPS_OpZero_0(v *Value) bool {
break
}
t := v.Aux
_ = v.Args[1]
ptr := v.Args[0]
mem := v.Args[1]
if !(t.(*types.Type).Alignment()%4 == 0) {
......@@ -9105,6 +9442,7 @@ func rewriteValueMIPS_OpZero_10(v *Value) bool {
break
}
t := v.Aux
_ = v.Args[1]
ptr := v.Args[0]
mem := v.Args[1]
if !(t.(*types.Type).Alignment()%4 == 0) {
......@@ -9141,6 +9479,7 @@ func rewriteValueMIPS_OpZero_10(v *Value) bool {
break
}
t := v.Aux
_ = v.Args[1]
ptr := v.Args[0]
mem := v.Args[1]
if !(t.(*types.Type).Alignment()%4 == 0) {
......@@ -9182,6 +9521,7 @@ func rewriteValueMIPS_OpZero_10(v *Value) bool {
for {
s := v.AuxInt
t := v.Aux
_ = v.Args[1]
ptr := v.Args[0]
mem := v.Args[1]
if !(s > 16 || t.(*types.Type).Alignment()%4 != 0) {
......@@ -9302,6 +9642,7 @@ func rewriteBlockMIPS(b *Block) bool {
if cmp.Op != OpMIPSSGT {
break
}
_ = cmp.Args[1]
b.Kind = BlockMIPSNE
b.SetControl(cmp)
return true
......@@ -9321,6 +9662,7 @@ func rewriteBlockMIPS(b *Block) bool {
if cmp.Op != OpMIPSSGTU {
break
}
_ = cmp.Args[1]
b.Kind = BlockMIPSNE
b.SetControl(cmp)
return true
......@@ -9681,6 +10023,7 @@ func rewriteBlockMIPS(b *Block) bool {
if cmp.Op != OpMIPSSGT {
break
}
_ = cmp.Args[1]
b.Kind = BlockMIPSEQ
b.SetControl(cmp)
return true
......@@ -9700,6 +10043,7 @@ func rewriteBlockMIPS(b *Block) bool {
if cmp.Op != OpMIPSSGTU {
break
}
_ = cmp.Args[1]
b.Kind = BlockMIPSEQ
b.SetControl(cmp)
return true
......
......@@ -577,6 +577,7 @@ func rewriteValueMIPS64_OpAdd16_0(v *Value) bool {
// cond:
// result: (ADDV x y)
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPS64ADDV)
......@@ -590,6 +591,7 @@ func rewriteValueMIPS64_OpAdd32_0(v *Value) bool {
// cond:
// result: (ADDV x y)
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPS64ADDV)
......@@ -603,6 +605,7 @@ func rewriteValueMIPS64_OpAdd32F_0(v *Value) bool {
// cond:
// result: (ADDF x y)
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPS64ADDF)
......@@ -616,6 +619,7 @@ func rewriteValueMIPS64_OpAdd64_0(v *Value) bool {
// cond:
// result: (ADDV x y)
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPS64ADDV)
......@@ -629,6 +633,7 @@ func rewriteValueMIPS64_OpAdd64F_0(v *Value) bool {
// cond:
// result: (ADDD x y)
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPS64ADDD)
......@@ -642,6 +647,7 @@ func rewriteValueMIPS64_OpAdd8_0(v *Value) bool {
// cond:
// result: (ADDV x y)
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPS64ADDV)
......@@ -655,6 +661,7 @@ func rewriteValueMIPS64_OpAddPtr_0(v *Value) bool {
// cond:
// result: (ADDV x y)
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPS64ADDV)
......@@ -681,6 +688,7 @@ func rewriteValueMIPS64_OpAnd16_0(v *Value) bool {
// cond:
// result: (AND x y)
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPS64AND)
......@@ -694,6 +702,7 @@ func rewriteValueMIPS64_OpAnd32_0(v *Value) bool {
// cond:
// result: (AND x y)
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPS64AND)
......@@ -707,6 +716,7 @@ func rewriteValueMIPS64_OpAnd64_0(v *Value) bool {
// cond:
// result: (AND x y)
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPS64AND)
......@@ -720,6 +730,7 @@ func rewriteValueMIPS64_OpAnd8_0(v *Value) bool {
// cond:
// result: (AND x y)
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPS64AND)
......@@ -733,6 +744,7 @@ func rewriteValueMIPS64_OpAndB_0(v *Value) bool {
// cond:
// result: (AND x y)
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPS64AND)
......@@ -749,6 +761,7 @@ func rewriteValueMIPS64_OpAvg64u_0(v *Value) bool {
// result: (ADDV (SRLVconst <t> (SUBV <t> x y) [1]) y)
for {
t := v.Type
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPS64ADDV)
......@@ -769,6 +782,7 @@ func rewriteValueMIPS64_OpClosureCall_0(v *Value) bool {
// result: (CALLclosure [argwid] entry closure mem)
for {
argwid := v.AuxInt
_ = v.Args[2]
entry := v.Args[0]
closure := v.Args[1]
mem := v.Args[2]
......@@ -944,6 +958,7 @@ func rewriteValueMIPS64_OpConvert_0(v *Value) bool {
// cond:
// result: (MOVVconvert x mem)
for {
_ = v.Args[1]
x := v.Args[0]
mem := v.Args[1]
v.reset(OpMIPS64MOVVconvert)
......@@ -1071,6 +1086,7 @@ func rewriteValueMIPS64_OpDiv16_0(v *Value) bool {
// cond:
// result: (Select1 (DIVV (SignExt16to64 x) (SignExt16to64 y)))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpSelect1)
......@@ -1094,6 +1110,7 @@ func rewriteValueMIPS64_OpDiv16u_0(v *Value) bool {
// cond:
// result: (Select1 (DIVVU (ZeroExt16to64 x) (ZeroExt16to64 y)))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpSelect1)
......@@ -1117,6 +1134,7 @@ func rewriteValueMIPS64_OpDiv32_0(v *Value) bool {
// cond:
// result: (Select1 (DIVV (SignExt32to64 x) (SignExt32to64 y)))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpSelect1)
......@@ -1136,6 +1154,7 @@ func rewriteValueMIPS64_OpDiv32F_0(v *Value) bool {
// cond:
// result: (DIVF x y)
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPS64DIVF)
......@@ -1153,6 +1172,7 @@ func rewriteValueMIPS64_OpDiv32u_0(v *Value) bool {
// cond:
// result: (Select1 (DIVVU (ZeroExt32to64 x) (ZeroExt32to64 y)))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpSelect1)
......@@ -1176,6 +1196,7 @@ func rewriteValueMIPS64_OpDiv64_0(v *Value) bool {
// cond:
// result: (Select1 (DIVV x y))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpSelect1)
......@@ -1191,6 +1212,7 @@ func rewriteValueMIPS64_OpDiv64F_0(v *Value) bool {
// cond:
// result: (DIVD x y)
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPS64DIVD)
......@@ -1208,6 +1230,7 @@ func rewriteValueMIPS64_OpDiv64u_0(v *Value) bool {
// cond:
// result: (Select1 (DIVVU x y))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpSelect1)
......@@ -1227,6 +1250,7 @@ func rewriteValueMIPS64_OpDiv8_0(v *Value) bool {
// cond:
// result: (Select1 (DIVV (SignExt8to64 x) (SignExt8to64 y)))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpSelect1)
......@@ -1250,6 +1274,7 @@ func rewriteValueMIPS64_OpDiv8u_0(v *Value) bool {
// cond:
// result: (Select1 (DIVVU (ZeroExt8to64 x) (ZeroExt8to64 y)))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpSelect1)
......@@ -1273,6 +1298,7 @@ func rewriteValueMIPS64_OpEq16_0(v *Value) bool {
// cond:
// result: (SGTU (MOVVconst [1]) (XOR (ZeroExt16to64 x) (ZeroExt16to64 y)))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPS64SGTU)
......@@ -1299,6 +1325,7 @@ func rewriteValueMIPS64_OpEq32_0(v *Value) bool {
// cond:
// result: (SGTU (MOVVconst [1]) (XOR (ZeroExt32to64 x) (ZeroExt32to64 y)))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPS64SGTU)
......@@ -1323,6 +1350,7 @@ func rewriteValueMIPS64_OpEq32F_0(v *Value) bool {
// cond:
// result: (FPFlagTrue (CMPEQF x y))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPS64FPFlagTrue)
......@@ -1342,6 +1370,7 @@ func rewriteValueMIPS64_OpEq64_0(v *Value) bool {
// cond:
// result: (SGTU (MOVVconst [1]) (XOR x y))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPS64SGTU)
......@@ -1362,6 +1391,7 @@ func rewriteValueMIPS64_OpEq64F_0(v *Value) bool {
// cond:
// result: (FPFlagTrue (CMPEQD x y))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPS64FPFlagTrue)
......@@ -1381,6 +1411,7 @@ func rewriteValueMIPS64_OpEq8_0(v *Value) bool {
// cond:
// result: (SGTU (MOVVconst [1]) (XOR (ZeroExt8to64 x) (ZeroExt8to64 y)))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPS64SGTU)
......@@ -1407,6 +1438,7 @@ func rewriteValueMIPS64_OpEqB_0(v *Value) bool {
// cond:
// result: (XOR (MOVVconst [1]) (XOR <typ.Bool> x y))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPS64XOR)
......@@ -1429,6 +1461,7 @@ func rewriteValueMIPS64_OpEqPtr_0(v *Value) bool {
// cond:
// result: (SGTU (MOVVconst [1]) (XOR x y))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPS64SGTU)
......@@ -1451,6 +1484,7 @@ func rewriteValueMIPS64_OpGeq16_0(v *Value) bool {
// cond:
// result: (XOR (MOVVconst [1]) (SGT (SignExt16to64 y) (SignExt16to64 x)))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPS64XOR)
......@@ -1477,6 +1511,7 @@ func rewriteValueMIPS64_OpGeq16U_0(v *Value) bool {
// cond:
// result: (XOR (MOVVconst [1]) (SGTU (ZeroExt16to64 y) (ZeroExt16to64 x)))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPS64XOR)
......@@ -1503,6 +1538,7 @@ func rewriteValueMIPS64_OpGeq32_0(v *Value) bool {
// cond:
// result: (XOR (MOVVconst [1]) (SGT (SignExt32to64 y) (SignExt32to64 x)))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPS64XOR)
......@@ -1527,6 +1563,7 @@ func rewriteValueMIPS64_OpGeq32F_0(v *Value) bool {
// cond:
// result: (FPFlagTrue (CMPGEF x y))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPS64FPFlagTrue)
......@@ -1546,6 +1583,7 @@ func rewriteValueMIPS64_OpGeq32U_0(v *Value) bool {
// cond:
// result: (XOR (MOVVconst [1]) (SGTU (ZeroExt32to64 y) (ZeroExt32to64 x)))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPS64XOR)
......@@ -1572,6 +1610,7 @@ func rewriteValueMIPS64_OpGeq64_0(v *Value) bool {
// cond:
// result: (XOR (MOVVconst [1]) (SGT y x))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPS64XOR)
......@@ -1592,6 +1631,7 @@ func rewriteValueMIPS64_OpGeq64F_0(v *Value) bool {
// cond:
// result: (FPFlagTrue (CMPGED x y))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPS64FPFlagTrue)
......@@ -1611,6 +1651,7 @@ func rewriteValueMIPS64_OpGeq64U_0(v *Value) bool {
// cond:
// result: (XOR (MOVVconst [1]) (SGTU y x))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPS64XOR)
......@@ -1633,6 +1674,7 @@ func rewriteValueMIPS64_OpGeq8_0(v *Value) bool {
// cond:
// result: (XOR (MOVVconst [1]) (SGT (SignExt8to64 y) (SignExt8to64 x)))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPS64XOR)
......@@ -1659,6 +1701,7 @@ func rewriteValueMIPS64_OpGeq8U_0(v *Value) bool {
// cond:
// result: (XOR (MOVVconst [1]) (SGTU (ZeroExt8to64 y) (ZeroExt8to64 x)))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPS64XOR)
......@@ -1694,6 +1737,7 @@ func rewriteValueMIPS64_OpGreater16_0(v *Value) bool {
// cond:
// result: (SGT (SignExt16to64 x) (SignExt16to64 y))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPS64SGT)
......@@ -1715,6 +1759,7 @@ func rewriteValueMIPS64_OpGreater16U_0(v *Value) bool {
// cond:
// result: (SGTU (ZeroExt16to64 x) (ZeroExt16to64 y))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPS64SGTU)
......@@ -1736,6 +1781,7 @@ func rewriteValueMIPS64_OpGreater32_0(v *Value) bool {
// cond:
// result: (SGT (SignExt32to64 x) (SignExt32to64 y))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPS64SGT)
......@@ -1755,6 +1801,7 @@ func rewriteValueMIPS64_OpGreater32F_0(v *Value) bool {
// cond:
// result: (FPFlagTrue (CMPGTF x y))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPS64FPFlagTrue)
......@@ -1774,6 +1821,7 @@ func rewriteValueMIPS64_OpGreater32U_0(v *Value) bool {
// cond:
// result: (SGTU (ZeroExt32to64 x) (ZeroExt32to64 y))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPS64SGTU)
......@@ -1791,6 +1839,7 @@ func rewriteValueMIPS64_OpGreater64_0(v *Value) bool {
// cond:
// result: (SGT x y)
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPS64SGT)
......@@ -1806,6 +1855,7 @@ func rewriteValueMIPS64_OpGreater64F_0(v *Value) bool {
// cond:
// result: (FPFlagTrue (CMPGTD x y))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPS64FPFlagTrue)
......@@ -1821,6 +1871,7 @@ func rewriteValueMIPS64_OpGreater64U_0(v *Value) bool {
// cond:
// result: (SGTU x y)
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPS64SGTU)
......@@ -1838,6 +1889,7 @@ func rewriteValueMIPS64_OpGreater8_0(v *Value) bool {
// cond:
// result: (SGT (SignExt8to64 x) (SignExt8to64 y))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPS64SGT)
......@@ -1859,6 +1911,7 @@ func rewriteValueMIPS64_OpGreater8U_0(v *Value) bool {
// cond:
// result: (SGTU (ZeroExt8to64 x) (ZeroExt8to64 y))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPS64SGTU)
......@@ -1880,6 +1933,7 @@ func rewriteValueMIPS64_OpHmul32_0(v *Value) bool {
// cond:
// result: (SRAVconst (Select1 <typ.Int64> (MULV (SignExt32to64 x) (SignExt32to64 y))) [32])
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPS64SRAVconst)
......@@ -1906,6 +1960,7 @@ func rewriteValueMIPS64_OpHmul32u_0(v *Value) bool {
// cond:
// result: (SRLVconst (Select1 <typ.UInt64> (MULVU (ZeroExt32to64 x) (ZeroExt32to64 y))) [32])
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPS64SRLVconst)
......@@ -1932,6 +1987,7 @@ func rewriteValueMIPS64_OpHmul64_0(v *Value) bool {
// cond:
// result: (Select0 (MULV x y))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpSelect0)
......@@ -1951,6 +2007,7 @@ func rewriteValueMIPS64_OpHmul64u_0(v *Value) bool {
// cond:
// result: (Select0 (MULVU x y))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpSelect0)
......@@ -1967,6 +2024,7 @@ func rewriteValueMIPS64_OpInterCall_0(v *Value) bool {
// result: (CALLinter [argwid] entry mem)
for {
argwid := v.AuxInt
_ = v.Args[1]
entry := v.Args[0]
mem := v.Args[1]
v.reset(OpMIPS64CALLinter)
......@@ -1981,6 +2039,7 @@ func rewriteValueMIPS64_OpIsInBounds_0(v *Value) bool {
// cond:
// result: (SGTU len idx)
for {
_ = v.Args[1]
idx := v.Args[0]
len := v.Args[1]
v.reset(OpMIPS64SGTU)
......@@ -2016,6 +2075,7 @@ func rewriteValueMIPS64_OpIsSliceInBounds_0(v *Value) bool {
// cond:
// result: (XOR (MOVVconst [1]) (SGTU idx len))
for {
_ = v.Args[1]
idx := v.Args[0]
len := v.Args[1]
v.reset(OpMIPS64XOR)
......@@ -2038,6 +2098,7 @@ func rewriteValueMIPS64_OpLeq16_0(v *Value) bool {
// cond:
// result: (XOR (MOVVconst [1]) (SGT (SignExt16to64 x) (SignExt16to64 y)))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPS64XOR)
......@@ -2064,6 +2125,7 @@ func rewriteValueMIPS64_OpLeq16U_0(v *Value) bool {
// cond:
// result: (XOR (MOVVconst [1]) (SGTU (ZeroExt16to64 x) (ZeroExt16to64 y)))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPS64XOR)
......@@ -2090,6 +2152,7 @@ func rewriteValueMIPS64_OpLeq32_0(v *Value) bool {
// cond:
// result: (XOR (MOVVconst [1]) (SGT (SignExt32to64 x) (SignExt32to64 y)))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPS64XOR)
......@@ -2114,6 +2177,7 @@ func rewriteValueMIPS64_OpLeq32F_0(v *Value) bool {
// cond:
// result: (FPFlagTrue (CMPGEF y x))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPS64FPFlagTrue)
......@@ -2133,6 +2197,7 @@ func rewriteValueMIPS64_OpLeq32U_0(v *Value) bool {
// cond:
// result: (XOR (MOVVconst [1]) (SGTU (ZeroExt32to64 x) (ZeroExt32to64 y)))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPS64XOR)
......@@ -2159,6 +2224,7 @@ func rewriteValueMIPS64_OpLeq64_0(v *Value) bool {
// cond:
// result: (XOR (MOVVconst [1]) (SGT x y))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPS64XOR)
......@@ -2179,6 +2245,7 @@ func rewriteValueMIPS64_OpLeq64F_0(v *Value) bool {
// cond:
// result: (FPFlagTrue (CMPGED y x))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPS64FPFlagTrue)
......@@ -2198,6 +2265,7 @@ func rewriteValueMIPS64_OpLeq64U_0(v *Value) bool {
// cond:
// result: (XOR (MOVVconst [1]) (SGTU x y))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPS64XOR)
......@@ -2220,6 +2288,7 @@ func rewriteValueMIPS64_OpLeq8_0(v *Value) bool {
// cond:
// result: (XOR (MOVVconst [1]) (SGT (SignExt8to64 x) (SignExt8to64 y)))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPS64XOR)
......@@ -2246,6 +2315,7 @@ func rewriteValueMIPS64_OpLeq8U_0(v *Value) bool {
// cond:
// result: (XOR (MOVVconst [1]) (SGTU (ZeroExt8to64 x) (ZeroExt8to64 y)))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPS64XOR)
......@@ -2272,6 +2342,7 @@ func rewriteValueMIPS64_OpLess16_0(v *Value) bool {
// cond:
// result: (SGT (SignExt16to64 y) (SignExt16to64 x))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPS64SGT)
......@@ -2293,6 +2364,7 @@ func rewriteValueMIPS64_OpLess16U_0(v *Value) bool {
// cond:
// result: (SGTU (ZeroExt16to64 y) (ZeroExt16to64 x))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPS64SGTU)
......@@ -2314,6 +2386,7 @@ func rewriteValueMIPS64_OpLess32_0(v *Value) bool {
// cond:
// result: (SGT (SignExt32to64 y) (SignExt32to64 x))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPS64SGT)
......@@ -2333,6 +2406,7 @@ func rewriteValueMIPS64_OpLess32F_0(v *Value) bool {
// cond:
// result: (FPFlagTrue (CMPGTF y x))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPS64FPFlagTrue)
......@@ -2352,6 +2426,7 @@ func rewriteValueMIPS64_OpLess32U_0(v *Value) bool {
// cond:
// result: (SGTU (ZeroExt32to64 y) (ZeroExt32to64 x))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPS64SGTU)
......@@ -2369,6 +2444,7 @@ func rewriteValueMIPS64_OpLess64_0(v *Value) bool {
// cond:
// result: (SGT y x)
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPS64SGT)
......@@ -2384,6 +2460,7 @@ func rewriteValueMIPS64_OpLess64F_0(v *Value) bool {
// cond:
// result: (FPFlagTrue (CMPGTD y x))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPS64FPFlagTrue)
......@@ -2399,6 +2476,7 @@ func rewriteValueMIPS64_OpLess64U_0(v *Value) bool {
// cond:
// result: (SGTU y x)
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPS64SGTU)
......@@ -2416,6 +2494,7 @@ func rewriteValueMIPS64_OpLess8_0(v *Value) bool {
// cond:
// result: (SGT (SignExt8to64 y) (SignExt8to64 x))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPS64SGT)
......@@ -2437,6 +2516,7 @@ func rewriteValueMIPS64_OpLess8U_0(v *Value) bool {
// cond:
// result: (SGTU (ZeroExt8to64 y) (ZeroExt8to64 x))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPS64SGTU)
......@@ -2455,6 +2535,7 @@ func rewriteValueMIPS64_OpLoad_0(v *Value) bool {
// result: (MOVBUload ptr mem)
for {
t := v.Type
_ = v.Args[1]
ptr := v.Args[0]
mem := v.Args[1]
if !(t.IsBoolean()) {
......@@ -2470,6 +2551,7 @@ func rewriteValueMIPS64_OpLoad_0(v *Value) bool {
// result: (MOVBload ptr mem)
for {
t := v.Type
_ = v.Args[1]
ptr := v.Args[0]
mem := v.Args[1]
if !(is8BitInt(t) && isSigned(t)) {
......@@ -2485,6 +2567,7 @@ func rewriteValueMIPS64_OpLoad_0(v *Value) bool {
// result: (MOVBUload ptr mem)
for {
t := v.Type
_ = v.Args[1]
ptr := v.Args[0]
mem := v.Args[1]
if !(is8BitInt(t) && !isSigned(t)) {
......@@ -2500,6 +2583,7 @@ func rewriteValueMIPS64_OpLoad_0(v *Value) bool {
// result: (MOVHload ptr mem)
for {
t := v.Type
_ = v.Args[1]
ptr := v.Args[0]
mem := v.Args[1]
if !(is16BitInt(t) && isSigned(t)) {
......@@ -2515,6 +2599,7 @@ func rewriteValueMIPS64_OpLoad_0(v *Value) bool {
// result: (MOVHUload ptr mem)
for {
t := v.Type
_ = v.Args[1]
ptr := v.Args[0]
mem := v.Args[1]
if !(is16BitInt(t) && !isSigned(t)) {
......@@ -2530,6 +2615,7 @@ func rewriteValueMIPS64_OpLoad_0(v *Value) bool {
// result: (MOVWload ptr mem)
for {
t := v.Type
_ = v.Args[1]
ptr := v.Args[0]
mem := v.Args[1]
if !(is32BitInt(t) && isSigned(t)) {
......@@ -2545,6 +2631,7 @@ func rewriteValueMIPS64_OpLoad_0(v *Value) bool {
// result: (MOVWUload ptr mem)
for {
t := v.Type
_ = v.Args[1]
ptr := v.Args[0]
mem := v.Args[1]
if !(is32BitInt(t) && !isSigned(t)) {
......@@ -2560,6 +2647,7 @@ func rewriteValueMIPS64_OpLoad_0(v *Value) bool {
// result: (MOVVload ptr mem)
for {
t := v.Type
_ = v.Args[1]
ptr := v.Args[0]
mem := v.Args[1]
if !(is64BitInt(t) || isPtr(t)) {
......@@ -2575,6 +2663,7 @@ func rewriteValueMIPS64_OpLoad_0(v *Value) bool {
// result: (MOVFload ptr mem)
for {
t := v.Type
_ = v.Args[1]
ptr := v.Args[0]
mem := v.Args[1]
if !(is32BitFloat(t)) {
......@@ -2590,6 +2679,7 @@ func rewriteValueMIPS64_OpLoad_0(v *Value) bool {
// result: (MOVDload ptr mem)
for {
t := v.Type
_ = v.Args[1]
ptr := v.Args[0]
mem := v.Args[1]
if !(is64BitFloat(t)) {
......@@ -2612,6 +2702,7 @@ func rewriteValueMIPS64_OpLsh16x16_0(v *Value) bool {
// result: (AND (NEGV <t> (SGTU (Const64 <typ.UInt64> [64]) (ZeroExt16to64 y))) (SLLV <t> x (ZeroExt16to64 y)))
for {
t := v.Type
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPS64AND)
......@@ -2644,6 +2735,7 @@ func rewriteValueMIPS64_OpLsh16x32_0(v *Value) bool {
// result: (AND (NEGV <t> (SGTU (Const64 <typ.UInt64> [64]) (ZeroExt32to64 y))) (SLLV <t> x (ZeroExt32to64 y)))
for {
t := v.Type
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPS64AND)
......@@ -2676,6 +2768,7 @@ func rewriteValueMIPS64_OpLsh16x64_0(v *Value) bool {
// result: (AND (NEGV <t> (SGTU (Const64 <typ.UInt64> [64]) y)) (SLLV <t> x y))
for {
t := v.Type
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPS64AND)
......@@ -2704,6 +2797,7 @@ func rewriteValueMIPS64_OpLsh16x8_0(v *Value) bool {
// result: (AND (NEGV <t> (SGTU (Const64 <typ.UInt64> [64]) (ZeroExt8to64 y))) (SLLV <t> x (ZeroExt8to64 y)))
for {
t := v.Type
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPS64AND)
......@@ -2736,6 +2830,7 @@ func rewriteValueMIPS64_OpLsh32x16_0(v *Value) bool {
// result: (AND (NEGV <t> (SGTU (Const64 <typ.UInt64> [64]) (ZeroExt16to64 y))) (SLLV <t> x (ZeroExt16to64 y)))
for {
t := v.Type
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPS64AND)
......@@ -2768,6 +2863,7 @@ func rewriteValueMIPS64_OpLsh32x32_0(v *Value) bool {
// result: (AND (NEGV <t> (SGTU (Const64 <typ.UInt64> [64]) (ZeroExt32to64 y))) (SLLV <t> x (ZeroExt32to64 y)))
for {
t := v.Type
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPS64AND)
......@@ -2800,6 +2896,7 @@ func rewriteValueMIPS64_OpLsh32x64_0(v *Value) bool {
// result: (AND (NEGV <t> (SGTU (Const64 <typ.UInt64> [64]) y)) (SLLV <t> x y))
for {
t := v.Type
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPS64AND)
......@@ -2828,6 +2925,7 @@ func rewriteValueMIPS64_OpLsh32x8_0(v *Value) bool {
// result: (AND (NEGV <t> (SGTU (Const64 <typ.UInt64> [64]) (ZeroExt8to64 y))) (SLLV <t> x (ZeroExt8to64 y)))
for {
t := v.Type
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPS64AND)
......@@ -2860,6 +2958,7 @@ func rewriteValueMIPS64_OpLsh64x16_0(v *Value) bool {
// result: (AND (NEGV <t> (SGTU (Const64 <typ.UInt64> [64]) (ZeroExt16to64 y))) (SLLV <t> x (ZeroExt16to64 y)))
for {
t := v.Type
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPS64AND)
......@@ -2892,6 +2991,7 @@ func rewriteValueMIPS64_OpLsh64x32_0(v *Value) bool {
// result: (AND (NEGV <t> (SGTU (Const64 <typ.UInt64> [64]) (ZeroExt32to64 y))) (SLLV <t> x (ZeroExt32to64 y)))
for {
t := v.Type
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPS64AND)
......@@ -2924,6 +3024,7 @@ func rewriteValueMIPS64_OpLsh64x64_0(v *Value) bool {
// result: (AND (NEGV <t> (SGTU (Const64 <typ.UInt64> [64]) y)) (SLLV <t> x y))
for {
t := v.Type
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPS64AND)
......@@ -2952,6 +3053,7 @@ func rewriteValueMIPS64_OpLsh64x8_0(v *Value) bool {
// result: (AND (NEGV <t> (SGTU (Const64 <typ.UInt64> [64]) (ZeroExt8to64 y))) (SLLV <t> x (ZeroExt8to64 y)))
for {
t := v.Type
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPS64AND)
......@@ -2984,6 +3086,7 @@ func rewriteValueMIPS64_OpLsh8x16_0(v *Value) bool {
// result: (AND (NEGV <t> (SGTU (Const64 <typ.UInt64> [64]) (ZeroExt16to64 y))) (SLLV <t> x (ZeroExt16to64 y)))
for {
t := v.Type
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPS64AND)
......@@ -3016,6 +3119,7 @@ func rewriteValueMIPS64_OpLsh8x32_0(v *Value) bool {
// result: (AND (NEGV <t> (SGTU (Const64 <typ.UInt64> [64]) (ZeroExt32to64 y))) (SLLV <t> x (ZeroExt32to64 y)))
for {
t := v.Type
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPS64AND)
......@@ -3048,6 +3152,7 @@ func rewriteValueMIPS64_OpLsh8x64_0(v *Value) bool {
// result: (AND (NEGV <t> (SGTU (Const64 <typ.UInt64> [64]) y)) (SLLV <t> x y))
for {
t := v.Type
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPS64AND)
......@@ -3076,6 +3181,7 @@ func rewriteValueMIPS64_OpLsh8x8_0(v *Value) bool {
// result: (AND (NEGV <t> (SGTU (Const64 <typ.UInt64> [64]) (ZeroExt8to64 y))) (SLLV <t> x (ZeroExt8to64 y)))
for {
t := v.Type
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPS64AND)
......@@ -3103,6 +3209,7 @@ func rewriteValueMIPS64_OpMIPS64ADDV_0(v *Value) bool {
// cond: is32Bit(c)
// result: (ADDVconst [c] x)
for {
_ = v.Args[1]
x := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpMIPS64MOVVconst {
......@@ -3121,6 +3228,7 @@ func rewriteValueMIPS64_OpMIPS64ADDV_0(v *Value) bool {
// cond: is32Bit(c)
// result: (ADDVconst [c] x)
for {
_ = v.Args[1]
v_0 := v.Args[0]
if v_0.Op != OpMIPS64MOVVconst {
break
......@@ -3139,6 +3247,7 @@ func rewriteValueMIPS64_OpMIPS64ADDV_0(v *Value) bool {
// cond:
// result: (SUBV x y)
for {
_ = v.Args[1]
x := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpMIPS64NEGV {
......@@ -3154,6 +3263,7 @@ func rewriteValueMIPS64_OpMIPS64ADDV_0(v *Value) bool {
// cond:
// result: (SUBV x y)
for {
_ = v.Args[1]
v_0 := v.Args[0]
if v_0.Op != OpMIPS64NEGV {
break
......@@ -3258,6 +3368,7 @@ func rewriteValueMIPS64_OpMIPS64AND_0(v *Value) bool {
// cond: is32Bit(c)
// result: (ANDconst [c] x)
for {
_ = v.Args[1]
x := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpMIPS64MOVVconst {
......@@ -3276,6 +3387,7 @@ func rewriteValueMIPS64_OpMIPS64AND_0(v *Value) bool {
// cond: is32Bit(c)
// result: (ANDconst [c] x)
for {
_ = v.Args[1]
v_0 := v.Args[0]
if v_0.Op != OpMIPS64MOVVconst {
break
......@@ -3294,6 +3406,7 @@ func rewriteValueMIPS64_OpMIPS64AND_0(v *Value) bool {
// cond:
// result: x
for {
_ = v.Args[1]
x := v.Args[0]
if x != v.Args[1] {
break
......@@ -3369,6 +3482,7 @@ func rewriteValueMIPS64_OpMIPS64MOVBUload_0(v *Value) bool {
for {
off1 := v.AuxInt
sym := v.Aux
_ = v.Args[1]
v_0 := v.Args[0]
if v_0.Op != OpMIPS64ADDVconst {
break
......@@ -3392,6 +3506,7 @@ func rewriteValueMIPS64_OpMIPS64MOVBUload_0(v *Value) bool {
for {
off1 := v.AuxInt
sym1 := v.Aux
_ = v.Args[1]
v_0 := v.Args[0]
if v_0.Op != OpMIPS64MOVVaddr {
break
......@@ -3421,6 +3536,7 @@ func rewriteValueMIPS64_OpMIPS64MOVBUreg_0(v *Value) bool {
if x.Op != OpMIPS64MOVBUload {
break
}
_ = x.Args[1]
v.reset(OpMIPS64MOVVreg)
v.AddArg(x)
return true
......@@ -3459,6 +3575,7 @@ func rewriteValueMIPS64_OpMIPS64MOVBload_0(v *Value) bool {
for {
off1 := v.AuxInt
sym := v.Aux
_ = v.Args[1]
v_0 := v.Args[0]
if v_0.Op != OpMIPS64ADDVconst {
break
......@@ -3482,6 +3599,7 @@ func rewriteValueMIPS64_OpMIPS64MOVBload_0(v *Value) bool {
for {
off1 := v.AuxInt
sym1 := v.Aux
_ = v.Args[1]
v_0 := v.Args[0]
if v_0.Op != OpMIPS64MOVVaddr {
break
......@@ -3511,6 +3629,7 @@ func rewriteValueMIPS64_OpMIPS64MOVBreg_0(v *Value) bool {
if x.Op != OpMIPS64MOVBload {
break
}
_ = x.Args[1]
v.reset(OpMIPS64MOVVreg)
v.AddArg(x)
return true
......@@ -3549,6 +3668,7 @@ func rewriteValueMIPS64_OpMIPS64MOVBstore_0(v *Value) bool {
for {
off1 := v.AuxInt
sym := v.Aux
_ = v.Args[2]
v_0 := v.Args[0]
if v_0.Op != OpMIPS64ADDVconst {
break
......@@ -3574,6 +3694,7 @@ func rewriteValueMIPS64_OpMIPS64MOVBstore_0(v *Value) bool {
for {
off1 := v.AuxInt
sym1 := v.Aux
_ = v.Args[2]
v_0 := v.Args[0]
if v_0.Op != OpMIPS64MOVVaddr {
break
......@@ -3600,6 +3721,7 @@ func rewriteValueMIPS64_OpMIPS64MOVBstore_0(v *Value) bool {
for {
off := v.AuxInt
sym := v.Aux
_ = v.Args[2]
ptr := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpMIPS64MOVVconst {
......@@ -3622,6 +3744,7 @@ func rewriteValueMIPS64_OpMIPS64MOVBstore_0(v *Value) bool {
for {
off := v.AuxInt
sym := v.Aux
_ = v.Args[2]
ptr := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpMIPS64MOVBreg {
......@@ -3643,6 +3766,7 @@ func rewriteValueMIPS64_OpMIPS64MOVBstore_0(v *Value) bool {
for {
off := v.AuxInt
sym := v.Aux
_ = v.Args[2]
ptr := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpMIPS64MOVBUreg {
......@@ -3664,6 +3788,7 @@ func rewriteValueMIPS64_OpMIPS64MOVBstore_0(v *Value) bool {
for {
off := v.AuxInt
sym := v.Aux
_ = v.Args[2]
ptr := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpMIPS64MOVHreg {
......@@ -3685,6 +3810,7 @@ func rewriteValueMIPS64_OpMIPS64MOVBstore_0(v *Value) bool {
for {
off := v.AuxInt
sym := v.Aux
_ = v.Args[2]
ptr := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpMIPS64MOVHUreg {
......@@ -3706,6 +3832,7 @@ func rewriteValueMIPS64_OpMIPS64MOVBstore_0(v *Value) bool {
for {
off := v.AuxInt
sym := v.Aux
_ = v.Args[2]
ptr := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpMIPS64MOVWreg {
......@@ -3727,6 +3854,7 @@ func rewriteValueMIPS64_OpMIPS64MOVBstore_0(v *Value) bool {
for {
off := v.AuxInt
sym := v.Aux
_ = v.Args[2]
ptr := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpMIPS64MOVWUreg {
......@@ -3751,6 +3879,7 @@ func rewriteValueMIPS64_OpMIPS64MOVBstorezero_0(v *Value) bool {
for {
off1 := v.AuxInt
sym := v.Aux
_ = v.Args[1]
v_0 := v.Args[0]
if v_0.Op != OpMIPS64ADDVconst {
break
......@@ -3774,6 +3903,7 @@ func rewriteValueMIPS64_OpMIPS64MOVBstorezero_0(v *Value) bool {
for {
off1 := v.AuxInt
sym1 := v.Aux
_ = v.Args[1]
v_0 := v.Args[0]
if v_0.Op != OpMIPS64MOVVaddr {
break
......@@ -3801,6 +3931,7 @@ func rewriteValueMIPS64_OpMIPS64MOVDload_0(v *Value) bool {
for {
off1 := v.AuxInt
sym := v.Aux
_ = v.Args[1]
v_0 := v.Args[0]
if v_0.Op != OpMIPS64ADDVconst {
break
......@@ -3824,6 +3955,7 @@ func rewriteValueMIPS64_OpMIPS64MOVDload_0(v *Value) bool {
for {
off1 := v.AuxInt
sym1 := v.Aux
_ = v.Args[1]
v_0 := v.Args[0]
if v_0.Op != OpMIPS64MOVVaddr {
break
......@@ -3851,6 +3983,7 @@ func rewriteValueMIPS64_OpMIPS64MOVDstore_0(v *Value) bool {
for {
off1 := v.AuxInt
sym := v.Aux
_ = v.Args[2]
v_0 := v.Args[0]
if v_0.Op != OpMIPS64ADDVconst {
break
......@@ -3876,6 +4009,7 @@ func rewriteValueMIPS64_OpMIPS64MOVDstore_0(v *Value) bool {
for {
off1 := v.AuxInt
sym1 := v.Aux
_ = v.Args[2]
v_0 := v.Args[0]
if v_0.Op != OpMIPS64MOVVaddr {
break
......@@ -3905,6 +4039,7 @@ func rewriteValueMIPS64_OpMIPS64MOVFload_0(v *Value) bool {
for {
off1 := v.AuxInt
sym := v.Aux
_ = v.Args[1]
v_0 := v.Args[0]
if v_0.Op != OpMIPS64ADDVconst {
break
......@@ -3928,6 +4063,7 @@ func rewriteValueMIPS64_OpMIPS64MOVFload_0(v *Value) bool {
for {
off1 := v.AuxInt
sym1 := v.Aux
_ = v.Args[1]
v_0 := v.Args[0]
if v_0.Op != OpMIPS64MOVVaddr {
break
......@@ -3955,6 +4091,7 @@ func rewriteValueMIPS64_OpMIPS64MOVFstore_0(v *Value) bool {
for {
off1 := v.AuxInt
sym := v.Aux
_ = v.Args[2]
v_0 := v.Args[0]
if v_0.Op != OpMIPS64ADDVconst {
break
......@@ -3980,6 +4117,7 @@ func rewriteValueMIPS64_OpMIPS64MOVFstore_0(v *Value) bool {
for {
off1 := v.AuxInt
sym1 := v.Aux
_ = v.Args[2]
v_0 := v.Args[0]
if v_0.Op != OpMIPS64MOVVaddr {
break
......@@ -4009,6 +4147,7 @@ func rewriteValueMIPS64_OpMIPS64MOVHUload_0(v *Value) bool {
for {
off1 := v.AuxInt
sym := v.Aux
_ = v.Args[1]
v_0 := v.Args[0]
if v_0.Op != OpMIPS64ADDVconst {
break
......@@ -4032,6 +4171,7 @@ func rewriteValueMIPS64_OpMIPS64MOVHUload_0(v *Value) bool {
for {
off1 := v.AuxInt
sym1 := v.Aux
_ = v.Args[1]
v_0 := v.Args[0]
if v_0.Op != OpMIPS64MOVVaddr {
break
......@@ -4061,6 +4201,7 @@ func rewriteValueMIPS64_OpMIPS64MOVHUreg_0(v *Value) bool {
if x.Op != OpMIPS64MOVBUload {
break
}
_ = x.Args[1]
v.reset(OpMIPS64MOVVreg)
v.AddArg(x)
return true
......@@ -4073,6 +4214,7 @@ func rewriteValueMIPS64_OpMIPS64MOVHUreg_0(v *Value) bool {
if x.Op != OpMIPS64MOVHUload {
break
}
_ = x.Args[1]
v.reset(OpMIPS64MOVVreg)
v.AddArg(x)
return true
......@@ -4123,6 +4265,7 @@ func rewriteValueMIPS64_OpMIPS64MOVHload_0(v *Value) bool {
for {
off1 := v.AuxInt
sym := v.Aux
_ = v.Args[1]
v_0 := v.Args[0]
if v_0.Op != OpMIPS64ADDVconst {
break
......@@ -4146,6 +4289,7 @@ func rewriteValueMIPS64_OpMIPS64MOVHload_0(v *Value) bool {
for {
off1 := v.AuxInt
sym1 := v.Aux
_ = v.Args[1]
v_0 := v.Args[0]
if v_0.Op != OpMIPS64MOVVaddr {
break
......@@ -4175,6 +4319,7 @@ func rewriteValueMIPS64_OpMIPS64MOVHreg_0(v *Value) bool {
if x.Op != OpMIPS64MOVBload {
break
}
_ = x.Args[1]
v.reset(OpMIPS64MOVVreg)
v.AddArg(x)
return true
......@@ -4187,6 +4332,7 @@ func rewriteValueMIPS64_OpMIPS64MOVHreg_0(v *Value) bool {
if x.Op != OpMIPS64MOVBUload {
break
}
_ = x.Args[1]
v.reset(OpMIPS64MOVVreg)
v.AddArg(x)
return true
......@@ -4199,6 +4345,7 @@ func rewriteValueMIPS64_OpMIPS64MOVHreg_0(v *Value) bool {
if x.Op != OpMIPS64MOVHload {
break
}
_ = x.Args[1]
v.reset(OpMIPS64MOVVreg)
v.AddArg(x)
return true
......@@ -4261,6 +4408,7 @@ func rewriteValueMIPS64_OpMIPS64MOVHstore_0(v *Value) bool {
for {
off1 := v.AuxInt
sym := v.Aux
_ = v.Args[2]
v_0 := v.Args[0]
if v_0.Op != OpMIPS64ADDVconst {
break
......@@ -4286,6 +4434,7 @@ func rewriteValueMIPS64_OpMIPS64MOVHstore_0(v *Value) bool {
for {
off1 := v.AuxInt
sym1 := v.Aux
_ = v.Args[2]
v_0 := v.Args[0]
if v_0.Op != OpMIPS64MOVVaddr {
break
......@@ -4312,6 +4461,7 @@ func rewriteValueMIPS64_OpMIPS64MOVHstore_0(v *Value) bool {
for {
off := v.AuxInt
sym := v.Aux
_ = v.Args[2]
ptr := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpMIPS64MOVVconst {
......@@ -4334,6 +4484,7 @@ func rewriteValueMIPS64_OpMIPS64MOVHstore_0(v *Value) bool {
for {
off := v.AuxInt
sym := v.Aux
_ = v.Args[2]
ptr := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpMIPS64MOVHreg {
......@@ -4355,6 +4506,7 @@ func rewriteValueMIPS64_OpMIPS64MOVHstore_0(v *Value) bool {
for {
off := v.AuxInt
sym := v.Aux
_ = v.Args[2]
ptr := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpMIPS64MOVHUreg {
......@@ -4376,6 +4528,7 @@ func rewriteValueMIPS64_OpMIPS64MOVHstore_0(v *Value) bool {
for {
off := v.AuxInt
sym := v.Aux
_ = v.Args[2]
ptr := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpMIPS64MOVWreg {
......@@ -4397,6 +4550,7 @@ func rewriteValueMIPS64_OpMIPS64MOVHstore_0(v *Value) bool {
for {
off := v.AuxInt
sym := v.Aux
_ = v.Args[2]
ptr := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpMIPS64MOVWUreg {
......@@ -4421,6 +4575,7 @@ func rewriteValueMIPS64_OpMIPS64MOVHstorezero_0(v *Value) bool {
for {
off1 := v.AuxInt
sym := v.Aux
_ = v.Args[1]
v_0 := v.Args[0]
if v_0.Op != OpMIPS64ADDVconst {
break
......@@ -4444,6 +4599,7 @@ func rewriteValueMIPS64_OpMIPS64MOVHstorezero_0(v *Value) bool {
for {
off1 := v.AuxInt
sym1 := v.Aux
_ = v.Args[1]
v_0 := v.Args[0]
if v_0.Op != OpMIPS64MOVVaddr {
break
......@@ -4471,6 +4627,7 @@ func rewriteValueMIPS64_OpMIPS64MOVVload_0(v *Value) bool {
for {
off1 := v.AuxInt
sym := v.Aux
_ = v.Args[1]
v_0 := v.Args[0]
if v_0.Op != OpMIPS64ADDVconst {
break
......@@ -4494,6 +4651,7 @@ func rewriteValueMIPS64_OpMIPS64MOVVload_0(v *Value) bool {
for {
off1 := v.AuxInt
sym1 := v.Aux
_ = v.Args[1]
v_0 := v.Args[0]
if v_0.Op != OpMIPS64MOVVaddr {
break
......@@ -4549,6 +4707,7 @@ func rewriteValueMIPS64_OpMIPS64MOVVstore_0(v *Value) bool {
for {
off1 := v.AuxInt
sym := v.Aux
_ = v.Args[2]
v_0 := v.Args[0]
if v_0.Op != OpMIPS64ADDVconst {
break
......@@ -4574,6 +4733,7 @@ func rewriteValueMIPS64_OpMIPS64MOVVstore_0(v *Value) bool {
for {
off1 := v.AuxInt
sym1 := v.Aux
_ = v.Args[2]
v_0 := v.Args[0]
if v_0.Op != OpMIPS64MOVVaddr {
break
......@@ -4600,6 +4760,7 @@ func rewriteValueMIPS64_OpMIPS64MOVVstore_0(v *Value) bool {
for {
off := v.AuxInt
sym := v.Aux
_ = v.Args[2]
ptr := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpMIPS64MOVVconst {
......@@ -4625,6 +4786,7 @@ func rewriteValueMIPS64_OpMIPS64MOVVstorezero_0(v *Value) bool {
for {
off1 := v.AuxInt
sym := v.Aux
_ = v.Args[1]
v_0 := v.Args[0]
if v_0.Op != OpMIPS64ADDVconst {
break
......@@ -4648,6 +4810,7 @@ func rewriteValueMIPS64_OpMIPS64MOVVstorezero_0(v *Value) bool {
for {
off1 := v.AuxInt
sym1 := v.Aux
_ = v.Args[1]
v_0 := v.Args[0]
if v_0.Op != OpMIPS64MOVVaddr {
break
......@@ -4675,6 +4838,7 @@ func rewriteValueMIPS64_OpMIPS64MOVWUload_0(v *Value) bool {
for {
off1 := v.AuxInt
sym := v.Aux
_ = v.Args[1]
v_0 := v.Args[0]
if v_0.Op != OpMIPS64ADDVconst {
break
......@@ -4698,6 +4862,7 @@ func rewriteValueMIPS64_OpMIPS64MOVWUload_0(v *Value) bool {
for {
off1 := v.AuxInt
sym1 := v.Aux
_ = v.Args[1]
v_0 := v.Args[0]
if v_0.Op != OpMIPS64MOVVaddr {
break
......@@ -4727,6 +4892,7 @@ func rewriteValueMIPS64_OpMIPS64MOVWUreg_0(v *Value) bool {
if x.Op != OpMIPS64MOVBUload {
break
}
_ = x.Args[1]
v.reset(OpMIPS64MOVVreg)
v.AddArg(x)
return true
......@@ -4739,6 +4905,7 @@ func rewriteValueMIPS64_OpMIPS64MOVWUreg_0(v *Value) bool {
if x.Op != OpMIPS64MOVHUload {
break
}
_ = x.Args[1]
v.reset(OpMIPS64MOVVreg)
v.AddArg(x)
return true
......@@ -4751,6 +4918,7 @@ func rewriteValueMIPS64_OpMIPS64MOVWUreg_0(v *Value) bool {
if x.Op != OpMIPS64MOVWUload {
break
}
_ = x.Args[1]
v.reset(OpMIPS64MOVVreg)
v.AddArg(x)
return true
......@@ -4813,6 +4981,7 @@ func rewriteValueMIPS64_OpMIPS64MOVWload_0(v *Value) bool {
for {
off1 := v.AuxInt
sym := v.Aux
_ = v.Args[1]
v_0 := v.Args[0]
if v_0.Op != OpMIPS64ADDVconst {
break
......@@ -4836,6 +5005,7 @@ func rewriteValueMIPS64_OpMIPS64MOVWload_0(v *Value) bool {
for {
off1 := v.AuxInt
sym1 := v.Aux
_ = v.Args[1]
v_0 := v.Args[0]
if v_0.Op != OpMIPS64MOVVaddr {
break
......@@ -4865,6 +5035,7 @@ func rewriteValueMIPS64_OpMIPS64MOVWreg_0(v *Value) bool {
if x.Op != OpMIPS64MOVBload {
break
}
_ = x.Args[1]
v.reset(OpMIPS64MOVVreg)
v.AddArg(x)
return true
......@@ -4877,6 +5048,7 @@ func rewriteValueMIPS64_OpMIPS64MOVWreg_0(v *Value) bool {
if x.Op != OpMIPS64MOVBUload {
break
}
_ = x.Args[1]
v.reset(OpMIPS64MOVVreg)
v.AddArg(x)
return true
......@@ -4889,6 +5061,7 @@ func rewriteValueMIPS64_OpMIPS64MOVWreg_0(v *Value) bool {
if x.Op != OpMIPS64MOVHload {
break
}
_ = x.Args[1]
v.reset(OpMIPS64MOVVreg)
v.AddArg(x)
return true
......@@ -4901,6 +5074,7 @@ func rewriteValueMIPS64_OpMIPS64MOVWreg_0(v *Value) bool {
if x.Op != OpMIPS64MOVHUload {
break
}
_ = x.Args[1]
v.reset(OpMIPS64MOVVreg)
v.AddArg(x)
return true
......@@ -4913,6 +5087,7 @@ func rewriteValueMIPS64_OpMIPS64MOVWreg_0(v *Value) bool {
if x.Op != OpMIPS64MOVWload {
break
}
_ = x.Args[1]
v.reset(OpMIPS64MOVVreg)
v.AddArg(x)
return true
......@@ -5002,6 +5177,7 @@ func rewriteValueMIPS64_OpMIPS64MOVWstore_0(v *Value) bool {
for {
off1 := v.AuxInt
sym := v.Aux
_ = v.Args[2]
v_0 := v.Args[0]
if v_0.Op != OpMIPS64ADDVconst {
break
......@@ -5027,6 +5203,7 @@ func rewriteValueMIPS64_OpMIPS64MOVWstore_0(v *Value) bool {
for {
off1 := v.AuxInt
sym1 := v.Aux
_ = v.Args[2]
v_0 := v.Args[0]
if v_0.Op != OpMIPS64MOVVaddr {
break
......@@ -5053,6 +5230,7 @@ func rewriteValueMIPS64_OpMIPS64MOVWstore_0(v *Value) bool {
for {
off := v.AuxInt
sym := v.Aux
_ = v.Args[2]
ptr := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpMIPS64MOVVconst {
......@@ -5075,6 +5253,7 @@ func rewriteValueMIPS64_OpMIPS64MOVWstore_0(v *Value) bool {
for {
off := v.AuxInt
sym := v.Aux
_ = v.Args[2]
ptr := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpMIPS64MOVWreg {
......@@ -5096,6 +5275,7 @@ func rewriteValueMIPS64_OpMIPS64MOVWstore_0(v *Value) bool {
for {
off := v.AuxInt
sym := v.Aux
_ = v.Args[2]
ptr := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpMIPS64MOVWUreg {
......@@ -5120,6 +5300,7 @@ func rewriteValueMIPS64_OpMIPS64MOVWstorezero_0(v *Value) bool {
for {
off1 := v.AuxInt
sym := v.Aux
_ = v.Args[1]
v_0 := v.Args[0]
if v_0.Op != OpMIPS64ADDVconst {
break
......@@ -5143,6 +5324,7 @@ func rewriteValueMIPS64_OpMIPS64MOVWstorezero_0(v *Value) bool {
for {
off1 := v.AuxInt
sym1 := v.Aux
_ = v.Args[1]
v_0 := v.Args[0]
if v_0.Op != OpMIPS64MOVVaddr {
break
......@@ -5184,6 +5366,7 @@ func rewriteValueMIPS64_OpMIPS64NOR_0(v *Value) bool {
// cond: is32Bit(c)
// result: (NORconst [c] x)
for {
_ = v.Args[1]
x := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpMIPS64MOVVconst {
......@@ -5202,6 +5385,7 @@ func rewriteValueMIPS64_OpMIPS64NOR_0(v *Value) bool {
// cond: is32Bit(c)
// result: (NORconst [c] x)
for {
_ = v.Args[1]
v_0 := v.Args[0]
if v_0.Op != OpMIPS64MOVVconst {
break
......@@ -5240,6 +5424,7 @@ func rewriteValueMIPS64_OpMIPS64OR_0(v *Value) bool {
// cond: is32Bit(c)
// result: (ORconst [c] x)
for {
_ = v.Args[1]
x := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpMIPS64MOVVconst {
......@@ -5258,6 +5443,7 @@ func rewriteValueMIPS64_OpMIPS64OR_0(v *Value) bool {
// cond: is32Bit(c)
// result: (ORconst [c] x)
for {
_ = v.Args[1]
v_0 := v.Args[0]
if v_0.Op != OpMIPS64MOVVconst {
break
......@@ -5276,6 +5462,7 @@ func rewriteValueMIPS64_OpMIPS64OR_0(v *Value) bool {
// cond:
// result: x
for {
_ = v.Args[1]
x := v.Args[0]
if x != v.Args[1] {
break
......@@ -5352,6 +5539,7 @@ func rewriteValueMIPS64_OpMIPS64SGT_0(v *Value) bool {
// cond: is32Bit(c)
// result: (SGTconst [c] x)
for {
_ = v.Args[1]
v_0 := v.Args[0]
if v_0.Op != OpMIPS64MOVVconst {
break
......@@ -5373,6 +5561,7 @@ func rewriteValueMIPS64_OpMIPS64SGTU_0(v *Value) bool {
// cond: is32Bit(c)
// result: (SGTUconst [c] x)
for {
_ = v.Args[1]
v_0 := v.Args[0]
if v_0.Op != OpMIPS64MOVVconst {
break
......@@ -5715,6 +5904,7 @@ func rewriteValueMIPS64_OpMIPS64SLLV_0(v *Value) bool {
// cond: uint64(c)>=64
// result: (MOVVconst [0])
for {
_ = v.Args[1]
v_1 := v.Args[1]
if v_1.Op != OpMIPS64MOVVconst {
break
......@@ -5731,6 +5921,7 @@ func rewriteValueMIPS64_OpMIPS64SLLV_0(v *Value) bool {
// cond:
// result: (SLLVconst x [c])
for {
_ = v.Args[1]
x := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpMIPS64MOVVconst {
......@@ -5766,6 +5957,7 @@ func rewriteValueMIPS64_OpMIPS64SRAV_0(v *Value) bool {
// cond: uint64(c)>=64
// result: (SRAVconst x [63])
for {
_ = v.Args[1]
x := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpMIPS64MOVVconst {
......@@ -5784,6 +5976,7 @@ func rewriteValueMIPS64_OpMIPS64SRAV_0(v *Value) bool {
// cond:
// result: (SRAVconst x [c])
for {
_ = v.Args[1]
x := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpMIPS64MOVVconst {
......@@ -5819,6 +6012,7 @@ func rewriteValueMIPS64_OpMIPS64SRLV_0(v *Value) bool {
// cond: uint64(c)>=64
// result: (MOVVconst [0])
for {
_ = v.Args[1]
v_1 := v.Args[1]
if v_1.Op != OpMIPS64MOVVconst {
break
......@@ -5835,6 +6029,7 @@ func rewriteValueMIPS64_OpMIPS64SRLV_0(v *Value) bool {
// cond:
// result: (SRLVconst x [c])
for {
_ = v.Args[1]
x := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpMIPS64MOVVconst {
......@@ -5870,6 +6065,7 @@ func rewriteValueMIPS64_OpMIPS64SUBV_0(v *Value) bool {
// cond: is32Bit(c)
// result: (SUBVconst [c] x)
for {
_ = v.Args[1]
x := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpMIPS64MOVVconst {
......@@ -5888,6 +6084,7 @@ func rewriteValueMIPS64_OpMIPS64SUBV_0(v *Value) bool {
// cond:
// result: (MOVVconst [0])
for {
_ = v.Args[1]
x := v.Args[0]
if x != v.Args[1] {
break
......@@ -5900,6 +6097,7 @@ func rewriteValueMIPS64_OpMIPS64SUBV_0(v *Value) bool {
// cond:
// result: (NEGV x)
for {
_ = v.Args[1]
v_0 := v.Args[0]
if v_0.Op != OpMIPS64MOVVconst {
break
......@@ -5987,6 +6185,7 @@ func rewriteValueMIPS64_OpMIPS64XOR_0(v *Value) bool {
// cond: is32Bit(c)
// result: (XORconst [c] x)
for {
_ = v.Args[1]
x := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpMIPS64MOVVconst {
......@@ -6005,6 +6204,7 @@ func rewriteValueMIPS64_OpMIPS64XOR_0(v *Value) bool {
// cond: is32Bit(c)
// result: (XORconst [c] x)
for {
_ = v.Args[1]
v_0 := v.Args[0]
if v_0.Op != OpMIPS64MOVVconst {
break
......@@ -6023,6 +6223,7 @@ func rewriteValueMIPS64_OpMIPS64XOR_0(v *Value) bool {
// cond:
// result: (MOVVconst [0])
for {
_ = v.Args[1]
x := v.Args[0]
if x != v.Args[1] {
break
......@@ -6104,6 +6305,7 @@ func rewriteValueMIPS64_OpMod16_0(v *Value) bool {
// cond:
// result: (Select0 (DIVV (SignExt16to64 x) (SignExt16to64 y)))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpSelect0)
......@@ -6127,6 +6329,7 @@ func rewriteValueMIPS64_OpMod16u_0(v *Value) bool {
// cond:
// result: (Select0 (DIVVU (ZeroExt16to64 x) (ZeroExt16to64 y)))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpSelect0)
......@@ -6150,6 +6353,7 @@ func rewriteValueMIPS64_OpMod32_0(v *Value) bool {
// cond:
// result: (Select0 (DIVV (SignExt32to64 x) (SignExt32to64 y)))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpSelect0)
......@@ -6173,6 +6377,7 @@ func rewriteValueMIPS64_OpMod32u_0(v *Value) bool {
// cond:
// result: (Select0 (DIVVU (ZeroExt32to64 x) (ZeroExt32to64 y)))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpSelect0)
......@@ -6196,6 +6401,7 @@ func rewriteValueMIPS64_OpMod64_0(v *Value) bool {
// cond:
// result: (Select0 (DIVV x y))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpSelect0)
......@@ -6215,6 +6421,7 @@ func rewriteValueMIPS64_OpMod64u_0(v *Value) bool {
// cond:
// result: (Select0 (DIVVU x y))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpSelect0)
......@@ -6234,6 +6441,7 @@ func rewriteValueMIPS64_OpMod8_0(v *Value) bool {
// cond:
// result: (Select0 (DIVV (SignExt8to64 x) (SignExt8to64 y)))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpSelect0)
......@@ -6257,6 +6465,7 @@ func rewriteValueMIPS64_OpMod8u_0(v *Value) bool {
// cond:
// result: (Select0 (DIVVU (ZeroExt8to64 x) (ZeroExt8to64 y)))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpSelect0)
......@@ -6283,6 +6492,7 @@ func rewriteValueMIPS64_OpMove_0(v *Value) bool {
if v.AuxInt != 0 {
break
}
_ = v.Args[2]
mem := v.Args[2]
v.reset(OpCopy)
v.Type = mem.Type
......@@ -6296,6 +6506,7 @@ func rewriteValueMIPS64_OpMove_0(v *Value) bool {
if v.AuxInt != 1 {
break
}
_ = v.Args[2]
dst := v.Args[0]
src := v.Args[1]
mem := v.Args[2]
......@@ -6316,6 +6527,7 @@ func rewriteValueMIPS64_OpMove_0(v *Value) bool {
break
}
t := v.Aux
_ = v.Args[2]
dst := v.Args[0]
src := v.Args[1]
mem := v.Args[2]
......@@ -6338,6 +6550,7 @@ func rewriteValueMIPS64_OpMove_0(v *Value) bool {
if v.AuxInt != 2 {
break
}
_ = v.Args[2]
dst := v.Args[0]
src := v.Args[1]
mem := v.Args[2]
......@@ -6367,6 +6580,7 @@ func rewriteValueMIPS64_OpMove_0(v *Value) bool {
break
}
t := v.Aux
_ = v.Args[2]
dst := v.Args[0]
src := v.Args[1]
mem := v.Args[2]
......@@ -6390,6 +6604,7 @@ func rewriteValueMIPS64_OpMove_0(v *Value) bool {
break
}
t := v.Aux
_ = v.Args[2]
dst := v.Args[0]
src := v.Args[1]
mem := v.Args[2]
......@@ -6421,6 +6636,7 @@ func rewriteValueMIPS64_OpMove_0(v *Value) bool {
if v.AuxInt != 4 {
break
}
_ = v.Args[2]
dst := v.Args[0]
src := v.Args[1]
mem := v.Args[2]
......@@ -6468,6 +6684,7 @@ func rewriteValueMIPS64_OpMove_0(v *Value) bool {
break
}
t := v.Aux
_ = v.Args[2]
dst := v.Args[0]
src := v.Args[1]
mem := v.Args[2]
......@@ -6491,6 +6708,7 @@ func rewriteValueMIPS64_OpMove_0(v *Value) bool {
break
}
t := v.Aux
_ = v.Args[2]
dst := v.Args[0]
src := v.Args[1]
mem := v.Args[2]
......@@ -6523,6 +6741,7 @@ func rewriteValueMIPS64_OpMove_0(v *Value) bool {
break
}
t := v.Aux
_ = v.Args[2]
dst := v.Args[0]
src := v.Args[1]
mem := v.Args[2]
......@@ -6581,6 +6800,7 @@ func rewriteValueMIPS64_OpMove_10(v *Value) bool {
if v.AuxInt != 3 {
break
}
_ = v.Args[2]
dst := v.Args[0]
src := v.Args[1]
mem := v.Args[2]
......@@ -6619,6 +6839,7 @@ func rewriteValueMIPS64_OpMove_10(v *Value) bool {
break
}
t := v.Aux
_ = v.Args[2]
dst := v.Args[0]
src := v.Args[1]
mem := v.Args[2]
......@@ -6660,6 +6881,7 @@ func rewriteValueMIPS64_OpMove_10(v *Value) bool {
break
}
t := v.Aux
_ = v.Args[2]
dst := v.Args[0]
src := v.Args[1]
mem := v.Args[2]
......@@ -6701,6 +6923,7 @@ func rewriteValueMIPS64_OpMove_10(v *Value) bool {
break
}
t := v.Aux
_ = v.Args[2]
dst := v.Args[0]
src := v.Args[1]
mem := v.Args[2]
......@@ -6733,6 +6956,7 @@ func rewriteValueMIPS64_OpMove_10(v *Value) bool {
break
}
t := v.Aux
_ = v.Args[2]
dst := v.Args[0]
src := v.Args[1]
mem := v.Args[2]
......@@ -6772,6 +6996,7 @@ func rewriteValueMIPS64_OpMove_10(v *Value) bool {
for {
s := v.AuxInt
t := v.Aux
_ = v.Args[2]
dst := v.Args[0]
src := v.Args[1]
mem := v.Args[2]
......@@ -6800,6 +7025,7 @@ func rewriteValueMIPS64_OpMul16_0(v *Value) bool {
// cond:
// result: (Select1 (MULVU x y))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpSelect1)
......@@ -6819,6 +7045,7 @@ func rewriteValueMIPS64_OpMul32_0(v *Value) bool {
// cond:
// result: (Select1 (MULVU x y))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpSelect1)
......@@ -6834,6 +7061,7 @@ func rewriteValueMIPS64_OpMul32F_0(v *Value) bool {
// cond:
// result: (MULF x y)
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPS64MULF)
......@@ -6851,6 +7079,7 @@ func rewriteValueMIPS64_OpMul64_0(v *Value) bool {
// cond:
// result: (Select1 (MULVU x y))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpSelect1)
......@@ -6866,6 +7095,7 @@ func rewriteValueMIPS64_OpMul64F_0(v *Value) bool {
// cond:
// result: (MULD x y)
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPS64MULD)
......@@ -6883,6 +7113,7 @@ func rewriteValueMIPS64_OpMul8_0(v *Value) bool {
// cond:
// result: (Select1 (MULVU x y))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpSelect1)
......@@ -6968,6 +7199,7 @@ func rewriteValueMIPS64_OpNeq16_0(v *Value) bool {
// cond:
// result: (SGTU (XOR (ZeroExt16to32 x) (ZeroExt16to64 y)) (MOVVconst [0]))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPS64SGTU)
......@@ -6994,6 +7226,7 @@ func rewriteValueMIPS64_OpNeq32_0(v *Value) bool {
// cond:
// result: (SGTU (XOR (ZeroExt32to64 x) (ZeroExt32to64 y)) (MOVVconst [0]))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPS64SGTU)
......@@ -7018,6 +7251,7 @@ func rewriteValueMIPS64_OpNeq32F_0(v *Value) bool {
// cond:
// result: (FPFlagFalse (CMPEQF x y))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPS64FPFlagFalse)
......@@ -7037,6 +7271,7 @@ func rewriteValueMIPS64_OpNeq64_0(v *Value) bool {
// cond:
// result: (SGTU (XOR x y) (MOVVconst [0]))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPS64SGTU)
......@@ -7057,6 +7292,7 @@ func rewriteValueMIPS64_OpNeq64F_0(v *Value) bool {
// cond:
// result: (FPFlagFalse (CMPEQD x y))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPS64FPFlagFalse)
......@@ -7076,6 +7312,7 @@ func rewriteValueMIPS64_OpNeq8_0(v *Value) bool {
// cond:
// result: (SGTU (XOR (ZeroExt8to64 x) (ZeroExt8to64 y)) (MOVVconst [0]))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPS64SGTU)
......@@ -7098,6 +7335,7 @@ func rewriteValueMIPS64_OpNeqB_0(v *Value) bool {
// cond:
// result: (XOR x y)
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPS64XOR)
......@@ -7115,6 +7353,7 @@ func rewriteValueMIPS64_OpNeqPtr_0(v *Value) bool {
// cond:
// result: (SGTU (XOR x y) (MOVVconst [0]))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPS64SGTU)
......@@ -7133,6 +7372,7 @@ func rewriteValueMIPS64_OpNilCheck_0(v *Value) bool {
// cond:
// result: (LoweredNilCheck ptr mem)
for {
_ = v.Args[1]
ptr := v.Args[0]
mem := v.Args[1]
v.reset(OpMIPS64LoweredNilCheck)
......@@ -7185,6 +7425,7 @@ func rewriteValueMIPS64_OpOr16_0(v *Value) bool {
// cond:
// result: (OR x y)
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPS64OR)
......@@ -7198,6 +7439,7 @@ func rewriteValueMIPS64_OpOr32_0(v *Value) bool {
// cond:
// result: (OR x y)
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPS64OR)
......@@ -7211,6 +7453,7 @@ func rewriteValueMIPS64_OpOr64_0(v *Value) bool {
// cond:
// result: (OR x y)
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPS64OR)
......@@ -7224,6 +7467,7 @@ func rewriteValueMIPS64_OpOr8_0(v *Value) bool {
// cond:
// result: (OR x y)
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPS64OR)
......@@ -7237,6 +7481,7 @@ func rewriteValueMIPS64_OpOrB_0(v *Value) bool {
// cond:
// result: (OR x y)
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPS64OR)
......@@ -7279,6 +7524,7 @@ func rewriteValueMIPS64_OpRsh16Ux16_0(v *Value) bool {
// result: (AND (NEGV <t> (SGTU (Const64 <typ.UInt64> [64]) (ZeroExt16to64 y))) (SRLV <t> (ZeroExt16to64 x) (ZeroExt16to64 y)))
for {
t := v.Type
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPS64AND)
......@@ -7313,6 +7559,7 @@ func rewriteValueMIPS64_OpRsh16Ux32_0(v *Value) bool {
// result: (AND (NEGV <t> (SGTU (Const64 <typ.UInt64> [64]) (ZeroExt32to64 y))) (SRLV <t> (ZeroExt16to64 x) (ZeroExt32to64 y)))
for {
t := v.Type
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPS64AND)
......@@ -7347,6 +7594,7 @@ func rewriteValueMIPS64_OpRsh16Ux64_0(v *Value) bool {
// result: (AND (NEGV <t> (SGTU (Const64 <typ.UInt64> [64]) y)) (SRLV <t> (ZeroExt16to64 x) y))
for {
t := v.Type
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPS64AND)
......@@ -7377,6 +7625,7 @@ func rewriteValueMIPS64_OpRsh16Ux8_0(v *Value) bool {
// result: (AND (NEGV <t> (SGTU (Const64 <typ.UInt64> [64]) (ZeroExt8to64 y))) (SRLV <t> (ZeroExt16to64 x) (ZeroExt8to64 y)))
for {
t := v.Type
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPS64AND)
......@@ -7411,6 +7660,7 @@ func rewriteValueMIPS64_OpRsh16x16_0(v *Value) bool {
// result: (SRAV (SignExt16to64 x) (OR <t> (NEGV <t> (SGTU (ZeroExt16to64 y) (Const64 <typ.UInt64> [63]))) (ZeroExt16to64 y)))
for {
t := v.Type
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPS64SRAV)
......@@ -7445,6 +7695,7 @@ func rewriteValueMIPS64_OpRsh16x32_0(v *Value) bool {
// result: (SRAV (SignExt16to64 x) (OR <t> (NEGV <t> (SGTU (ZeroExt32to64 y) (Const64 <typ.UInt64> [63]))) (ZeroExt32to64 y)))
for {
t := v.Type
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPS64SRAV)
......@@ -7479,6 +7730,7 @@ func rewriteValueMIPS64_OpRsh16x64_0(v *Value) bool {
// result: (SRAV (SignExt16to64 x) (OR <t> (NEGV <t> (SGTU y (Const64 <typ.UInt64> [63]))) y))
for {
t := v.Type
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPS64SRAV)
......@@ -7509,6 +7761,7 @@ func rewriteValueMIPS64_OpRsh16x8_0(v *Value) bool {
// result: (SRAV (SignExt16to64 x) (OR <t> (NEGV <t> (SGTU (ZeroExt8to64 y) (Const64 <typ.UInt64> [63]))) (ZeroExt8to64 y)))
for {
t := v.Type
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPS64SRAV)
......@@ -7543,6 +7796,7 @@ func rewriteValueMIPS64_OpRsh32Ux16_0(v *Value) bool {
// result: (AND (NEGV <t> (SGTU (Const64 <typ.UInt64> [64]) (ZeroExt16to64 y))) (SRLV <t> (ZeroExt32to64 x) (ZeroExt16to64 y)))
for {
t := v.Type
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPS64AND)
......@@ -7577,6 +7831,7 @@ func rewriteValueMIPS64_OpRsh32Ux32_0(v *Value) bool {
// result: (AND (NEGV <t> (SGTU (Const64 <typ.UInt64> [64]) (ZeroExt32to64 y))) (SRLV <t> (ZeroExt32to64 x) (ZeroExt32to64 y)))
for {
t := v.Type
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPS64AND)
......@@ -7611,6 +7866,7 @@ func rewriteValueMIPS64_OpRsh32Ux64_0(v *Value) bool {
// result: (AND (NEGV <t> (SGTU (Const64 <typ.UInt64> [64]) y)) (SRLV <t> (ZeroExt32to64 x) y))
for {
t := v.Type
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPS64AND)
......@@ -7641,6 +7897,7 @@ func rewriteValueMIPS64_OpRsh32Ux8_0(v *Value) bool {
// result: (AND (NEGV <t> (SGTU (Const64 <typ.UInt64> [64]) (ZeroExt8to64 y))) (SRLV <t> (ZeroExt32to64 x) (ZeroExt8to64 y)))
for {
t := v.Type
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPS64AND)
......@@ -7675,6 +7932,7 @@ func rewriteValueMIPS64_OpRsh32x16_0(v *Value) bool {
// result: (SRAV (SignExt32to64 x) (OR <t> (NEGV <t> (SGTU (ZeroExt16to64 y) (Const64 <typ.UInt64> [63]))) (ZeroExt16to64 y)))
for {
t := v.Type
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPS64SRAV)
......@@ -7709,6 +7967,7 @@ func rewriteValueMIPS64_OpRsh32x32_0(v *Value) bool {
// result: (SRAV (SignExt32to64 x) (OR <t> (NEGV <t> (SGTU (ZeroExt32to64 y) (Const64 <typ.UInt64> [63]))) (ZeroExt32to64 y)))
for {
t := v.Type
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPS64SRAV)
......@@ -7743,6 +8002,7 @@ func rewriteValueMIPS64_OpRsh32x64_0(v *Value) bool {
// result: (SRAV (SignExt32to64 x) (OR <t> (NEGV <t> (SGTU y (Const64 <typ.UInt64> [63]))) y))
for {
t := v.Type
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPS64SRAV)
......@@ -7773,6 +8033,7 @@ func rewriteValueMIPS64_OpRsh32x8_0(v *Value) bool {
// result: (SRAV (SignExt32to64 x) (OR <t> (NEGV <t> (SGTU (ZeroExt8to64 y) (Const64 <typ.UInt64> [63]))) (ZeroExt8to64 y)))
for {
t := v.Type
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPS64SRAV)
......@@ -7807,6 +8068,7 @@ func rewriteValueMIPS64_OpRsh64Ux16_0(v *Value) bool {
// result: (AND (NEGV <t> (SGTU (Const64 <typ.UInt64> [64]) (ZeroExt16to64 y))) (SRLV <t> x (ZeroExt16to64 y)))
for {
t := v.Type
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPS64AND)
......@@ -7839,6 +8101,7 @@ func rewriteValueMIPS64_OpRsh64Ux32_0(v *Value) bool {
// result: (AND (NEGV <t> (SGTU (Const64 <typ.UInt64> [64]) (ZeroExt32to64 y))) (SRLV <t> x (ZeroExt32to64 y)))
for {
t := v.Type
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPS64AND)
......@@ -7871,6 +8134,7 @@ func rewriteValueMIPS64_OpRsh64Ux64_0(v *Value) bool {
// result: (AND (NEGV <t> (SGTU (Const64 <typ.UInt64> [64]) y)) (SRLV <t> x y))
for {
t := v.Type
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPS64AND)
......@@ -7899,6 +8163,7 @@ func rewriteValueMIPS64_OpRsh64Ux8_0(v *Value) bool {
// result: (AND (NEGV <t> (SGTU (Const64 <typ.UInt64> [64]) (ZeroExt8to64 y))) (SRLV <t> x (ZeroExt8to64 y)))
for {
t := v.Type
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPS64AND)
......@@ -7931,6 +8196,7 @@ func rewriteValueMIPS64_OpRsh64x16_0(v *Value) bool {
// result: (SRAV x (OR <t> (NEGV <t> (SGTU (ZeroExt16to64 y) (Const64 <typ.UInt64> [63]))) (ZeroExt16to64 y)))
for {
t := v.Type
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPS64SRAV)
......@@ -7963,6 +8229,7 @@ func rewriteValueMIPS64_OpRsh64x32_0(v *Value) bool {
// result: (SRAV x (OR <t> (NEGV <t> (SGTU (ZeroExt32to64 y) (Const64 <typ.UInt64> [63]))) (ZeroExt32to64 y)))
for {
t := v.Type
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPS64SRAV)
......@@ -7995,6 +8262,7 @@ func rewriteValueMIPS64_OpRsh64x64_0(v *Value) bool {
// result: (SRAV x (OR <t> (NEGV <t> (SGTU y (Const64 <typ.UInt64> [63]))) y))
for {
t := v.Type
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPS64SRAV)
......@@ -8023,6 +8291,7 @@ func rewriteValueMIPS64_OpRsh64x8_0(v *Value) bool {
// result: (SRAV x (OR <t> (NEGV <t> (SGTU (ZeroExt8to64 y) (Const64 <typ.UInt64> [63]))) (ZeroExt8to64 y)))
for {
t := v.Type
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPS64SRAV)
......@@ -8055,6 +8324,7 @@ func rewriteValueMIPS64_OpRsh8Ux16_0(v *Value) bool {
// result: (AND (NEGV <t> (SGTU (Const64 <typ.UInt64> [64]) (ZeroExt16to64 y))) (SRLV <t> (ZeroExt8to64 x) (ZeroExt16to64 y)))
for {
t := v.Type
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPS64AND)
......@@ -8089,6 +8359,7 @@ func rewriteValueMIPS64_OpRsh8Ux32_0(v *Value) bool {
// result: (AND (NEGV <t> (SGTU (Const64 <typ.UInt64> [64]) (ZeroExt32to64 y))) (SRLV <t> (ZeroExt8to64 x) (ZeroExt32to64 y)))
for {
t := v.Type
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPS64AND)
......@@ -8123,6 +8394,7 @@ func rewriteValueMIPS64_OpRsh8Ux64_0(v *Value) bool {
// result: (AND (NEGV <t> (SGTU (Const64 <typ.UInt64> [64]) y)) (SRLV <t> (ZeroExt8to64 x) y))
for {
t := v.Type
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPS64AND)
......@@ -8153,6 +8425,7 @@ func rewriteValueMIPS64_OpRsh8Ux8_0(v *Value) bool {
// result: (AND (NEGV <t> (SGTU (Const64 <typ.UInt64> [64]) (ZeroExt8to64 y))) (SRLV <t> (ZeroExt8to64 x) (ZeroExt8to64 y)))
for {
t := v.Type
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPS64AND)
......@@ -8187,6 +8460,7 @@ func rewriteValueMIPS64_OpRsh8x16_0(v *Value) bool {
// result: (SRAV (SignExt8to64 x) (OR <t> (NEGV <t> (SGTU (ZeroExt16to64 y) (Const64 <typ.UInt64> [63]))) (ZeroExt16to64 y)))
for {
t := v.Type
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPS64SRAV)
......@@ -8221,6 +8495,7 @@ func rewriteValueMIPS64_OpRsh8x32_0(v *Value) bool {
// result: (SRAV (SignExt8to64 x) (OR <t> (NEGV <t> (SGTU (ZeroExt32to64 y) (Const64 <typ.UInt64> [63]))) (ZeroExt32to64 y)))
for {
t := v.Type
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPS64SRAV)
......@@ -8255,6 +8530,7 @@ func rewriteValueMIPS64_OpRsh8x64_0(v *Value) bool {
// result: (SRAV (SignExt8to64 x) (OR <t> (NEGV <t> (SGTU y (Const64 <typ.UInt64> [63]))) y))
for {
t := v.Type
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPS64SRAV)
......@@ -8285,6 +8561,7 @@ func rewriteValueMIPS64_OpRsh8x8_0(v *Value) bool {
// result: (SRAV (SignExt8to64 x) (OR <t> (NEGV <t> (SGTU (ZeroExt8to64 y) (Const64 <typ.UInt64> [63]))) (ZeroExt8to64 y)))
for {
t := v.Type
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPS64SRAV)
......@@ -8318,6 +8595,7 @@ func rewriteValueMIPS64_OpSelect0_0(v *Value) bool {
if v_0.Op != OpMIPS64DIVVU {
break
}
_ = v_0.Args[1]
v_0_1 := v_0.Args[1]
if v_0_1.Op != OpMIPS64MOVVconst {
break
......@@ -8337,6 +8615,7 @@ func rewriteValueMIPS64_OpSelect0_0(v *Value) bool {
if v_0.Op != OpMIPS64DIVVU {
break
}
_ = v_0.Args[1]
x := v_0.Args[0]
v_0_1 := v_0.Args[1]
if v_0_1.Op != OpMIPS64MOVVconst {
......@@ -8359,6 +8638,7 @@ func rewriteValueMIPS64_OpSelect0_0(v *Value) bool {
if v_0.Op != OpMIPS64DIVV {
break
}
_ = v_0.Args[1]
v_0_0 := v_0.Args[0]
if v_0_0.Op != OpMIPS64MOVVconst {
break
......@@ -8381,6 +8661,7 @@ func rewriteValueMIPS64_OpSelect0_0(v *Value) bool {
if v_0.Op != OpMIPS64DIVVU {
break
}
_ = v_0.Args[1]
v_0_0 := v_0.Args[0]
if v_0_0.Op != OpMIPS64MOVVconst {
break
......@@ -8406,6 +8687,7 @@ func rewriteValueMIPS64_OpSelect1_0(v *Value) bool {
if v_0.Op != OpMIPS64MULVU {
break
}
_ = v_0.Args[1]
x := v_0.Args[0]
v_0_1 := v_0.Args[1]
if v_0_1.Op != OpMIPS64MOVVconst {
......@@ -8426,6 +8708,7 @@ func rewriteValueMIPS64_OpSelect1_0(v *Value) bool {
if v_0.Op != OpMIPS64MULVU {
break
}
_ = v_0.Args[1]
v_0_0 := v_0.Args[0]
if v_0_0.Op != OpMIPS64MOVVconst {
break
......@@ -8446,6 +8729,7 @@ func rewriteValueMIPS64_OpSelect1_0(v *Value) bool {
if v_0.Op != OpMIPS64MULVU {
break
}
_ = v_0.Args[1]
v_0_1 := v_0.Args[1]
if v_0_1.Op != OpMIPS64MOVVconst {
break
......@@ -8465,6 +8749,7 @@ func rewriteValueMIPS64_OpSelect1_0(v *Value) bool {
if v_0.Op != OpMIPS64MULVU {
break
}
_ = v_0.Args[1]
v_0_0 := v_0.Args[0]
if v_0_0.Op != OpMIPS64MOVVconst {
break
......@@ -8484,6 +8769,7 @@ func rewriteValueMIPS64_OpSelect1_0(v *Value) bool {
if v_0.Op != OpMIPS64MULVU {
break
}
_ = v_0.Args[1]
x := v_0.Args[0]
v_0_1 := v_0.Args[1]
if v_0_1.Op != OpMIPS64MOVVconst {
......@@ -8505,6 +8791,7 @@ func rewriteValueMIPS64_OpSelect1_0(v *Value) bool {
if v_0.Op != OpMIPS64MULVU {
break
}
_ = v_0.Args[1]
v_0_0 := v_0.Args[0]
if v_0_0.Op != OpMIPS64MOVVconst {
break
......@@ -8526,6 +8813,7 @@ func rewriteValueMIPS64_OpSelect1_0(v *Value) bool {
if v_0.Op != OpMIPS64MULVU {
break
}
_ = v_0.Args[1]
x := v_0.Args[0]
v_0_1 := v_0.Args[1]
if v_0_1.Op != OpMIPS64MOVVconst {
......@@ -8548,6 +8836,7 @@ func rewriteValueMIPS64_OpSelect1_0(v *Value) bool {
if v_0.Op != OpMIPS64MULVU {
break
}
_ = v_0.Args[1]
v_0_0 := v_0.Args[0]
if v_0_0.Op != OpMIPS64MOVVconst {
break
......@@ -8570,6 +8859,7 @@ func rewriteValueMIPS64_OpSelect1_0(v *Value) bool {
if v_0.Op != OpMIPS64MULVU {
break
}
_ = v_0.Args[1]
v_0_0 := v_0.Args[0]
if v_0_0.Op != OpMIPS64MOVVconst {
break
......@@ -8590,6 +8880,7 @@ func rewriteValueMIPS64_OpSelect1_0(v *Value) bool {
if v_0.Op != OpMIPS64MULVU {
break
}
_ = v_0.Args[1]
x := v_0.Args[0]
v_0_1 := v_0.Args[1]
if v_0_1.Op != OpMIPS64MOVVconst {
......@@ -8613,6 +8904,7 @@ func rewriteValueMIPS64_OpSelect1_10(v *Value) bool {
if v_0.Op != OpMIPS64MULVU {
break
}
_ = v_0.Args[1]
v_0_0 := v_0.Args[0]
if v_0_0.Op != OpMIPS64MOVVconst {
break
......@@ -8632,6 +8924,7 @@ func rewriteValueMIPS64_OpSelect1_10(v *Value) bool {
if v_0.Op != OpMIPS64MULVU {
break
}
_ = v_0.Args[1]
v_0_1 := v_0.Args[1]
if v_0_1.Op != OpMIPS64MOVVconst {
break
......@@ -8651,6 +8944,7 @@ func rewriteValueMIPS64_OpSelect1_10(v *Value) bool {
if v_0.Op != OpMIPS64MULVU {
break
}
_ = v_0.Args[1]
v_0_0 := v_0.Args[0]
if v_0_0.Op != OpMIPS64MOVVconst {
break
......@@ -8672,6 +8966,7 @@ func rewriteValueMIPS64_OpSelect1_10(v *Value) bool {
if v_0.Op != OpMIPS64MULVU {
break
}
_ = v_0.Args[1]
x := v_0.Args[0]
v_0_1 := v_0.Args[1]
if v_0_1.Op != OpMIPS64MOVVconst {
......@@ -8693,6 +8988,7 @@ func rewriteValueMIPS64_OpSelect1_10(v *Value) bool {
if v_0.Op != OpMIPS64MULVU {
break
}
_ = v_0.Args[1]
v_0_0 := v_0.Args[0]
if v_0_0.Op != OpMIPS64MOVVconst {
break
......@@ -8715,6 +9011,7 @@ func rewriteValueMIPS64_OpSelect1_10(v *Value) bool {
if v_0.Op != OpMIPS64MULVU {
break
}
_ = v_0.Args[1]
x := v_0.Args[0]
v_0_1 := v_0.Args[1]
if v_0_1.Op != OpMIPS64MOVVconst {
......@@ -8737,6 +9034,7 @@ func rewriteValueMIPS64_OpSelect1_10(v *Value) bool {
if v_0.Op != OpMIPS64DIVVU {
break
}
_ = v_0.Args[1]
x := v_0.Args[0]
v_0_1 := v_0.Args[1]
if v_0_1.Op != OpMIPS64MOVVconst {
......@@ -8758,6 +9056,7 @@ func rewriteValueMIPS64_OpSelect1_10(v *Value) bool {
if v_0.Op != OpMIPS64DIVVU {
break
}
_ = v_0.Args[1]
x := v_0.Args[0]
v_0_1 := v_0.Args[1]
if v_0_1.Op != OpMIPS64MOVVconst {
......@@ -8780,6 +9079,7 @@ func rewriteValueMIPS64_OpSelect1_10(v *Value) bool {
if v_0.Op != OpMIPS64MULVU {
break
}
_ = v_0.Args[1]
v_0_0 := v_0.Args[0]
if v_0_0.Op != OpMIPS64MOVVconst {
break
......@@ -8802,6 +9102,7 @@ func rewriteValueMIPS64_OpSelect1_10(v *Value) bool {
if v_0.Op != OpMIPS64MULVU {
break
}
_ = v_0.Args[1]
v_0_0 := v_0.Args[0]
if v_0_0.Op != OpMIPS64MOVVconst {
break
......@@ -8827,6 +9128,7 @@ func rewriteValueMIPS64_OpSelect1_20(v *Value) bool {
if v_0.Op != OpMIPS64DIVV {
break
}
_ = v_0.Args[1]
v_0_0 := v_0.Args[0]
if v_0_0.Op != OpMIPS64MOVVconst {
break
......@@ -8849,6 +9151,7 @@ func rewriteValueMIPS64_OpSelect1_20(v *Value) bool {
if v_0.Op != OpMIPS64DIVVU {
break
}
_ = v_0.Args[1]
v_0_0 := v_0.Args[0]
if v_0_0.Op != OpMIPS64MOVVconst {
break
......@@ -8969,6 +9272,7 @@ func rewriteValueMIPS64_OpStore_0(v *Value) bool {
// result: (MOVBstore ptr val mem)
for {
t := v.Aux
_ = v.Args[2]
ptr := v.Args[0]
val := v.Args[1]
mem := v.Args[2]
......@@ -8986,6 +9290,7 @@ func rewriteValueMIPS64_OpStore_0(v *Value) bool {
// result: (MOVHstore ptr val mem)
for {
t := v.Aux
_ = v.Args[2]
ptr := v.Args[0]
val := v.Args[1]
mem := v.Args[2]
......@@ -9003,6 +9308,7 @@ func rewriteValueMIPS64_OpStore_0(v *Value) bool {
// result: (MOVWstore ptr val mem)
for {
t := v.Aux
_ = v.Args[2]
ptr := v.Args[0]
val := v.Args[1]
mem := v.Args[2]
......@@ -9020,6 +9326,7 @@ func rewriteValueMIPS64_OpStore_0(v *Value) bool {
// result: (MOVVstore ptr val mem)
for {
t := v.Aux
_ = v.Args[2]
ptr := v.Args[0]
val := v.Args[1]
mem := v.Args[2]
......@@ -9037,6 +9344,7 @@ func rewriteValueMIPS64_OpStore_0(v *Value) bool {
// result: (MOVFstore ptr val mem)
for {
t := v.Aux
_ = v.Args[2]
ptr := v.Args[0]
val := v.Args[1]
mem := v.Args[2]
......@@ -9054,6 +9362,7 @@ func rewriteValueMIPS64_OpStore_0(v *Value) bool {
// result: (MOVDstore ptr val mem)
for {
t := v.Aux
_ = v.Args[2]
ptr := v.Args[0]
val := v.Args[1]
mem := v.Args[2]
......@@ -9073,6 +9382,7 @@ func rewriteValueMIPS64_OpSub16_0(v *Value) bool {
// cond:
// result: (SUBV x y)
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPS64SUBV)
......@@ -9086,6 +9396,7 @@ func rewriteValueMIPS64_OpSub32_0(v *Value) bool {
// cond:
// result: (SUBV x y)
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPS64SUBV)
......@@ -9099,6 +9410,7 @@ func rewriteValueMIPS64_OpSub32F_0(v *Value) bool {
// cond:
// result: (SUBF x y)
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPS64SUBF)
......@@ -9112,6 +9424,7 @@ func rewriteValueMIPS64_OpSub64_0(v *Value) bool {
// cond:
// result: (SUBV x y)
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPS64SUBV)
......@@ -9125,6 +9438,7 @@ func rewriteValueMIPS64_OpSub64F_0(v *Value) bool {
// cond:
// result: (SUBD x y)
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPS64SUBD)
......@@ -9138,6 +9452,7 @@ func rewriteValueMIPS64_OpSub8_0(v *Value) bool {
// cond:
// result: (SUBV x y)
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPS64SUBV)
......@@ -9151,6 +9466,7 @@ func rewriteValueMIPS64_OpSubPtr_0(v *Value) bool {
// cond:
// result: (SUBV x y)
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPS64SUBV)
......@@ -9236,6 +9552,7 @@ func rewriteValueMIPS64_OpXor16_0(v *Value) bool {
// cond:
// result: (XOR x y)
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPS64XOR)
......@@ -9249,6 +9566,7 @@ func rewriteValueMIPS64_OpXor32_0(v *Value) bool {
// cond:
// result: (XOR x y)
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPS64XOR)
......@@ -9262,6 +9580,7 @@ func rewriteValueMIPS64_OpXor64_0(v *Value) bool {
// cond:
// result: (XOR x y)
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPS64XOR)
......@@ -9275,6 +9594,7 @@ func rewriteValueMIPS64_OpXor8_0(v *Value) bool {
// cond:
// result: (XOR x y)
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMIPS64XOR)
......@@ -9295,6 +9615,7 @@ func rewriteValueMIPS64_OpZero_0(v *Value) bool {
if v.AuxInt != 0 {
break
}
_ = v.Args[1]
mem := v.Args[1]
v.reset(OpCopy)
v.Type = mem.Type
......@@ -9308,6 +9629,7 @@ func rewriteValueMIPS64_OpZero_0(v *Value) bool {
if v.AuxInt != 1 {
break
}
_ = v.Args[1]
ptr := v.Args[0]
mem := v.Args[1]
v.reset(OpMIPS64MOVBstore)
......@@ -9326,6 +9648,7 @@ func rewriteValueMIPS64_OpZero_0(v *Value) bool {
break
}
t := v.Aux
_ = v.Args[1]
ptr := v.Args[0]
mem := v.Args[1]
if !(t.(*types.Type).Alignment()%2 == 0) {
......@@ -9346,6 +9669,7 @@ func rewriteValueMIPS64_OpZero_0(v *Value) bool {
if v.AuxInt != 2 {
break
}
_ = v.Args[1]
ptr := v.Args[0]
mem := v.Args[1]
v.reset(OpMIPS64MOVBstore)
......@@ -9372,6 +9696,7 @@ func rewriteValueMIPS64_OpZero_0(v *Value) bool {
break
}
t := v.Aux
_ = v.Args[1]
ptr := v.Args[0]
mem := v.Args[1]
if !(t.(*types.Type).Alignment()%4 == 0) {
......@@ -9393,6 +9718,7 @@ func rewriteValueMIPS64_OpZero_0(v *Value) bool {
break
}
t := v.Aux
_ = v.Args[1]
ptr := v.Args[0]
mem := v.Args[1]
if !(t.(*types.Type).Alignment()%2 == 0) {
......@@ -9421,6 +9747,7 @@ func rewriteValueMIPS64_OpZero_0(v *Value) bool {
if v.AuxInt != 4 {
break
}
_ = v.Args[1]
ptr := v.Args[0]
mem := v.Args[1]
v.reset(OpMIPS64MOVBstore)
......@@ -9461,6 +9788,7 @@ func rewriteValueMIPS64_OpZero_0(v *Value) bool {
break
}
t := v.Aux
_ = v.Args[1]
ptr := v.Args[0]
mem := v.Args[1]
if !(t.(*types.Type).Alignment()%8 == 0) {
......@@ -9482,6 +9810,7 @@ func rewriteValueMIPS64_OpZero_0(v *Value) bool {
break
}
t := v.Aux
_ = v.Args[1]
ptr := v.Args[0]
mem := v.Args[1]
if !(t.(*types.Type).Alignment()%4 == 0) {
......@@ -9511,6 +9840,7 @@ func rewriteValueMIPS64_OpZero_0(v *Value) bool {
break
}
t := v.Aux
_ = v.Args[1]
ptr := v.Args[0]
mem := v.Args[1]
if !(t.(*types.Type).Alignment()%2 == 0) {
......@@ -9562,6 +9892,7 @@ func rewriteValueMIPS64_OpZero_10(v *Value) bool {
if v.AuxInt != 3 {
break
}
_ = v.Args[1]
ptr := v.Args[0]
mem := v.Args[1]
v.reset(OpMIPS64MOVBstore)
......@@ -9595,6 +9926,7 @@ func rewriteValueMIPS64_OpZero_10(v *Value) bool {
break
}
t := v.Aux
_ = v.Args[1]
ptr := v.Args[0]
mem := v.Args[1]
if !(t.(*types.Type).Alignment()%2 == 0) {
......@@ -9631,6 +9963,7 @@ func rewriteValueMIPS64_OpZero_10(v *Value) bool {
break
}
t := v.Aux
_ = v.Args[1]
ptr := v.Args[0]
mem := v.Args[1]
if !(t.(*types.Type).Alignment()%4 == 0) {
......@@ -9667,6 +10000,7 @@ func rewriteValueMIPS64_OpZero_10(v *Value) bool {
break
}
t := v.Aux
_ = v.Args[1]
ptr := v.Args[0]
mem := v.Args[1]
if !(t.(*types.Type).Alignment()%8 == 0) {
......@@ -9696,6 +10030,7 @@ func rewriteValueMIPS64_OpZero_10(v *Value) bool {
break
}
t := v.Aux
_ = v.Args[1]
ptr := v.Args[0]
mem := v.Args[1]
if !(t.(*types.Type).Alignment()%8 == 0) {
......@@ -9730,6 +10065,7 @@ func rewriteValueMIPS64_OpZero_10(v *Value) bool {
for {
s := v.AuxInt
t := v.Aux
_ = v.Args[1]
ptr := v.Args[0]
mem := v.Args[1]
if !(s%8 == 0 && s > 24 && s <= 8*128 && t.(*types.Type).Alignment()%8 == 0 && !config.noDuffDevice) {
......@@ -9747,6 +10083,7 @@ func rewriteValueMIPS64_OpZero_10(v *Value) bool {
for {
s := v.AuxInt
t := v.Aux
_ = v.Args[1]
ptr := v.Args[0]
mem := v.Args[1]
if !((s > 8*128 || config.noDuffDevice) || t.(*types.Type).Alignment()%8 != 0) {
......@@ -9880,6 +10217,7 @@ func rewriteBlockMIPS64(b *Block) bool {
if cmp.Op != OpMIPS64SGT {
break
}
_ = cmp.Args[1]
b.Kind = BlockMIPS64NE
b.SetControl(cmp)
return true
......@@ -9899,6 +10237,7 @@ func rewriteBlockMIPS64(b *Block) bool {
if cmp.Op != OpMIPS64SGTU {
break
}
_ = cmp.Args[1]
b.Kind = BlockMIPS64NE
b.SetControl(cmp)
return true
......@@ -9965,6 +10304,7 @@ func rewriteBlockMIPS64(b *Block) bool {
if v.Op != OpMIPS64SGTU {
break
}
_ = v.Args[1]
x := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpMIPS64MOVVconst {
......@@ -10001,6 +10341,7 @@ func rewriteBlockMIPS64(b *Block) bool {
if v.Op != OpMIPS64SGT {
break
}
_ = v.Args[1]
x := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpMIPS64MOVVconst {
......@@ -10235,6 +10576,7 @@ func rewriteBlockMIPS64(b *Block) bool {
if cmp.Op != OpMIPS64SGT {
break
}
_ = cmp.Args[1]
b.Kind = BlockMIPS64EQ
b.SetControl(cmp)
return true
......@@ -10254,6 +10596,7 @@ func rewriteBlockMIPS64(b *Block) bool {
if cmp.Op != OpMIPS64SGTU {
break
}
_ = cmp.Args[1]
b.Kind = BlockMIPS64EQ
b.SetControl(cmp)
return true
......@@ -10320,6 +10663,7 @@ func rewriteBlockMIPS64(b *Block) bool {
if v.Op != OpMIPS64SGTU {
break
}
_ = v.Args[1]
x := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpMIPS64MOVVconst {
......@@ -10356,6 +10700,7 @@ func rewriteBlockMIPS64(b *Block) bool {
if v.Op != OpMIPS64SGT {
break
}
_ = v.Args[1]
x := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpMIPS64MOVVconst {
......
......@@ -625,6 +625,7 @@ func rewriteValuePPC64_OpAdd16_0(v *Value) bool {
// cond:
// result: (ADD x y)
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64ADD)
......@@ -638,6 +639,7 @@ func rewriteValuePPC64_OpAdd32_0(v *Value) bool {
// cond:
// result: (ADD x y)
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64ADD)
......@@ -651,6 +653,7 @@ func rewriteValuePPC64_OpAdd32F_0(v *Value) bool {
// cond:
// result: (FADDS x y)
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64FADDS)
......@@ -664,6 +667,7 @@ func rewriteValuePPC64_OpAdd64_0(v *Value) bool {
// cond:
// result: (ADD x y)
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64ADD)
......@@ -677,6 +681,7 @@ func rewriteValuePPC64_OpAdd64F_0(v *Value) bool {
// cond:
// result: (FADD x y)
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64FADD)
......@@ -690,6 +695,7 @@ func rewriteValuePPC64_OpAdd8_0(v *Value) bool {
// cond:
// result: (ADD x y)
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64ADD)
......@@ -703,6 +709,7 @@ func rewriteValuePPC64_OpAddPtr_0(v *Value) bool {
// cond:
// result: (ADD x y)
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64ADD)
......@@ -729,6 +736,7 @@ func rewriteValuePPC64_OpAnd16_0(v *Value) bool {
// cond:
// result: (AND x y)
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64AND)
......@@ -742,6 +750,7 @@ func rewriteValuePPC64_OpAnd32_0(v *Value) bool {
// cond:
// result: (AND x y)
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64AND)
......@@ -755,6 +764,7 @@ func rewriteValuePPC64_OpAnd64_0(v *Value) bool {
// cond:
// result: (AND x y)
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64AND)
......@@ -768,6 +778,7 @@ func rewriteValuePPC64_OpAnd8_0(v *Value) bool {
// cond:
// result: (AND x y)
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64AND)
......@@ -781,6 +792,7 @@ func rewriteValuePPC64_OpAndB_0(v *Value) bool {
// cond:
// result: (AND x y)
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64AND)
......@@ -794,6 +806,7 @@ func rewriteValuePPC64_OpAtomicAdd32_0(v *Value) bool {
// cond:
// result: (LoweredAtomicAdd32 ptr val mem)
for {
_ = v.Args[2]
ptr := v.Args[0]
val := v.Args[1]
mem := v.Args[2]
......@@ -809,6 +822,7 @@ func rewriteValuePPC64_OpAtomicAdd64_0(v *Value) bool {
// cond:
// result: (LoweredAtomicAdd64 ptr val mem)
for {
_ = v.Args[2]
ptr := v.Args[0]
val := v.Args[1]
mem := v.Args[2]
......@@ -824,6 +838,7 @@ func rewriteValuePPC64_OpAtomicAnd8_0(v *Value) bool {
// cond:
// result: (LoweredAtomicAnd8 ptr val mem)
for {
_ = v.Args[2]
ptr := v.Args[0]
val := v.Args[1]
mem := v.Args[2]
......@@ -839,6 +854,7 @@ func rewriteValuePPC64_OpAtomicCompareAndSwap32_0(v *Value) bool {
// cond:
// result: (LoweredAtomicCas32 ptr old new_ mem)
for {
_ = v.Args[3]
ptr := v.Args[0]
old := v.Args[1]
new_ := v.Args[2]
......@@ -856,6 +872,7 @@ func rewriteValuePPC64_OpAtomicCompareAndSwap64_0(v *Value) bool {
// cond:
// result: (LoweredAtomicCas64 ptr old new_ mem)
for {
_ = v.Args[3]
ptr := v.Args[0]
old := v.Args[1]
new_ := v.Args[2]
......@@ -873,6 +890,7 @@ func rewriteValuePPC64_OpAtomicExchange32_0(v *Value) bool {
// cond:
// result: (LoweredAtomicExchange32 ptr val mem)
for {
_ = v.Args[2]
ptr := v.Args[0]
val := v.Args[1]
mem := v.Args[2]
......@@ -888,6 +906,7 @@ func rewriteValuePPC64_OpAtomicExchange64_0(v *Value) bool {
// cond:
// result: (LoweredAtomicExchange64 ptr val mem)
for {
_ = v.Args[2]
ptr := v.Args[0]
val := v.Args[1]
mem := v.Args[2]
......@@ -903,6 +922,7 @@ func rewriteValuePPC64_OpAtomicLoad32_0(v *Value) bool {
// cond:
// result: (LoweredAtomicLoad32 ptr mem)
for {
_ = v.Args[1]
ptr := v.Args[0]
mem := v.Args[1]
v.reset(OpPPC64LoweredAtomicLoad32)
......@@ -916,6 +936,7 @@ func rewriteValuePPC64_OpAtomicLoad64_0(v *Value) bool {
// cond:
// result: (LoweredAtomicLoad64 ptr mem)
for {
_ = v.Args[1]
ptr := v.Args[0]
mem := v.Args[1]
v.reset(OpPPC64LoweredAtomicLoad64)
......@@ -929,6 +950,7 @@ func rewriteValuePPC64_OpAtomicLoadPtr_0(v *Value) bool {
// cond:
// result: (LoweredAtomicLoadPtr ptr mem)
for {
_ = v.Args[1]
ptr := v.Args[0]
mem := v.Args[1]
v.reset(OpPPC64LoweredAtomicLoadPtr)
......@@ -942,6 +964,7 @@ func rewriteValuePPC64_OpAtomicOr8_0(v *Value) bool {
// cond:
// result: (LoweredAtomicOr8 ptr val mem)
for {
_ = v.Args[2]
ptr := v.Args[0]
val := v.Args[1]
mem := v.Args[2]
......@@ -957,6 +980,7 @@ func rewriteValuePPC64_OpAtomicStore32_0(v *Value) bool {
// cond:
// result: (LoweredAtomicStore32 ptr val mem)
for {
_ = v.Args[2]
ptr := v.Args[0]
val := v.Args[1]
mem := v.Args[2]
......@@ -972,6 +996,7 @@ func rewriteValuePPC64_OpAtomicStore64_0(v *Value) bool {
// cond:
// result: (LoweredAtomicStore64 ptr val mem)
for {
_ = v.Args[2]
ptr := v.Args[0]
val := v.Args[1]
mem := v.Args[2]
......@@ -990,6 +1015,7 @@ func rewriteValuePPC64_OpAvg64u_0(v *Value) bool {
// result: (ADD (SRDconst <t> (SUB <t> x y) [1]) y)
for {
t := v.Type
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64ADD)
......@@ -1050,6 +1076,7 @@ func rewriteValuePPC64_OpClosureCall_0(v *Value) bool {
// result: (CALLclosure [argwid] entry closure mem)
for {
argwid := v.AuxInt
_ = v.Args[2]
entry := v.Args[0]
closure := v.Args[1]
mem := v.Args[2]
......@@ -1202,6 +1229,7 @@ func rewriteValuePPC64_OpConvert_0(v *Value) bool {
// result: (MOVDconvert <t> x mem)
for {
t := v.Type
_ = v.Args[1]
x := v.Args[0]
mem := v.Args[1]
v.reset(OpPPC64MOVDconvert)
......@@ -1431,6 +1459,7 @@ func rewriteValuePPC64_OpDiv16_0(v *Value) bool {
// cond:
// result: (DIVW (SignExt16to32 x) (SignExt16to32 y))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64DIVW)
......@@ -1452,6 +1481,7 @@ func rewriteValuePPC64_OpDiv16u_0(v *Value) bool {
// cond:
// result: (DIVWU (ZeroExt16to32 x) (ZeroExt16to32 y))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64DIVWU)
......@@ -1469,6 +1499,7 @@ func rewriteValuePPC64_OpDiv32_0(v *Value) bool {
// cond:
// result: (DIVW x y)
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64DIVW)
......@@ -1482,6 +1513,7 @@ func rewriteValuePPC64_OpDiv32F_0(v *Value) bool {
// cond:
// result: (FDIVS x y)
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64FDIVS)
......@@ -1495,6 +1527,7 @@ func rewriteValuePPC64_OpDiv32u_0(v *Value) bool {
// cond:
// result: (DIVWU x y)
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64DIVWU)
......@@ -1508,6 +1541,7 @@ func rewriteValuePPC64_OpDiv64_0(v *Value) bool {
// cond:
// result: (DIVD x y)
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64DIVD)
......@@ -1521,6 +1555,7 @@ func rewriteValuePPC64_OpDiv64F_0(v *Value) bool {
// cond:
// result: (FDIV x y)
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64FDIV)
......@@ -1534,6 +1569,7 @@ func rewriteValuePPC64_OpDiv64u_0(v *Value) bool {
// cond:
// result: (DIVDU x y)
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64DIVDU)
......@@ -1551,6 +1587,7 @@ func rewriteValuePPC64_OpDiv8_0(v *Value) bool {
// cond:
// result: (DIVW (SignExt8to32 x) (SignExt8to32 y))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64DIVW)
......@@ -1572,6 +1609,7 @@ func rewriteValuePPC64_OpDiv8u_0(v *Value) bool {
// cond:
// result: (DIVWU (ZeroExt8to32 x) (ZeroExt8to32 y))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64DIVWU)
......@@ -1593,6 +1631,7 @@ func rewriteValuePPC64_OpEq16_0(v *Value) bool {
// cond: isSigned(x.Type) && isSigned(y.Type)
// result: (Equal (CMPW (SignExt16to32 x) (SignExt16to32 y)))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
if !(isSigned(x.Type) && isSigned(y.Type)) {
......@@ -1613,6 +1652,7 @@ func rewriteValuePPC64_OpEq16_0(v *Value) bool {
// cond:
// result: (Equal (CMPW (ZeroExt16to32 x) (ZeroExt16to32 y)))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64Equal)
......@@ -1634,6 +1674,7 @@ func rewriteValuePPC64_OpEq32_0(v *Value) bool {
// cond:
// result: (Equal (CMPW x y))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64Equal)
......@@ -1651,6 +1692,7 @@ func rewriteValuePPC64_OpEq32F_0(v *Value) bool {
// cond:
// result: (Equal (FCMPU x y))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64Equal)
......@@ -1668,6 +1710,7 @@ func rewriteValuePPC64_OpEq64_0(v *Value) bool {
// cond:
// result: (Equal (CMP x y))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64Equal)
......@@ -1685,6 +1728,7 @@ func rewriteValuePPC64_OpEq64F_0(v *Value) bool {
// cond:
// result: (Equal (FCMPU x y))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64Equal)
......@@ -1704,6 +1748,7 @@ func rewriteValuePPC64_OpEq8_0(v *Value) bool {
// cond: isSigned(x.Type) && isSigned(y.Type)
// result: (Equal (CMPW (SignExt8to32 x) (SignExt8to32 y)))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
if !(isSigned(x.Type) && isSigned(y.Type)) {
......@@ -1724,6 +1769,7 @@ func rewriteValuePPC64_OpEq8_0(v *Value) bool {
// cond:
// result: (Equal (CMPW (ZeroExt8to32 x) (ZeroExt8to32 y)))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64Equal)
......@@ -1747,6 +1793,7 @@ func rewriteValuePPC64_OpEqB_0(v *Value) bool {
// cond:
// result: (ANDconst [1] (EQV x y))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64ANDconst)
......@@ -1765,6 +1812,7 @@ func rewriteValuePPC64_OpEqPtr_0(v *Value) bool {
// cond:
// result: (Equal (CMP x y))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64Equal)
......@@ -1784,6 +1832,7 @@ func rewriteValuePPC64_OpGeq16_0(v *Value) bool {
// cond:
// result: (GreaterEqual (CMPW (SignExt16to32 x) (SignExt16to32 y)))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64GreaterEqual)
......@@ -1807,6 +1856,7 @@ func rewriteValuePPC64_OpGeq16U_0(v *Value) bool {
// cond:
// result: (GreaterEqual (CMPWU (ZeroExt16to32 x) (ZeroExt16to32 y)))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64GreaterEqual)
......@@ -1828,6 +1878,7 @@ func rewriteValuePPC64_OpGeq32_0(v *Value) bool {
// cond:
// result: (GreaterEqual (CMPW x y))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64GreaterEqual)
......@@ -1845,6 +1896,7 @@ func rewriteValuePPC64_OpGeq32F_0(v *Value) bool {
// cond:
// result: (FGreaterEqual (FCMPU x y))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64FGreaterEqual)
......@@ -1862,6 +1914,7 @@ func rewriteValuePPC64_OpGeq32U_0(v *Value) bool {
// cond:
// result: (GreaterEqual (CMPWU x y))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64GreaterEqual)
......@@ -1879,6 +1932,7 @@ func rewriteValuePPC64_OpGeq64_0(v *Value) bool {
// cond:
// result: (GreaterEqual (CMP x y))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64GreaterEqual)
......@@ -1896,6 +1950,7 @@ func rewriteValuePPC64_OpGeq64F_0(v *Value) bool {
// cond:
// result: (FGreaterEqual (FCMPU x y))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64FGreaterEqual)
......@@ -1913,6 +1968,7 @@ func rewriteValuePPC64_OpGeq64U_0(v *Value) bool {
// cond:
// result: (GreaterEqual (CMPU x y))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64GreaterEqual)
......@@ -1932,6 +1988,7 @@ func rewriteValuePPC64_OpGeq8_0(v *Value) bool {
// cond:
// result: (GreaterEqual (CMPW (SignExt8to32 x) (SignExt8to32 y)))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64GreaterEqual)
......@@ -1955,6 +2012,7 @@ func rewriteValuePPC64_OpGeq8U_0(v *Value) bool {
// cond:
// result: (GreaterEqual (CMPWU (ZeroExt8to32 x) (ZeroExt8to32 y)))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64GreaterEqual)
......@@ -1987,6 +2045,7 @@ func rewriteValuePPC64_OpGreater16_0(v *Value) bool {
// cond:
// result: (GreaterThan (CMPW (SignExt16to32 x) (SignExt16to32 y)))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64GreaterThan)
......@@ -2010,6 +2069,7 @@ func rewriteValuePPC64_OpGreater16U_0(v *Value) bool {
// cond:
// result: (GreaterThan (CMPWU (ZeroExt16to32 x) (ZeroExt16to32 y)))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64GreaterThan)
......@@ -2031,6 +2091,7 @@ func rewriteValuePPC64_OpGreater32_0(v *Value) bool {
// cond:
// result: (GreaterThan (CMPW x y))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64GreaterThan)
......@@ -2048,6 +2109,7 @@ func rewriteValuePPC64_OpGreater32F_0(v *Value) bool {
// cond:
// result: (FGreaterThan (FCMPU x y))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64FGreaterThan)
......@@ -2065,6 +2127,7 @@ func rewriteValuePPC64_OpGreater32U_0(v *Value) bool {
// cond:
// result: (GreaterThan (CMPWU x y))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64GreaterThan)
......@@ -2082,6 +2145,7 @@ func rewriteValuePPC64_OpGreater64_0(v *Value) bool {
// cond:
// result: (GreaterThan (CMP x y))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64GreaterThan)
......@@ -2099,6 +2163,7 @@ func rewriteValuePPC64_OpGreater64F_0(v *Value) bool {
// cond:
// result: (FGreaterThan (FCMPU x y))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64FGreaterThan)
......@@ -2116,6 +2181,7 @@ func rewriteValuePPC64_OpGreater64U_0(v *Value) bool {
// cond:
// result: (GreaterThan (CMPU x y))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64GreaterThan)
......@@ -2135,6 +2201,7 @@ func rewriteValuePPC64_OpGreater8_0(v *Value) bool {
// cond:
// result: (GreaterThan (CMPW (SignExt8to32 x) (SignExt8to32 y)))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64GreaterThan)
......@@ -2158,6 +2225,7 @@ func rewriteValuePPC64_OpGreater8U_0(v *Value) bool {
// cond:
// result: (GreaterThan (CMPWU (ZeroExt8to32 x) (ZeroExt8to32 y)))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64GreaterThan)
......@@ -2177,6 +2245,7 @@ func rewriteValuePPC64_OpHmul32_0(v *Value) bool {
// cond:
// result: (MULHW x y)
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64MULHW)
......@@ -2190,6 +2259,7 @@ func rewriteValuePPC64_OpHmul32u_0(v *Value) bool {
// cond:
// result: (MULHWU x y)
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64MULHWU)
......@@ -2203,6 +2273,7 @@ func rewriteValuePPC64_OpHmul64_0(v *Value) bool {
// cond:
// result: (MULHD x y)
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64MULHD)
......@@ -2216,6 +2287,7 @@ func rewriteValuePPC64_OpHmul64u_0(v *Value) bool {
// cond:
// result: (MULHDU x y)
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64MULHDU)
......@@ -2230,6 +2302,7 @@ func rewriteValuePPC64_OpInterCall_0(v *Value) bool {
// result: (CALLinter [argwid] entry mem)
for {
argwid := v.AuxInt
_ = v.Args[1]
entry := v.Args[0]
mem := v.Args[1]
v.reset(OpPPC64CALLinter)
......@@ -2246,6 +2319,7 @@ func rewriteValuePPC64_OpIsInBounds_0(v *Value) bool {
// cond:
// result: (LessThan (CMPU idx len))
for {
_ = v.Args[1]
idx := v.Args[0]
len := v.Args[1]
v.reset(OpPPC64LessThan)
......@@ -2279,6 +2353,7 @@ func rewriteValuePPC64_OpIsSliceInBounds_0(v *Value) bool {
// cond:
// result: (LessEqual (CMPU idx len))
for {
_ = v.Args[1]
idx := v.Args[0]
len := v.Args[1]
v.reset(OpPPC64LessEqual)
......@@ -2298,6 +2373,7 @@ func rewriteValuePPC64_OpLeq16_0(v *Value) bool {
// cond:
// result: (LessEqual (CMPW (SignExt16to32 x) (SignExt16to32 y)))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64LessEqual)
......@@ -2321,6 +2397,7 @@ func rewriteValuePPC64_OpLeq16U_0(v *Value) bool {
// cond:
// result: (LessEqual (CMPWU (ZeroExt16to32 x) (ZeroExt16to32 y)))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64LessEqual)
......@@ -2342,6 +2419,7 @@ func rewriteValuePPC64_OpLeq32_0(v *Value) bool {
// cond:
// result: (LessEqual (CMPW x y))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64LessEqual)
......@@ -2359,6 +2437,7 @@ func rewriteValuePPC64_OpLeq32F_0(v *Value) bool {
// cond:
// result: (FLessEqual (FCMPU x y))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64FLessEqual)
......@@ -2376,6 +2455,7 @@ func rewriteValuePPC64_OpLeq32U_0(v *Value) bool {
// cond:
// result: (LessEqual (CMPWU x y))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64LessEqual)
......@@ -2393,6 +2473,7 @@ func rewriteValuePPC64_OpLeq64_0(v *Value) bool {
// cond:
// result: (LessEqual (CMP x y))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64LessEqual)
......@@ -2410,6 +2491,7 @@ func rewriteValuePPC64_OpLeq64F_0(v *Value) bool {
// cond:
// result: (FLessEqual (FCMPU x y))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64FLessEqual)
......@@ -2427,6 +2509,7 @@ func rewriteValuePPC64_OpLeq64U_0(v *Value) bool {
// cond:
// result: (LessEqual (CMPU x y))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64LessEqual)
......@@ -2446,6 +2529,7 @@ func rewriteValuePPC64_OpLeq8_0(v *Value) bool {
// cond:
// result: (LessEqual (CMPW (SignExt8to32 x) (SignExt8to32 y)))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64LessEqual)
......@@ -2469,6 +2553,7 @@ func rewriteValuePPC64_OpLeq8U_0(v *Value) bool {
// cond:
// result: (LessEqual (CMPWU (ZeroExt8to32 x) (ZeroExt8to32 y)))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64LessEqual)
......@@ -2492,6 +2577,7 @@ func rewriteValuePPC64_OpLess16_0(v *Value) bool {
// cond:
// result: (LessThan (CMPW (SignExt16to32 x) (SignExt16to32 y)))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64LessThan)
......@@ -2515,6 +2601,7 @@ func rewriteValuePPC64_OpLess16U_0(v *Value) bool {
// cond:
// result: (LessThan (CMPWU (ZeroExt16to32 x) (ZeroExt16to32 y)))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64LessThan)
......@@ -2536,6 +2623,7 @@ func rewriteValuePPC64_OpLess32_0(v *Value) bool {
// cond:
// result: (LessThan (CMPW x y))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64LessThan)
......@@ -2553,6 +2641,7 @@ func rewriteValuePPC64_OpLess32F_0(v *Value) bool {
// cond:
// result: (FLessThan (FCMPU x y))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64FLessThan)
......@@ -2570,6 +2659,7 @@ func rewriteValuePPC64_OpLess32U_0(v *Value) bool {
// cond:
// result: (LessThan (CMPWU x y))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64LessThan)
......@@ -2587,6 +2677,7 @@ func rewriteValuePPC64_OpLess64_0(v *Value) bool {
// cond:
// result: (LessThan (CMP x y))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64LessThan)
......@@ -2604,6 +2695,7 @@ func rewriteValuePPC64_OpLess64F_0(v *Value) bool {
// cond:
// result: (FLessThan (FCMPU x y))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64FLessThan)
......@@ -2621,6 +2713,7 @@ func rewriteValuePPC64_OpLess64U_0(v *Value) bool {
// cond:
// result: (LessThan (CMPU x y))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64LessThan)
......@@ -2640,6 +2733,7 @@ func rewriteValuePPC64_OpLess8_0(v *Value) bool {
// cond:
// result: (LessThan (CMPW (SignExt8to32 x) (SignExt8to32 y)))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64LessThan)
......@@ -2663,6 +2757,7 @@ func rewriteValuePPC64_OpLess8U_0(v *Value) bool {
// cond:
// result: (LessThan (CMPWU (ZeroExt8to32 x) (ZeroExt8to32 y)))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64LessThan)
......@@ -2687,6 +2782,7 @@ func rewriteValuePPC64_OpLoad_0(v *Value) bool {
// result: (MOVDload ptr mem)
for {
t := v.Type
_ = v.Args[1]
ptr := v.Args[0]
mem := v.Args[1]
if !(is64BitInt(t) || isPtr(t)) {
......@@ -2702,6 +2798,7 @@ func rewriteValuePPC64_OpLoad_0(v *Value) bool {
// result: (MOVWload ptr mem)
for {
t := v.Type
_ = v.Args[1]
ptr := v.Args[0]
mem := v.Args[1]
if !(is32BitInt(t) && isSigned(t)) {
......@@ -2717,6 +2814,7 @@ func rewriteValuePPC64_OpLoad_0(v *Value) bool {
// result: (MOVWZload ptr mem)
for {
t := v.Type
_ = v.Args[1]
ptr := v.Args[0]
mem := v.Args[1]
if !(is32BitInt(t) && !isSigned(t)) {
......@@ -2732,6 +2830,7 @@ func rewriteValuePPC64_OpLoad_0(v *Value) bool {
// result: (MOVHload ptr mem)
for {
t := v.Type
_ = v.Args[1]
ptr := v.Args[0]
mem := v.Args[1]
if !(is16BitInt(t) && isSigned(t)) {
......@@ -2747,6 +2846,7 @@ func rewriteValuePPC64_OpLoad_0(v *Value) bool {
// result: (MOVHZload ptr mem)
for {
t := v.Type
_ = v.Args[1]
ptr := v.Args[0]
mem := v.Args[1]
if !(is16BitInt(t) && !isSigned(t)) {
......@@ -2762,6 +2862,7 @@ func rewriteValuePPC64_OpLoad_0(v *Value) bool {
// result: (MOVBZload ptr mem)
for {
t := v.Type
_ = v.Args[1]
ptr := v.Args[0]
mem := v.Args[1]
if !(t.IsBoolean()) {
......@@ -2777,6 +2878,7 @@ func rewriteValuePPC64_OpLoad_0(v *Value) bool {
// result: (MOVBreg (MOVBZload ptr mem))
for {
t := v.Type
_ = v.Args[1]
ptr := v.Args[0]
mem := v.Args[1]
if !(is8BitInt(t) && isSigned(t)) {
......@@ -2794,6 +2896,7 @@ func rewriteValuePPC64_OpLoad_0(v *Value) bool {
// result: (MOVBZload ptr mem)
for {
t := v.Type
_ = v.Args[1]
ptr := v.Args[0]
mem := v.Args[1]
if !(is8BitInt(t) && !isSigned(t)) {
......@@ -2809,6 +2912,7 @@ func rewriteValuePPC64_OpLoad_0(v *Value) bool {
// result: (FMOVSload ptr mem)
for {
t := v.Type
_ = v.Args[1]
ptr := v.Args[0]
mem := v.Args[1]
if !(is32BitFloat(t)) {
......@@ -2824,6 +2928,7 @@ func rewriteValuePPC64_OpLoad_0(v *Value) bool {
// result: (FMOVDload ptr mem)
for {
t := v.Type
_ = v.Args[1]
ptr := v.Args[0]
mem := v.Args[1]
if !(is64BitFloat(t)) {
......@@ -2845,6 +2950,7 @@ func rewriteValuePPC64_OpLsh16x16_0(v *Value) bool {
// cond:
// result: (SLW x (ORN y <typ.Int64> (MaskIfNotCarry (ADDconstForCarry [-16] (ZeroExt16to64 y)))))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64SLW)
......@@ -2872,6 +2978,7 @@ func rewriteValuePPC64_OpLsh16x32_0(v *Value) bool {
// cond: uint32(c) < 16
// result: (SLWconst x [c])
for {
_ = v.Args[1]
x := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpConst64 {
......@@ -2890,6 +2997,7 @@ func rewriteValuePPC64_OpLsh16x32_0(v *Value) bool {
// cond: uint32(c) < 16
// result: (SLWconst x [c])
for {
_ = v.Args[1]
x := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpPPC64MOVDconst {
......@@ -2908,6 +3016,7 @@ func rewriteValuePPC64_OpLsh16x32_0(v *Value) bool {
// cond:
// result: (SLW x (ORN y <typ.Int64> (MaskIfNotCarry (ADDconstForCarry [-16] (ZeroExt32to64 y)))))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64SLW)
......@@ -2935,6 +3044,7 @@ func rewriteValuePPC64_OpLsh16x64_0(v *Value) bool {
// cond: uint64(c) < 16
// result: (SLWconst x [c])
for {
_ = v.Args[1]
x := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpConst64 {
......@@ -2953,6 +3063,7 @@ func rewriteValuePPC64_OpLsh16x64_0(v *Value) bool {
// cond: uint64(c) >= 16
// result: (MOVDconst [0])
for {
_ = v.Args[1]
v_1 := v.Args[1]
if v_1.Op != OpConst64 {
break
......@@ -2969,6 +3080,7 @@ func rewriteValuePPC64_OpLsh16x64_0(v *Value) bool {
// cond: uint64(c) < 16
// result: (SLWconst x [c])
for {
_ = v.Args[1]
x := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpPPC64MOVDconst {
......@@ -2987,6 +3099,7 @@ func rewriteValuePPC64_OpLsh16x64_0(v *Value) bool {
// cond:
// result: (SLW x (ORN y <typ.Int64> (MaskIfNotCarry (ADDconstForCarry [-16] y))))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64SLW)
......@@ -3012,6 +3125,7 @@ func rewriteValuePPC64_OpLsh16x8_0(v *Value) bool {
// cond:
// result: (SLW x (ORN y <typ.Int64> (MaskIfNotCarry (ADDconstForCarry [-16] (ZeroExt8to64 y)))))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64SLW)
......@@ -3039,6 +3153,7 @@ func rewriteValuePPC64_OpLsh32x16_0(v *Value) bool {
// cond:
// result: (SLW x (ORN y <typ.Int64> (MaskIfNotCarry (ADDconstForCarry [-32] (ZeroExt16to64 y)))))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64SLW)
......@@ -3066,6 +3181,7 @@ func rewriteValuePPC64_OpLsh32x32_0(v *Value) bool {
// cond: uint32(c) < 32
// result: (SLWconst x [c])
for {
_ = v.Args[1]
x := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpConst64 {
......@@ -3084,6 +3200,7 @@ func rewriteValuePPC64_OpLsh32x32_0(v *Value) bool {
// cond: uint32(c) < 32
// result: (SLWconst x [c])
for {
_ = v.Args[1]
x := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpPPC64MOVDconst {
......@@ -3102,6 +3219,7 @@ func rewriteValuePPC64_OpLsh32x32_0(v *Value) bool {
// cond:
// result: (SLW x (ORN y <typ.Int64> (MaskIfNotCarry (ADDconstForCarry [-32] (ZeroExt32to64 y)))))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64SLW)
......@@ -3129,6 +3247,7 @@ func rewriteValuePPC64_OpLsh32x64_0(v *Value) bool {
// cond: uint64(c) < 32
// result: (SLWconst x [c])
for {
_ = v.Args[1]
x := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpConst64 {
......@@ -3147,6 +3266,7 @@ func rewriteValuePPC64_OpLsh32x64_0(v *Value) bool {
// cond: uint64(c) >= 32
// result: (MOVDconst [0])
for {
_ = v.Args[1]
v_1 := v.Args[1]
if v_1.Op != OpConst64 {
break
......@@ -3163,6 +3283,7 @@ func rewriteValuePPC64_OpLsh32x64_0(v *Value) bool {
// cond: uint64(c) < 32
// result: (SLWconst x [c])
for {
_ = v.Args[1]
x := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpPPC64MOVDconst {
......@@ -3181,6 +3302,7 @@ func rewriteValuePPC64_OpLsh32x64_0(v *Value) bool {
// cond:
// result: (SLW x (ORN y <typ.Int64> (MaskIfNotCarry (ADDconstForCarry [-32] y))))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64SLW)
......@@ -3206,6 +3328,7 @@ func rewriteValuePPC64_OpLsh32x8_0(v *Value) bool {
// cond:
// result: (SLW x (ORN y <typ.Int64> (MaskIfNotCarry (ADDconstForCarry [-32] (ZeroExt8to64 y)))))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64SLW)
......@@ -3233,6 +3356,7 @@ func rewriteValuePPC64_OpLsh64x16_0(v *Value) bool {
// cond:
// result: (SLD x (ORN y <typ.Int64> (MaskIfNotCarry (ADDconstForCarry [-64] (ZeroExt16to64 y)))))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64SLD)
......@@ -3260,6 +3384,7 @@ func rewriteValuePPC64_OpLsh64x32_0(v *Value) bool {
// cond: uint32(c) < 64
// result: (SLDconst x [c])
for {
_ = v.Args[1]
x := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpConst64 {
......@@ -3278,6 +3403,7 @@ func rewriteValuePPC64_OpLsh64x32_0(v *Value) bool {
// cond: uint32(c) < 64
// result: (SLDconst x [c])
for {
_ = v.Args[1]
x := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpPPC64MOVDconst {
......@@ -3296,6 +3422,7 @@ func rewriteValuePPC64_OpLsh64x32_0(v *Value) bool {
// cond:
// result: (SLD x (ORN y <typ.Int64> (MaskIfNotCarry (ADDconstForCarry [-64] (ZeroExt32to64 y)))))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64SLD)
......@@ -3323,6 +3450,7 @@ func rewriteValuePPC64_OpLsh64x64_0(v *Value) bool {
// cond: uint64(c) < 64
// result: (SLDconst x [c])
for {
_ = v.Args[1]
x := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpConst64 {
......@@ -3341,6 +3469,7 @@ func rewriteValuePPC64_OpLsh64x64_0(v *Value) bool {
// cond: uint64(c) >= 64
// result: (MOVDconst [0])
for {
_ = v.Args[1]
v_1 := v.Args[1]
if v_1.Op != OpConst64 {
break
......@@ -3357,6 +3486,7 @@ func rewriteValuePPC64_OpLsh64x64_0(v *Value) bool {
// cond: uint64(c) < 64
// result: (SLDconst x [c])
for {
_ = v.Args[1]
x := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpPPC64MOVDconst {
......@@ -3375,6 +3505,7 @@ func rewriteValuePPC64_OpLsh64x64_0(v *Value) bool {
// cond:
// result: (SLD x (ORN y <typ.Int64> (MaskIfNotCarry (ADDconstForCarry [-64] y))))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64SLD)
......@@ -3400,6 +3531,7 @@ func rewriteValuePPC64_OpLsh64x8_0(v *Value) bool {
// cond:
// result: (SLD x (ORN y <typ.Int64> (MaskIfNotCarry (ADDconstForCarry [-64] (ZeroExt8to64 y)))))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64SLD)
......@@ -3427,6 +3559,7 @@ func rewriteValuePPC64_OpLsh8x16_0(v *Value) bool {
// cond:
// result: (SLW x (ORN y <typ.Int64> (MaskIfNotCarry (ADDconstForCarry [-8] (ZeroExt16to64 y)))))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64SLW)
......@@ -3454,6 +3587,7 @@ func rewriteValuePPC64_OpLsh8x32_0(v *Value) bool {
// cond: uint32(c) < 8
// result: (SLWconst x [c])
for {
_ = v.Args[1]
x := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpConst64 {
......@@ -3472,6 +3606,7 @@ func rewriteValuePPC64_OpLsh8x32_0(v *Value) bool {
// cond: uint32(c) < 8
// result: (SLWconst x [c])
for {
_ = v.Args[1]
x := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpPPC64MOVDconst {
......@@ -3490,6 +3625,7 @@ func rewriteValuePPC64_OpLsh8x32_0(v *Value) bool {
// cond:
// result: (SLW x (ORN y <typ.Int64> (MaskIfNotCarry (ADDconstForCarry [-8] (ZeroExt32to64 y)))))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64SLW)
......@@ -3517,6 +3653,7 @@ func rewriteValuePPC64_OpLsh8x64_0(v *Value) bool {
// cond: uint64(c) < 8
// result: (SLWconst x [c])
for {
_ = v.Args[1]
x := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpConst64 {
......@@ -3535,6 +3672,7 @@ func rewriteValuePPC64_OpLsh8x64_0(v *Value) bool {
// cond: uint64(c) >= 8
// result: (MOVDconst [0])
for {
_ = v.Args[1]
v_1 := v.Args[1]
if v_1.Op != OpConst64 {
break
......@@ -3551,6 +3689,7 @@ func rewriteValuePPC64_OpLsh8x64_0(v *Value) bool {
// cond: uint64(c) < 8
// result: (SLWconst x [c])
for {
_ = v.Args[1]
x := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpPPC64MOVDconst {
......@@ -3569,6 +3708,7 @@ func rewriteValuePPC64_OpLsh8x64_0(v *Value) bool {
// cond:
// result: (SLW x (ORN y <typ.Int64> (MaskIfNotCarry (ADDconstForCarry [-8] y))))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64SLW)
......@@ -3594,6 +3734,7 @@ func rewriteValuePPC64_OpLsh8x8_0(v *Value) bool {
// cond:
// result: (SLW x (ORN y <typ.Int64> (MaskIfNotCarry (ADDconstForCarry [-8] (ZeroExt8to64 y)))))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64SLW)
......@@ -3621,6 +3762,7 @@ func rewriteValuePPC64_OpMod16_0(v *Value) bool {
// cond:
// result: (Mod32 (SignExt16to32 x) (SignExt16to32 y))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMod32)
......@@ -3642,6 +3784,7 @@ func rewriteValuePPC64_OpMod16u_0(v *Value) bool {
// cond:
// result: (Mod32u (ZeroExt16to32 x) (ZeroExt16to32 y))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMod32u)
......@@ -3663,6 +3806,7 @@ func rewriteValuePPC64_OpMod32_0(v *Value) bool {
// cond:
// result: (SUB x (MULLW y (DIVW x y)))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64SUB)
......@@ -3686,6 +3830,7 @@ func rewriteValuePPC64_OpMod32u_0(v *Value) bool {
// cond:
// result: (SUB x (MULLW y (DIVWU x y)))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64SUB)
......@@ -3709,6 +3854,7 @@ func rewriteValuePPC64_OpMod64_0(v *Value) bool {
// cond:
// result: (SUB x (MULLD y (DIVD x y)))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64SUB)
......@@ -3732,6 +3878,7 @@ func rewriteValuePPC64_OpMod64u_0(v *Value) bool {
// cond:
// result: (SUB x (MULLD y (DIVDU x y)))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64SUB)
......@@ -3755,6 +3902,7 @@ func rewriteValuePPC64_OpMod8_0(v *Value) bool {
// cond:
// result: (Mod32 (SignExt8to32 x) (SignExt8to32 y))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMod32)
......@@ -3776,6 +3924,7 @@ func rewriteValuePPC64_OpMod8u_0(v *Value) bool {
// cond:
// result: (Mod32u (ZeroExt8to32 x) (ZeroExt8to32 y))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpMod32u)
......@@ -3800,6 +3949,7 @@ func rewriteValuePPC64_OpMove_0(v *Value) bool {
if v.AuxInt != 0 {
break
}
_ = v.Args[2]
mem := v.Args[2]
v.reset(OpCopy)
v.Type = mem.Type
......@@ -3813,6 +3963,7 @@ func rewriteValuePPC64_OpMove_0(v *Value) bool {
if v.AuxInt != 1 {
break
}
_ = v.Args[2]
dst := v.Args[0]
src := v.Args[1]
mem := v.Args[2]
......@@ -3832,6 +3983,7 @@ func rewriteValuePPC64_OpMove_0(v *Value) bool {
if v.AuxInt != 2 {
break
}
_ = v.Args[2]
dst := v.Args[0]
src := v.Args[1]
mem := v.Args[2]
......@@ -3851,6 +4003,7 @@ func rewriteValuePPC64_OpMove_0(v *Value) bool {
if v.AuxInt != 4 {
break
}
_ = v.Args[2]
dst := v.Args[0]
src := v.Args[1]
mem := v.Args[2]
......@@ -3871,6 +4024,7 @@ func rewriteValuePPC64_OpMove_0(v *Value) bool {
break
}
t := v.Aux
_ = v.Args[2]
dst := v.Args[0]
src := v.Args[1]
mem := v.Args[2]
......@@ -3893,6 +4047,7 @@ func rewriteValuePPC64_OpMove_0(v *Value) bool {
if v.AuxInt != 8 {
break
}
_ = v.Args[2]
dst := v.Args[0]
src := v.Args[1]
mem := v.Args[2]
......@@ -3921,6 +4076,7 @@ func rewriteValuePPC64_OpMove_0(v *Value) bool {
if v.AuxInt != 3 {
break
}
_ = v.Args[2]
dst := v.Args[0]
src := v.Args[1]
mem := v.Args[2]
......@@ -3949,6 +4105,7 @@ func rewriteValuePPC64_OpMove_0(v *Value) bool {
if v.AuxInt != 5 {
break
}
_ = v.Args[2]
dst := v.Args[0]
src := v.Args[1]
mem := v.Args[2]
......@@ -3977,6 +4134,7 @@ func rewriteValuePPC64_OpMove_0(v *Value) bool {
if v.AuxInt != 6 {
break
}
_ = v.Args[2]
dst := v.Args[0]
src := v.Args[1]
mem := v.Args[2]
......@@ -4005,6 +4163,7 @@ func rewriteValuePPC64_OpMove_0(v *Value) bool {
if v.AuxInt != 7 {
break
}
_ = v.Args[2]
dst := v.Args[0]
src := v.Args[1]
mem := v.Args[2]
......@@ -4043,6 +4202,7 @@ func rewriteValuePPC64_OpMove_10(v *Value) bool {
// result: (LoweredMove [s] dst src mem)
for {
s := v.AuxInt
_ = v.Args[2]
dst := v.Args[0]
src := v.Args[1]
mem := v.Args[2]
......@@ -4063,6 +4223,7 @@ func rewriteValuePPC64_OpMul16_0(v *Value) bool {
// cond:
// result: (MULLW x y)
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64MULLW)
......@@ -4076,6 +4237,7 @@ func rewriteValuePPC64_OpMul32_0(v *Value) bool {
// cond:
// result: (MULLW x y)
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64MULLW)
......@@ -4089,6 +4251,7 @@ func rewriteValuePPC64_OpMul32F_0(v *Value) bool {
// cond:
// result: (FMULS x y)
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64FMULS)
......@@ -4102,6 +4265,7 @@ func rewriteValuePPC64_OpMul64_0(v *Value) bool {
// cond:
// result: (MULLD x y)
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64MULLD)
......@@ -4115,6 +4279,7 @@ func rewriteValuePPC64_OpMul64F_0(v *Value) bool {
// cond:
// result: (FMUL x y)
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64FMUL)
......@@ -4128,6 +4293,7 @@ func rewriteValuePPC64_OpMul8_0(v *Value) bool {
// cond:
// result: (MULLW x y)
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64MULLW)
......@@ -4211,6 +4377,7 @@ func rewriteValuePPC64_OpNeq16_0(v *Value) bool {
// cond: isSigned(x.Type) && isSigned(y.Type)
// result: (NotEqual (CMPW (SignExt16to32 x) (SignExt16to32 y)))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
if !(isSigned(x.Type) && isSigned(y.Type)) {
......@@ -4231,6 +4398,7 @@ func rewriteValuePPC64_OpNeq16_0(v *Value) bool {
// cond:
// result: (NotEqual (CMPW (ZeroExt16to32 x) (ZeroExt16to32 y)))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64NotEqual)
......@@ -4252,6 +4420,7 @@ func rewriteValuePPC64_OpNeq32_0(v *Value) bool {
// cond:
// result: (NotEqual (CMPW x y))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64NotEqual)
......@@ -4269,6 +4438,7 @@ func rewriteValuePPC64_OpNeq32F_0(v *Value) bool {
// cond:
// result: (NotEqual (FCMPU x y))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64NotEqual)
......@@ -4286,6 +4456,7 @@ func rewriteValuePPC64_OpNeq64_0(v *Value) bool {
// cond:
// result: (NotEqual (CMP x y))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64NotEqual)
......@@ -4303,6 +4474,7 @@ func rewriteValuePPC64_OpNeq64F_0(v *Value) bool {
// cond:
// result: (NotEqual (FCMPU x y))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64NotEqual)
......@@ -4322,6 +4494,7 @@ func rewriteValuePPC64_OpNeq8_0(v *Value) bool {
// cond: isSigned(x.Type) && isSigned(y.Type)
// result: (NotEqual (CMPW (SignExt8to32 x) (SignExt8to32 y)))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
if !(isSigned(x.Type) && isSigned(y.Type)) {
......@@ -4342,6 +4515,7 @@ func rewriteValuePPC64_OpNeq8_0(v *Value) bool {
// cond:
// result: (NotEqual (CMPW (ZeroExt8to32 x) (ZeroExt8to32 y)))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64NotEqual)
......@@ -4361,6 +4535,7 @@ func rewriteValuePPC64_OpNeqB_0(v *Value) bool {
// cond:
// result: (XOR x y)
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64XOR)
......@@ -4376,6 +4551,7 @@ func rewriteValuePPC64_OpNeqPtr_0(v *Value) bool {
// cond:
// result: (NotEqual (CMP x y))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64NotEqual)
......@@ -4391,6 +4567,7 @@ func rewriteValuePPC64_OpNilCheck_0(v *Value) bool {
// cond:
// result: (LoweredNilCheck ptr mem)
for {
_ = v.Args[1]
ptr := v.Args[0]
mem := v.Args[1]
v.reset(OpPPC64LoweredNilCheck)
......@@ -4435,6 +4612,7 @@ func rewriteValuePPC64_OpOr16_0(v *Value) bool {
// cond:
// result: (OR x y)
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64OR)
......@@ -4448,6 +4626,7 @@ func rewriteValuePPC64_OpOr32_0(v *Value) bool {
// cond:
// result: (OR x y)
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64OR)
......@@ -4461,6 +4640,7 @@ func rewriteValuePPC64_OpOr64_0(v *Value) bool {
// cond:
// result: (OR x y)
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64OR)
......@@ -4474,6 +4654,7 @@ func rewriteValuePPC64_OpOr8_0(v *Value) bool {
// cond:
// result: (OR x y)
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64OR)
......@@ -4487,6 +4668,7 @@ func rewriteValuePPC64_OpOrB_0(v *Value) bool {
// cond:
// result: (OR x y)
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64OR)
......@@ -4500,6 +4682,7 @@ func rewriteValuePPC64_OpPPC64ADD_0(v *Value) bool {
// cond: d == 64-c
// result: (ROTLconst [c] x)
for {
_ = v.Args[1]
v_0 := v.Args[0]
if v_0.Op != OpPPC64SLDconst {
break
......@@ -4526,6 +4709,7 @@ func rewriteValuePPC64_OpPPC64ADD_0(v *Value) bool {
// cond: d == 64-c
// result: (ROTLconst [c] x)
for {
_ = v.Args[1]
v_0 := v.Args[0]
if v_0.Op != OpPPC64SRDconst {
break
......@@ -4552,6 +4736,7 @@ func rewriteValuePPC64_OpPPC64ADD_0(v *Value) bool {
// cond: d == 32-c
// result: (ROTLWconst [c] x)
for {
_ = v.Args[1]
v_0 := v.Args[0]
if v_0.Op != OpPPC64SLWconst {
break
......@@ -4578,6 +4763,7 @@ func rewriteValuePPC64_OpPPC64ADD_0(v *Value) bool {
// cond: d == 32-c
// result: (ROTLWconst [c] x)
for {
_ = v.Args[1]
v_0 := v.Args[0]
if v_0.Op != OpPPC64SRWconst {
break
......@@ -4604,6 +4790,7 @@ func rewriteValuePPC64_OpPPC64ADD_0(v *Value) bool {
// cond: is32Bit(c)
// result: (ADDconst [c] x)
for {
_ = v.Args[1]
x := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpPPC64MOVDconst {
......@@ -4622,6 +4809,7 @@ func rewriteValuePPC64_OpPPC64ADD_0(v *Value) bool {
// cond: is32Bit(c)
// result: (ADDconst [c] x)
for {
_ = v.Args[1]
v_0 := v.Args[0]
if v_0.Op != OpPPC64MOVDconst {
break
......@@ -4696,11 +4884,13 @@ func rewriteValuePPC64_OpPPC64AND_0(v *Value) bool {
// cond:
// result: (ANDN x y)
for {
_ = v.Args[1]
x := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpPPC64NOR {
break
}
_ = v_1.Args[1]
y := v_1.Args[0]
if y != v_1.Args[1] {
break
......@@ -4714,10 +4904,12 @@ func rewriteValuePPC64_OpPPC64AND_0(v *Value) bool {
// cond:
// result: (ANDN x y)
for {
_ = v.Args[1]
v_0 := v.Args[0]
if v_0.Op != OpPPC64NOR {
break
}
_ = v_0.Args[1]
y := v_0.Args[0]
if y != v_0.Args[1] {
break
......@@ -4732,6 +4924,7 @@ func rewriteValuePPC64_OpPPC64AND_0(v *Value) bool {
// cond:
// result: (MOVDconst [c&d])
for {
_ = v.Args[1]
v_0 := v.Args[0]
if v_0.Op != OpPPC64MOVDconst {
break
......@@ -4750,6 +4943,7 @@ func rewriteValuePPC64_OpPPC64AND_0(v *Value) bool {
// cond:
// result: (MOVDconst [c&d])
for {
_ = v.Args[1]
v_0 := v.Args[0]
if v_0.Op != OpPPC64MOVDconst {
break
......@@ -4768,6 +4962,7 @@ func rewriteValuePPC64_OpPPC64AND_0(v *Value) bool {
// cond: isU16Bit(c)
// result: (ANDconst [c] x)
for {
_ = v.Args[1]
x := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpPPC64MOVDconst {
......@@ -4786,6 +4981,7 @@ func rewriteValuePPC64_OpPPC64AND_0(v *Value) bool {
// cond: isU16Bit(c)
// result: (ANDconst [c] x)
for {
_ = v.Args[1]
v_0 := v.Args[0]
if v_0.Op != OpPPC64MOVDconst {
break
......@@ -4804,6 +5000,7 @@ func rewriteValuePPC64_OpPPC64AND_0(v *Value) bool {
// cond:
// result: (ANDconst [c&0xFF] x)
for {
_ = v.Args[1]
v_0 := v.Args[0]
if v_0.Op != OpPPC64MOVDconst {
break
......@@ -4813,6 +5010,7 @@ func rewriteValuePPC64_OpPPC64AND_0(v *Value) bool {
if x.Op != OpPPC64MOVBZload {
break
}
_ = x.Args[1]
v.reset(OpPPC64ANDconst)
v.AuxInt = c & 0xFF
v.AddArg(x)
......@@ -4822,10 +5020,12 @@ func rewriteValuePPC64_OpPPC64AND_0(v *Value) bool {
// cond:
// result: (ANDconst [c&0xFF] x)
for {
_ = v.Args[1]
x := v.Args[0]
if x.Op != OpPPC64MOVBZload {
break
}
_ = x.Args[1]
v_1 := v.Args[1]
if v_1.Op != OpPPC64MOVDconst {
break
......@@ -4840,10 +5040,12 @@ func rewriteValuePPC64_OpPPC64AND_0(v *Value) bool {
// cond:
// result: (ANDconst [c&0xFF] x)
for {
_ = v.Args[1]
x := v.Args[0]
if x.Op != OpPPC64MOVBZload {
break
}
_ = x.Args[1]
v_1 := v.Args[1]
if v_1.Op != OpPPC64MOVDconst {
break
......@@ -4858,6 +5060,7 @@ func rewriteValuePPC64_OpPPC64AND_0(v *Value) bool {
// cond:
// result: (ANDconst [c&0xFF] x)
for {
_ = v.Args[1]
v_0 := v.Args[0]
if v_0.Op != OpPPC64MOVDconst {
break
......@@ -4867,6 +5070,7 @@ func rewriteValuePPC64_OpPPC64AND_0(v *Value) bool {
if x.Op != OpPPC64MOVBZload {
break
}
_ = x.Args[1]
v.reset(OpPPC64ANDconst)
v.AuxInt = c & 0xFF
v.AddArg(x)
......@@ -5020,6 +5224,7 @@ func rewriteValuePPC64_OpPPC64CMP_0(v *Value) bool {
// cond: is16Bit(c)
// result: (CMPconst x [c])
for {
_ = v.Args[1]
x := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpPPC64MOVDconst {
......@@ -5038,6 +5243,7 @@ func rewriteValuePPC64_OpPPC64CMP_0(v *Value) bool {
// cond: is16Bit(c)
// result: (InvertFlags (CMPconst y [c]))
for {
_ = v.Args[1]
v_0 := v.Args[0]
if v_0.Op != OpPPC64MOVDconst {
break
......@@ -5063,6 +5269,7 @@ func rewriteValuePPC64_OpPPC64CMPU_0(v *Value) bool {
// cond: isU16Bit(c)
// result: (CMPUconst x [c])
for {
_ = v.Args[1]
x := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpPPC64MOVDconst {
......@@ -5081,6 +5288,7 @@ func rewriteValuePPC64_OpPPC64CMPU_0(v *Value) bool {
// cond: isU16Bit(c)
// result: (InvertFlags (CMPUconst y [c]))
for {
_ = v.Args[1]
v_0 := v.Args[0]
if v_0.Op != OpPPC64MOVDconst {
break
......@@ -5157,6 +5365,7 @@ func rewriteValuePPC64_OpPPC64CMPW_0(v *Value) bool {
// cond:
// result: (CMPW x y)
for {
_ = v.Args[1]
x := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpPPC64MOVWreg {
......@@ -5172,6 +5381,7 @@ func rewriteValuePPC64_OpPPC64CMPW_0(v *Value) bool {
// cond:
// result: (CMPW x y)
for {
_ = v.Args[1]
v_0 := v.Args[0]
if v_0.Op != OpPPC64MOVWreg {
break
......@@ -5187,6 +5397,7 @@ func rewriteValuePPC64_OpPPC64CMPW_0(v *Value) bool {
// cond: is16Bit(c)
// result: (CMPWconst x [c])
for {
_ = v.Args[1]
x := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpPPC64MOVDconst {
......@@ -5205,6 +5416,7 @@ func rewriteValuePPC64_OpPPC64CMPW_0(v *Value) bool {
// cond: is16Bit(c)
// result: (InvertFlags (CMPWconst y [c]))
for {
_ = v.Args[1]
v_0 := v.Args[0]
if v_0.Op != OpPPC64MOVDconst {
break
......@@ -5230,6 +5442,7 @@ func rewriteValuePPC64_OpPPC64CMPWU_0(v *Value) bool {
// cond:
// result: (CMPWU x y)
for {
_ = v.Args[1]
x := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpPPC64MOVWZreg {
......@@ -5245,6 +5458,7 @@ func rewriteValuePPC64_OpPPC64CMPWU_0(v *Value) bool {
// cond:
// result: (CMPWU x y)
for {
_ = v.Args[1]
v_0 := v.Args[0]
if v_0.Op != OpPPC64MOVWZreg {
break
......@@ -5260,6 +5474,7 @@ func rewriteValuePPC64_OpPPC64CMPWU_0(v *Value) bool {
// cond: isU16Bit(c)
// result: (CMPWUconst x [c])
for {
_ = v.Args[1]
x := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpPPC64MOVDconst {
......@@ -5278,6 +5493,7 @@ func rewriteValuePPC64_OpPPC64CMPWU_0(v *Value) bool {
// cond: isU16Bit(c)
// result: (InvertFlags (CMPWUconst y [c]))
for {
_ = v.Args[1]
v_0 := v.Args[0]
if v_0.Op != OpPPC64MOVDconst {
break
......@@ -5506,10 +5722,12 @@ func rewriteValuePPC64_OpPPC64FADD_0(v *Value) bool {
// cond:
// result: (FMADD x y z)
for {
_ = v.Args[1]
v_0 := v.Args[0]
if v_0.Op != OpPPC64FMUL {
break
}
_ = v_0.Args[1]
x := v_0.Args[0]
y := v_0.Args[1]
z := v.Args[1]
......@@ -5523,11 +5741,13 @@ func rewriteValuePPC64_OpPPC64FADD_0(v *Value) bool {
// cond:
// result: (FMADD x y z)
for {
_ = v.Args[1]
z := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpPPC64FMUL {
break
}
_ = v_1.Args[1]
x := v_1.Args[0]
y := v_1.Args[1]
v.reset(OpPPC64FMADD)
......@@ -5543,10 +5763,12 @@ func rewriteValuePPC64_OpPPC64FADDS_0(v *Value) bool {
// cond:
// result: (FMADDS x y z)
for {
_ = v.Args[1]
v_0 := v.Args[0]
if v_0.Op != OpPPC64FMULS {
break
}
_ = v_0.Args[1]
x := v_0.Args[0]
y := v_0.Args[1]
z := v.Args[1]
......@@ -5560,11 +5782,13 @@ func rewriteValuePPC64_OpPPC64FADDS_0(v *Value) bool {
// cond:
// result: (FMADDS x y z)
for {
_ = v.Args[1]
z := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpPPC64FMULS {
break
}
_ = v_1.Args[1]
x := v_1.Args[0]
y := v_1.Args[1]
v.reset(OpPPC64FMADDS)
......@@ -5582,6 +5806,7 @@ func rewriteValuePPC64_OpPPC64FMOVDload_0(v *Value) bool {
for {
off1 := v.AuxInt
sym1 := v.Aux
_ = v.Args[1]
v_0 := v.Args[0]
if v_0.Op != OpPPC64MOVDaddr {
break
......@@ -5606,6 +5831,7 @@ func rewriteValuePPC64_OpPPC64FMOVDload_0(v *Value) bool {
for {
off1 := v.AuxInt
sym := v.Aux
_ = v.Args[1]
v_0 := v.Args[0]
if v_0.Op != OpPPC64ADDconst {
break
......@@ -5632,6 +5858,7 @@ func rewriteValuePPC64_OpPPC64FMOVDstore_0(v *Value) bool {
for {
off1 := v.AuxInt
sym := v.Aux
_ = v.Args[2]
v_0 := v.Args[0]
if v_0.Op != OpPPC64ADDconst {
break
......@@ -5657,6 +5884,7 @@ func rewriteValuePPC64_OpPPC64FMOVDstore_0(v *Value) bool {
for {
off1 := v.AuxInt
sym1 := v.Aux
_ = v.Args[2]
v_0 := v.Args[0]
if v_0.Op != OpPPC64MOVDaddr {
break
......@@ -5686,6 +5914,7 @@ func rewriteValuePPC64_OpPPC64FMOVSload_0(v *Value) bool {
for {
off1 := v.AuxInt
sym1 := v.Aux
_ = v.Args[1]
v_0 := v.Args[0]
if v_0.Op != OpPPC64MOVDaddr {
break
......@@ -5710,6 +5939,7 @@ func rewriteValuePPC64_OpPPC64FMOVSload_0(v *Value) bool {
for {
off1 := v.AuxInt
sym := v.Aux
_ = v.Args[1]
v_0 := v.Args[0]
if v_0.Op != OpPPC64ADDconst {
break
......@@ -5736,6 +5966,7 @@ func rewriteValuePPC64_OpPPC64FMOVSstore_0(v *Value) bool {
for {
off1 := v.AuxInt
sym := v.Aux
_ = v.Args[2]
v_0 := v.Args[0]
if v_0.Op != OpPPC64ADDconst {
break
......@@ -5761,6 +5992,7 @@ func rewriteValuePPC64_OpPPC64FMOVSstore_0(v *Value) bool {
for {
off1 := v.AuxInt
sym1 := v.Aux
_ = v.Args[2]
v_0 := v.Args[0]
if v_0.Op != OpPPC64MOVDaddr {
break
......@@ -5788,10 +6020,12 @@ func rewriteValuePPC64_OpPPC64FSUB_0(v *Value) bool {
// cond:
// result: (FMSUB x y z)
for {
_ = v.Args[1]
v_0 := v.Args[0]
if v_0.Op != OpPPC64FMUL {
break
}
_ = v_0.Args[1]
x := v_0.Args[0]
y := v_0.Args[1]
z := v.Args[1]
......@@ -5808,10 +6042,12 @@ func rewriteValuePPC64_OpPPC64FSUBS_0(v *Value) bool {
// cond:
// result: (FMSUBS x y z)
for {
_ = v.Args[1]
v_0 := v.Args[0]
if v_0.Op != OpPPC64FMULS {
break
}
_ = v_0.Args[1]
x := v_0.Args[0]
y := v_0.Args[1]
z := v.Args[1]
......@@ -6038,6 +6274,7 @@ func rewriteValuePPC64_OpPPC64MOVBZload_0(v *Value) bool {
for {
off1 := v.AuxInt
sym1 := v.Aux
_ = v.Args[1]
v_0 := v.Args[0]
if v_0.Op != OpPPC64MOVDaddr {
break
......@@ -6062,6 +6299,7 @@ func rewriteValuePPC64_OpPPC64MOVBZload_0(v *Value) bool {
for {
off1 := v.AuxInt
sym := v.Aux
_ = v.Args[1]
v_0 := v.Args[0]
if v_0.Op != OpPPC64ADDconst {
break
......@@ -6133,6 +6371,7 @@ func rewriteValuePPC64_OpPPC64MOVBZreg_0(v *Value) bool {
if x.Op != OpPPC64MOVBZload {
break
}
_ = x.Args[1]
v.reset(OpCopy)
v.Type = x.Type
v.AddArg(x)
......@@ -6219,6 +6458,7 @@ func rewriteValuePPC64_OpPPC64MOVBstore_0(v *Value) bool {
for {
off1 := v.AuxInt
sym := v.Aux
_ = v.Args[2]
v_0 := v.Args[0]
if v_0.Op != OpPPC64ADDconst {
break
......@@ -6244,6 +6484,7 @@ func rewriteValuePPC64_OpPPC64MOVBstore_0(v *Value) bool {
for {
off1 := v.AuxInt
sym1 := v.Aux
_ = v.Args[2]
v_0 := v.Args[0]
if v_0.Op != OpPPC64MOVDaddr {
break
......@@ -6270,6 +6511,7 @@ func rewriteValuePPC64_OpPPC64MOVBstore_0(v *Value) bool {
for {
off := v.AuxInt
sym := v.Aux
_ = v.Args[2]
ptr := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpPPC64MOVDconst {
......@@ -6293,6 +6535,7 @@ func rewriteValuePPC64_OpPPC64MOVBstore_0(v *Value) bool {
for {
off := v.AuxInt
sym := v.Aux
_ = v.Args[2]
ptr := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpPPC64MOVBreg {
......@@ -6314,6 +6557,7 @@ func rewriteValuePPC64_OpPPC64MOVBstore_0(v *Value) bool {
for {
off := v.AuxInt
sym := v.Aux
_ = v.Args[2]
ptr := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpPPC64MOVBZreg {
......@@ -6338,6 +6582,7 @@ func rewriteValuePPC64_OpPPC64MOVBstorezero_0(v *Value) bool {
for {
off1 := v.AuxInt
sym := v.Aux
_ = v.Args[1]
v_0 := v.Args[0]
if v_0.Op != OpPPC64ADDconst {
break
......@@ -6361,6 +6606,7 @@ func rewriteValuePPC64_OpPPC64MOVBstorezero_0(v *Value) bool {
for {
off1 := v.AuxInt
sym1 := v.Aux
_ = v.Args[1]
v_0 := v.Args[0]
if v_0.Op != OpPPC64MOVDaddr {
break
......@@ -6388,6 +6634,7 @@ func rewriteValuePPC64_OpPPC64MOVDload_0(v *Value) bool {
for {
off1 := v.AuxInt
sym1 := v.Aux
_ = v.Args[1]
v_0 := v.Args[0]
if v_0.Op != OpPPC64MOVDaddr {
break
......@@ -6412,6 +6659,7 @@ func rewriteValuePPC64_OpPPC64MOVDload_0(v *Value) bool {
for {
off1 := v.AuxInt
sym := v.Aux
_ = v.Args[1]
v_0 := v.Args[0]
if v_0.Op != OpPPC64ADDconst {
break
......@@ -6438,6 +6686,7 @@ func rewriteValuePPC64_OpPPC64MOVDstore_0(v *Value) bool {
for {
off1 := v.AuxInt
sym := v.Aux
_ = v.Args[2]
v_0 := v.Args[0]
if v_0.Op != OpPPC64ADDconst {
break
......@@ -6463,6 +6712,7 @@ func rewriteValuePPC64_OpPPC64MOVDstore_0(v *Value) bool {
for {
off1 := v.AuxInt
sym1 := v.Aux
_ = v.Args[2]
v_0 := v.Args[0]
if v_0.Op != OpPPC64MOVDaddr {
break
......@@ -6489,6 +6739,7 @@ func rewriteValuePPC64_OpPPC64MOVDstore_0(v *Value) bool {
for {
off := v.AuxInt
sym := v.Aux
_ = v.Args[2]
ptr := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpPPC64MOVDconst {
......@@ -6515,6 +6766,7 @@ func rewriteValuePPC64_OpPPC64MOVDstorezero_0(v *Value) bool {
for {
off1 := v.AuxInt
sym := v.Aux
_ = v.Args[1]
v_0 := v.Args[0]
if v_0.Op != OpPPC64ADDconst {
break
......@@ -6538,6 +6790,7 @@ func rewriteValuePPC64_OpPPC64MOVDstorezero_0(v *Value) bool {
for {
off1 := v.AuxInt
sym1 := v.Aux
_ = v.Args[1]
v_0 := v.Args[0]
if v_0.Op != OpPPC64MOVDaddr {
break
......@@ -6565,6 +6818,7 @@ func rewriteValuePPC64_OpPPC64MOVHZload_0(v *Value) bool {
for {
off1 := v.AuxInt
sym1 := v.Aux
_ = v.Args[1]
v_0 := v.Args[0]
if v_0.Op != OpPPC64MOVDaddr {
break
......@@ -6589,6 +6843,7 @@ func rewriteValuePPC64_OpPPC64MOVHZload_0(v *Value) bool {
for {
off1 := v.AuxInt
sym := v.Aux
_ = v.Args[1]
v_0 := v.Args[0]
if v_0.Op != OpPPC64ADDconst {
break
......@@ -6673,6 +6928,7 @@ func rewriteValuePPC64_OpPPC64MOVHZreg_0(v *Value) bool {
if x.Op != OpPPC64MOVHZload {
break
}
_ = x.Args[1]
v.reset(OpCopy)
v.Type = x.Type
v.AddArg(x)
......@@ -6700,6 +6956,7 @@ func rewriteValuePPC64_OpPPC64MOVHload_0(v *Value) bool {
for {
off1 := v.AuxInt
sym1 := v.Aux
_ = v.Args[1]
v_0 := v.Args[0]
if v_0.Op != OpPPC64MOVDaddr {
break
......@@ -6724,6 +6981,7 @@ func rewriteValuePPC64_OpPPC64MOVHload_0(v *Value) bool {
for {
off1 := v.AuxInt
sym := v.Aux
_ = v.Args[1]
v_0 := v.Args[0]
if v_0.Op != OpPPC64ADDconst {
break
......@@ -6808,6 +7066,7 @@ func rewriteValuePPC64_OpPPC64MOVHreg_0(v *Value) bool {
if x.Op != OpPPC64MOVHload {
break
}
_ = x.Args[1]
v.reset(OpCopy)
v.Type = x.Type
v.AddArg(x)
......@@ -6835,6 +7094,7 @@ func rewriteValuePPC64_OpPPC64MOVHstore_0(v *Value) bool {
for {
off1 := v.AuxInt
sym := v.Aux
_ = v.Args[2]
v_0 := v.Args[0]
if v_0.Op != OpPPC64ADDconst {
break
......@@ -6860,6 +7120,7 @@ func rewriteValuePPC64_OpPPC64MOVHstore_0(v *Value) bool {
for {
off1 := v.AuxInt
sym1 := v.Aux
_ = v.Args[2]
v_0 := v.Args[0]
if v_0.Op != OpPPC64MOVDaddr {
break
......@@ -6886,6 +7147,7 @@ func rewriteValuePPC64_OpPPC64MOVHstore_0(v *Value) bool {
for {
off := v.AuxInt
sym := v.Aux
_ = v.Args[2]
ptr := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpPPC64MOVDconst {
......@@ -6909,6 +7171,7 @@ func rewriteValuePPC64_OpPPC64MOVHstore_0(v *Value) bool {
for {
off := v.AuxInt
sym := v.Aux
_ = v.Args[2]
ptr := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpPPC64MOVHreg {
......@@ -6930,6 +7193,7 @@ func rewriteValuePPC64_OpPPC64MOVHstore_0(v *Value) bool {
for {
off := v.AuxInt
sym := v.Aux
_ = v.Args[2]
ptr := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpPPC64MOVHZreg {
......@@ -6954,6 +7218,7 @@ func rewriteValuePPC64_OpPPC64MOVHstorezero_0(v *Value) bool {
for {
off1 := v.AuxInt
sym := v.Aux
_ = v.Args[1]
v_0 := v.Args[0]
if v_0.Op != OpPPC64ADDconst {
break
......@@ -6977,6 +7242,7 @@ func rewriteValuePPC64_OpPPC64MOVHstorezero_0(v *Value) bool {
for {
off1 := v.AuxInt
sym1 := v.Aux
_ = v.Args[1]
v_0 := v.Args[0]
if v_0.Op != OpPPC64MOVDaddr {
break
......@@ -7004,6 +7270,7 @@ func rewriteValuePPC64_OpPPC64MOVWZload_0(v *Value) bool {
for {
off1 := v.AuxInt
sym1 := v.Aux
_ = v.Args[1]
v_0 := v.Args[0]
if v_0.Op != OpPPC64MOVDaddr {
break
......@@ -7028,6 +7295,7 @@ func rewriteValuePPC64_OpPPC64MOVWZload_0(v *Value) bool {
for {
off1 := v.AuxInt
sym := v.Aux
_ = v.Args[1]
v_0 := v.Args[0]
if v_0.Op != OpPPC64ADDconst {
break
......@@ -7073,6 +7341,7 @@ func rewriteValuePPC64_OpPPC64MOVWZreg_0(v *Value) bool {
if y.Op != OpPPC64AND {
break
}
_ = y.Args[1]
y_0 := y.Args[0]
if y_0.Op != OpPPC64MOVDconst {
break
......@@ -7094,6 +7363,7 @@ func rewriteValuePPC64_OpPPC64MOVWZreg_0(v *Value) bool {
if y.Op != OpPPC64AND {
break
}
_ = y.Args[1]
y_1 := y.Args[1]
if y_1.Op != OpPPC64MOVDconst {
break
......@@ -7168,6 +7438,7 @@ func rewriteValuePPC64_OpPPC64MOVWload_0(v *Value) bool {
for {
off1 := v.AuxInt
sym1 := v.Aux
_ = v.Args[1]
v_0 := v.Args[0]
if v_0.Op != OpPPC64MOVDaddr {
break
......@@ -7192,6 +7463,7 @@ func rewriteValuePPC64_OpPPC64MOVWload_0(v *Value) bool {
for {
off1 := v.AuxInt
sym := v.Aux
_ = v.Args[1]
v_0 := v.Args[0]
if v_0.Op != OpPPC64ADDconst {
break
......@@ -7237,6 +7509,7 @@ func rewriteValuePPC64_OpPPC64MOVWreg_0(v *Value) bool {
if y.Op != OpPPC64AND {
break
}
_ = y.Args[1]
y_0 := y.Args[0]
if y_0.Op != OpPPC64MOVDconst {
break
......@@ -7258,6 +7531,7 @@ func rewriteValuePPC64_OpPPC64MOVWreg_0(v *Value) bool {
if y.Op != OpPPC64AND {
break
}
_ = y.Args[1]
y_1 := y.Args[1]
if y_1.Op != OpPPC64MOVDconst {
break
......@@ -7332,6 +7606,7 @@ func rewriteValuePPC64_OpPPC64MOVWstore_0(v *Value) bool {
for {
off1 := v.AuxInt
sym := v.Aux
_ = v.Args[2]
v_0 := v.Args[0]
if v_0.Op != OpPPC64ADDconst {
break
......@@ -7357,6 +7632,7 @@ func rewriteValuePPC64_OpPPC64MOVWstore_0(v *Value) bool {
for {
off1 := v.AuxInt
sym1 := v.Aux
_ = v.Args[2]
v_0 := v.Args[0]
if v_0.Op != OpPPC64MOVDaddr {
break
......@@ -7383,6 +7659,7 @@ func rewriteValuePPC64_OpPPC64MOVWstore_0(v *Value) bool {
for {
off := v.AuxInt
sym := v.Aux
_ = v.Args[2]
ptr := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpPPC64MOVDconst {
......@@ -7406,6 +7683,7 @@ func rewriteValuePPC64_OpPPC64MOVWstore_0(v *Value) bool {
for {
off := v.AuxInt
sym := v.Aux
_ = v.Args[2]
ptr := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpPPC64MOVWreg {
......@@ -7427,6 +7705,7 @@ func rewriteValuePPC64_OpPPC64MOVWstore_0(v *Value) bool {
for {
off := v.AuxInt
sym := v.Aux
_ = v.Args[2]
ptr := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpPPC64MOVWZreg {
......@@ -7451,6 +7730,7 @@ func rewriteValuePPC64_OpPPC64MOVWstorezero_0(v *Value) bool {
for {
off1 := v.AuxInt
sym := v.Aux
_ = v.Args[1]
v_0 := v.Args[0]
if v_0.Op != OpPPC64ADDconst {
break
......@@ -7474,6 +7754,7 @@ func rewriteValuePPC64_OpPPC64MOVWstorezero_0(v *Value) bool {
for {
off1 := v.AuxInt
sym1 := v.Aux
_ = v.Args[1]
v_0 := v.Args[0]
if v_0.Op != OpPPC64MOVDaddr {
break
......@@ -7575,6 +7856,7 @@ func rewriteValuePPC64_OpPPC64OR_0(v *Value) bool {
// cond: d == 64-c
// result: (ROTLconst [c] x)
for {
_ = v.Args[1]
v_0 := v.Args[0]
if v_0.Op != OpPPC64SLDconst {
break
......@@ -7601,6 +7883,7 @@ func rewriteValuePPC64_OpPPC64OR_0(v *Value) bool {
// cond: d == 64-c
// result: (ROTLconst [c] x)
for {
_ = v.Args[1]
v_0 := v.Args[0]
if v_0.Op != OpPPC64SRDconst {
break
......@@ -7627,6 +7910,7 @@ func rewriteValuePPC64_OpPPC64OR_0(v *Value) bool {
// cond: d == 32-c
// result: (ROTLWconst [c] x)
for {
_ = v.Args[1]
v_0 := v.Args[0]
if v_0.Op != OpPPC64SLWconst {
break
......@@ -7653,6 +7937,7 @@ func rewriteValuePPC64_OpPPC64OR_0(v *Value) bool {
// cond: d == 32-c
// result: (ROTLWconst [c] x)
for {
_ = v.Args[1]
v_0 := v.Args[0]
if v_0.Op != OpPPC64SRWconst {
break
......@@ -7679,6 +7964,7 @@ func rewriteValuePPC64_OpPPC64OR_0(v *Value) bool {
// cond:
// result: (MOVDconst [c|d])
for {
_ = v.Args[1]
v_0 := v.Args[0]
if v_0.Op != OpPPC64MOVDconst {
break
......@@ -7697,6 +7983,7 @@ func rewriteValuePPC64_OpPPC64OR_0(v *Value) bool {
// cond:
// result: (MOVDconst [c|d])
for {
_ = v.Args[1]
v_0 := v.Args[0]
if v_0.Op != OpPPC64MOVDconst {
break
......@@ -7715,6 +8002,7 @@ func rewriteValuePPC64_OpPPC64OR_0(v *Value) bool {
// cond: isU32Bit(c)
// result: (ORconst [c] x)
for {
_ = v.Args[1]
x := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpPPC64MOVDconst {
......@@ -7733,6 +8021,7 @@ func rewriteValuePPC64_OpPPC64OR_0(v *Value) bool {
// cond: isU32Bit(c)
// result: (ORconst [c] x)
for {
_ = v.Args[1]
v_0 := v.Args[0]
if v_0.Op != OpPPC64MOVDconst {
break
......@@ -7754,6 +8043,7 @@ func rewriteValuePPC64_OpPPC64ORN_0(v *Value) bool {
// cond:
// result: x
for {
_ = v.Args[1]
x := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpPPC64MOVDconst {
......@@ -7817,6 +8107,7 @@ func rewriteValuePPC64_OpPPC64SUB_0(v *Value) bool {
// cond: is32Bit(-c)
// result: (ADDconst [-c] x)
for {
_ = v.Args[1]
x := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpPPC64MOVDconst {
......@@ -7838,6 +8129,7 @@ func rewriteValuePPC64_OpPPC64XOR_0(v *Value) bool {
// cond: d == 64-c
// result: (ROTLconst [c] x)
for {
_ = v.Args[1]
v_0 := v.Args[0]
if v_0.Op != OpPPC64SLDconst {
break
......@@ -7864,6 +8156,7 @@ func rewriteValuePPC64_OpPPC64XOR_0(v *Value) bool {
// cond: d == 64-c
// result: (ROTLconst [c] x)
for {
_ = v.Args[1]
v_0 := v.Args[0]
if v_0.Op != OpPPC64SRDconst {
break
......@@ -7890,6 +8183,7 @@ func rewriteValuePPC64_OpPPC64XOR_0(v *Value) bool {
// cond: d == 32-c
// result: (ROTLWconst [c] x)
for {
_ = v.Args[1]
v_0 := v.Args[0]
if v_0.Op != OpPPC64SLWconst {
break
......@@ -7916,6 +8210,7 @@ func rewriteValuePPC64_OpPPC64XOR_0(v *Value) bool {
// cond: d == 32-c
// result: (ROTLWconst [c] x)
for {
_ = v.Args[1]
v_0 := v.Args[0]
if v_0.Op != OpPPC64SRWconst {
break
......@@ -7942,6 +8237,7 @@ func rewriteValuePPC64_OpPPC64XOR_0(v *Value) bool {
// cond:
// result: (MOVDconst [c^d])
for {
_ = v.Args[1]
v_0 := v.Args[0]
if v_0.Op != OpPPC64MOVDconst {
break
......@@ -7960,6 +8256,7 @@ func rewriteValuePPC64_OpPPC64XOR_0(v *Value) bool {
// cond:
// result: (MOVDconst [c^d])
for {
_ = v.Args[1]
v_0 := v.Args[0]
if v_0.Op != OpPPC64MOVDconst {
break
......@@ -7978,6 +8275,7 @@ func rewriteValuePPC64_OpPPC64XOR_0(v *Value) bool {
// cond: isU32Bit(c)
// result: (XORconst [c] x)
for {
_ = v.Args[1]
x := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpPPC64MOVDconst {
......@@ -7996,6 +8294,7 @@ func rewriteValuePPC64_OpPPC64XOR_0(v *Value) bool {
// cond: isU32Bit(c)
// result: (XORconst [c] x)
for {
_ = v.Args[1]
v_0 := v.Args[0]
if v_0.Op != OpPPC64MOVDconst {
break
......@@ -8137,6 +8436,7 @@ func rewriteValuePPC64_OpRsh16Ux16_0(v *Value) bool {
// cond:
// result: (SRW (ZeroExt16to32 x) (ORN y <typ.Int64> (MaskIfNotCarry (ADDconstForCarry [-16] (ZeroExt16to64 y)))))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64SRW)
......@@ -8166,6 +8466,7 @@ func rewriteValuePPC64_OpRsh16Ux32_0(v *Value) bool {
// cond: uint32(c) < 16
// result: (SRWconst (ZeroExt16to32 x) [c])
for {
_ = v.Args[1]
x := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpConst64 {
......@@ -8186,6 +8487,7 @@ func rewriteValuePPC64_OpRsh16Ux32_0(v *Value) bool {
// cond: uint32(c) < 16
// result: (SRWconst (ZeroExt16to32 x) [c])
for {
_ = v.Args[1]
x := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpPPC64MOVDconst {
......@@ -8206,6 +8508,7 @@ func rewriteValuePPC64_OpRsh16Ux32_0(v *Value) bool {
// cond:
// result: (SRW (ZeroExt16to32 x) (ORN y <typ.Int64> (MaskIfNotCarry (ADDconstForCarry [-16] (ZeroExt32to64 y)))))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64SRW)
......@@ -8235,6 +8538,7 @@ func rewriteValuePPC64_OpRsh16Ux64_0(v *Value) bool {
// cond: uint64(c) < 16
// result: (SRWconst (ZeroExt16to32 x) [c])
for {
_ = v.Args[1]
x := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpConst64 {
......@@ -8255,6 +8559,7 @@ func rewriteValuePPC64_OpRsh16Ux64_0(v *Value) bool {
// cond: uint64(c) >= 16
// result: (MOVDconst [0])
for {
_ = v.Args[1]
v_1 := v.Args[1]
if v_1.Op != OpConst64 {
break
......@@ -8271,6 +8576,7 @@ func rewriteValuePPC64_OpRsh16Ux64_0(v *Value) bool {
// cond: uint64(c) < 16
// result: (SRWconst (ZeroExt16to32 x) [c])
for {
_ = v.Args[1]
x := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpPPC64MOVDconst {
......@@ -8291,6 +8597,7 @@ func rewriteValuePPC64_OpRsh16Ux64_0(v *Value) bool {
// cond:
// result: (SRW (ZeroExt16to32 x) (ORN y <typ.Int64> (MaskIfNotCarry (ADDconstForCarry [-16] y))))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64SRW)
......@@ -8318,6 +8625,7 @@ func rewriteValuePPC64_OpRsh16Ux8_0(v *Value) bool {
// cond:
// result: (SRW (ZeroExt16to32 x) (ORN y <typ.Int64> (MaskIfNotCarry (ADDconstForCarry [-16] (ZeroExt8to64 y)))))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64SRW)
......@@ -8347,6 +8655,7 @@ func rewriteValuePPC64_OpRsh16x16_0(v *Value) bool {
// cond:
// result: (SRAW (SignExt16to32 x) (ORN y <typ.Int64> (MaskIfNotCarry (ADDconstForCarry [-16] (ZeroExt16to64 y)))))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64SRAW)
......@@ -8376,6 +8685,7 @@ func rewriteValuePPC64_OpRsh16x32_0(v *Value) bool {
// cond: uint32(c) < 16
// result: (SRAWconst (SignExt16to32 x) [c])
for {
_ = v.Args[1]
x := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpConst64 {
......@@ -8396,6 +8706,7 @@ func rewriteValuePPC64_OpRsh16x32_0(v *Value) bool {
// cond: uint32(c) < 16
// result: (SRAWconst (SignExt16to32 x) [c])
for {
_ = v.Args[1]
x := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpPPC64MOVDconst {
......@@ -8416,6 +8727,7 @@ func rewriteValuePPC64_OpRsh16x32_0(v *Value) bool {
// cond:
// result: (SRAW (SignExt16to32 x) (ORN y <typ.Int64> (MaskIfNotCarry (ADDconstForCarry [-16] (ZeroExt32to64 y)))))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64SRAW)
......@@ -8445,6 +8757,7 @@ func rewriteValuePPC64_OpRsh16x64_0(v *Value) bool {
// cond: uint64(c) < 16
// result: (SRAWconst (SignExt16to32 x) [c])
for {
_ = v.Args[1]
x := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpConst64 {
......@@ -8465,6 +8778,7 @@ func rewriteValuePPC64_OpRsh16x64_0(v *Value) bool {
// cond: uint64(c) >= 16
// result: (SRAWconst (SignExt16to32 x) [63])
for {
_ = v.Args[1]
x := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpConst64 {
......@@ -8485,6 +8799,7 @@ func rewriteValuePPC64_OpRsh16x64_0(v *Value) bool {
// cond: uint64(c) < 16
// result: (SRAWconst (SignExt16to32 x) [c])
for {
_ = v.Args[1]
x := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpPPC64MOVDconst {
......@@ -8505,6 +8820,7 @@ func rewriteValuePPC64_OpRsh16x64_0(v *Value) bool {
// cond:
// result: (SRAW (SignExt16to32 x) (ORN y <typ.Int64> (MaskIfNotCarry (ADDconstForCarry [-16] y))))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64SRAW)
......@@ -8532,6 +8848,7 @@ func rewriteValuePPC64_OpRsh16x8_0(v *Value) bool {
// cond:
// result: (SRAW (SignExt16to32 x) (ORN y <typ.Int64> (MaskIfNotCarry (ADDconstForCarry [-16] (ZeroExt8to64 y)))))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64SRAW)
......@@ -8561,6 +8878,7 @@ func rewriteValuePPC64_OpRsh32Ux16_0(v *Value) bool {
// cond:
// result: (SRW x (ORN y <typ.Int64> (MaskIfNotCarry (ADDconstForCarry [-32] (ZeroExt16to64 y)))))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64SRW)
......@@ -8588,6 +8906,7 @@ func rewriteValuePPC64_OpRsh32Ux32_0(v *Value) bool {
// cond: uint32(c) < 32
// result: (SRWconst x [c])
for {
_ = v.Args[1]
x := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpConst64 {
......@@ -8606,6 +8925,7 @@ func rewriteValuePPC64_OpRsh32Ux32_0(v *Value) bool {
// cond: uint32(c) < 32
// result: (SRWconst x [c])
for {
_ = v.Args[1]
x := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpPPC64MOVDconst {
......@@ -8624,6 +8944,7 @@ func rewriteValuePPC64_OpRsh32Ux32_0(v *Value) bool {
// cond:
// result: (SRW x (ORN y <typ.Int64> (MaskIfNotCarry (ADDconstForCarry [-32] (ZeroExt32to64 y)))))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64SRW)
......@@ -8651,6 +8972,7 @@ func rewriteValuePPC64_OpRsh32Ux64_0(v *Value) bool {
// cond: uint64(c) < 32
// result: (SRWconst x [c])
for {
_ = v.Args[1]
x := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpConst64 {
......@@ -8669,6 +8991,7 @@ func rewriteValuePPC64_OpRsh32Ux64_0(v *Value) bool {
// cond: uint64(c) >= 32
// result: (MOVDconst [0])
for {
_ = v.Args[1]
v_1 := v.Args[1]
if v_1.Op != OpConst64 {
break
......@@ -8685,6 +9008,7 @@ func rewriteValuePPC64_OpRsh32Ux64_0(v *Value) bool {
// cond: uint64(c) < 32
// result: (SRWconst x [c])
for {
_ = v.Args[1]
x := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpPPC64MOVDconst {
......@@ -8703,6 +9027,7 @@ func rewriteValuePPC64_OpRsh32Ux64_0(v *Value) bool {
// cond:
// result: (SRW x (ORN y <typ.Int64> (MaskIfNotCarry (ADDconstForCarry [-32] y))))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64SRW)
......@@ -8728,6 +9053,7 @@ func rewriteValuePPC64_OpRsh32Ux8_0(v *Value) bool {
// cond:
// result: (SRW x (ORN y <typ.Int64> (MaskIfNotCarry (ADDconstForCarry [-32] (ZeroExt8to64 y)))))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64SRW)
......@@ -8755,6 +9081,7 @@ func rewriteValuePPC64_OpRsh32x16_0(v *Value) bool {
// cond:
// result: (SRAW x (ORN y <typ.Int64> (MaskIfNotCarry (ADDconstForCarry [-32] (ZeroExt16to64 y)))))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64SRAW)
......@@ -8782,6 +9109,7 @@ func rewriteValuePPC64_OpRsh32x32_0(v *Value) bool {
// cond: uint32(c) < 32
// result: (SRAWconst x [c])
for {
_ = v.Args[1]
x := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpConst64 {
......@@ -8800,6 +9128,7 @@ func rewriteValuePPC64_OpRsh32x32_0(v *Value) bool {
// cond: uint32(c) < 32
// result: (SRAWconst x [c])
for {
_ = v.Args[1]
x := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpPPC64MOVDconst {
......@@ -8818,6 +9147,7 @@ func rewriteValuePPC64_OpRsh32x32_0(v *Value) bool {
// cond:
// result: (SRAW x (ORN y <typ.Int64> (MaskIfNotCarry (ADDconstForCarry [-32] (ZeroExt32to64 y)))))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64SRAW)
......@@ -8845,6 +9175,7 @@ func rewriteValuePPC64_OpRsh32x64_0(v *Value) bool {
// cond: uint64(c) < 32
// result: (SRAWconst x [c])
for {
_ = v.Args[1]
x := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpConst64 {
......@@ -8863,6 +9194,7 @@ func rewriteValuePPC64_OpRsh32x64_0(v *Value) bool {
// cond: uint64(c) >= 32
// result: (SRAWconst x [63])
for {
_ = v.Args[1]
x := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpConst64 {
......@@ -8881,6 +9213,7 @@ func rewriteValuePPC64_OpRsh32x64_0(v *Value) bool {
// cond: uint64(c) < 32
// result: (SRAWconst x [c])
for {
_ = v.Args[1]
x := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpPPC64MOVDconst {
......@@ -8899,6 +9232,7 @@ func rewriteValuePPC64_OpRsh32x64_0(v *Value) bool {
// cond:
// result: (SRAW x (ORN y <typ.Int64> (MaskIfNotCarry (ADDconstForCarry [-32] y))))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64SRAW)
......@@ -8924,6 +9258,7 @@ func rewriteValuePPC64_OpRsh32x8_0(v *Value) bool {
// cond:
// result: (SRAW x (ORN y <typ.Int64> (MaskIfNotCarry (ADDconstForCarry [-32] (ZeroExt8to64 y)))))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64SRAW)
......@@ -8951,6 +9286,7 @@ func rewriteValuePPC64_OpRsh64Ux16_0(v *Value) bool {
// cond:
// result: (SRD x (ORN y <typ.Int64> (MaskIfNotCarry (ADDconstForCarry [-64] (ZeroExt16to64 y)))))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64SRD)
......@@ -8978,6 +9314,7 @@ func rewriteValuePPC64_OpRsh64Ux32_0(v *Value) bool {
// cond: uint32(c) < 64
// result: (SRDconst x [c])
for {
_ = v.Args[1]
x := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpConst64 {
......@@ -8996,6 +9333,7 @@ func rewriteValuePPC64_OpRsh64Ux32_0(v *Value) bool {
// cond: uint32(c) < 64
// result: (SRDconst x [c])
for {
_ = v.Args[1]
x := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpPPC64MOVDconst {
......@@ -9014,6 +9352,7 @@ func rewriteValuePPC64_OpRsh64Ux32_0(v *Value) bool {
// cond:
// result: (SRD x (ORN y <typ.Int64> (MaskIfNotCarry (ADDconstForCarry [-64] (ZeroExt32to64 y)))))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64SRD)
......@@ -9041,6 +9380,7 @@ func rewriteValuePPC64_OpRsh64Ux64_0(v *Value) bool {
// cond: uint64(c) < 64
// result: (SRDconst x [c])
for {
_ = v.Args[1]
x := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpConst64 {
......@@ -9059,6 +9399,7 @@ func rewriteValuePPC64_OpRsh64Ux64_0(v *Value) bool {
// cond: uint64(c) >= 64
// result: (MOVDconst [0])
for {
_ = v.Args[1]
v_1 := v.Args[1]
if v_1.Op != OpConst64 {
break
......@@ -9075,6 +9416,7 @@ func rewriteValuePPC64_OpRsh64Ux64_0(v *Value) bool {
// cond: uint64(c) < 64
// result: (SRDconst x [c])
for {
_ = v.Args[1]
x := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpPPC64MOVDconst {
......@@ -9093,6 +9435,7 @@ func rewriteValuePPC64_OpRsh64Ux64_0(v *Value) bool {
// cond:
// result: (SRD x (ORN y <typ.Int64> (MaskIfNotCarry (ADDconstForCarry [-64] y))))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64SRD)
......@@ -9118,6 +9461,7 @@ func rewriteValuePPC64_OpRsh64Ux8_0(v *Value) bool {
// cond:
// result: (SRD x (ORN y <typ.Int64> (MaskIfNotCarry (ADDconstForCarry [-64] (ZeroExt8to64 y)))))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64SRD)
......@@ -9145,6 +9489,7 @@ func rewriteValuePPC64_OpRsh64x16_0(v *Value) bool {
// cond:
// result: (SRAD x (ORN y <typ.Int64> (MaskIfNotCarry (ADDconstForCarry [-64] (ZeroExt16to64 y)))))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64SRAD)
......@@ -9172,6 +9517,7 @@ func rewriteValuePPC64_OpRsh64x32_0(v *Value) bool {
// cond: uint32(c) < 64
// result: (SRADconst x [c])
for {
_ = v.Args[1]
x := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpConst64 {
......@@ -9190,6 +9536,7 @@ func rewriteValuePPC64_OpRsh64x32_0(v *Value) bool {
// cond: uint32(c) < 64
// result: (SRADconst x [c])
for {
_ = v.Args[1]
x := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpPPC64MOVDconst {
......@@ -9208,6 +9555,7 @@ func rewriteValuePPC64_OpRsh64x32_0(v *Value) bool {
// cond:
// result: (SRAD x (ORN y <typ.Int64> (MaskIfNotCarry (ADDconstForCarry [-64] (ZeroExt32to64 y)))))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64SRAD)
......@@ -9235,6 +9583,7 @@ func rewriteValuePPC64_OpRsh64x64_0(v *Value) bool {
// cond: uint64(c) < 64
// result: (SRADconst x [c])
for {
_ = v.Args[1]
x := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpConst64 {
......@@ -9253,6 +9602,7 @@ func rewriteValuePPC64_OpRsh64x64_0(v *Value) bool {
// cond: uint64(c) >= 64
// result: (SRADconst x [63])
for {
_ = v.Args[1]
x := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpConst64 {
......@@ -9271,6 +9621,7 @@ func rewriteValuePPC64_OpRsh64x64_0(v *Value) bool {
// cond: uint64(c) < 64
// result: (SRADconst x [c])
for {
_ = v.Args[1]
x := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpPPC64MOVDconst {
......@@ -9289,6 +9640,7 @@ func rewriteValuePPC64_OpRsh64x64_0(v *Value) bool {
// cond:
// result: (SRAD x (ORN y <typ.Int64> (MaskIfNotCarry (ADDconstForCarry [-64] y))))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64SRAD)
......@@ -9314,6 +9666,7 @@ func rewriteValuePPC64_OpRsh64x8_0(v *Value) bool {
// cond:
// result: (SRAD x (ORN y <typ.Int64> (MaskIfNotCarry (ADDconstForCarry [-64] (ZeroExt8to64 y)))))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64SRAD)
......@@ -9341,6 +9694,7 @@ func rewriteValuePPC64_OpRsh8Ux16_0(v *Value) bool {
// cond:
// result: (SRW (ZeroExt8to32 x) (ORN y <typ.Int64> (MaskIfNotCarry (ADDconstForCarry [-8] (ZeroExt16to64 y)))))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64SRW)
......@@ -9370,6 +9724,7 @@ func rewriteValuePPC64_OpRsh8Ux32_0(v *Value) bool {
// cond: uint32(c) < 8
// result: (SRWconst (ZeroExt8to32 x) [c])
for {
_ = v.Args[1]
x := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpConst64 {
......@@ -9390,6 +9745,7 @@ func rewriteValuePPC64_OpRsh8Ux32_0(v *Value) bool {
// cond: uint32(c) < 8
// result: (SRWconst (ZeroExt8to32 x) [c])
for {
_ = v.Args[1]
x := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpPPC64MOVDconst {
......@@ -9410,6 +9766,7 @@ func rewriteValuePPC64_OpRsh8Ux32_0(v *Value) bool {
// cond:
// result: (SRW (ZeroExt8to32 x) (ORN y <typ.Int64> (MaskIfNotCarry (ADDconstForCarry [-8] (ZeroExt32to64 y)))))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64SRW)
......@@ -9439,6 +9796,7 @@ func rewriteValuePPC64_OpRsh8Ux64_0(v *Value) bool {
// cond: uint64(c) < 8
// result: (SRWconst (ZeroExt8to32 x) [c])
for {
_ = v.Args[1]
x := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpConst64 {
......@@ -9459,6 +9817,7 @@ func rewriteValuePPC64_OpRsh8Ux64_0(v *Value) bool {
// cond: uint64(c) >= 8
// result: (MOVDconst [0])
for {
_ = v.Args[1]
v_1 := v.Args[1]
if v_1.Op != OpConst64 {
break
......@@ -9475,6 +9834,7 @@ func rewriteValuePPC64_OpRsh8Ux64_0(v *Value) bool {
// cond: uint64(c) < 8
// result: (SRWconst (ZeroExt8to32 x) [c])
for {
_ = v.Args[1]
x := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpPPC64MOVDconst {
......@@ -9495,6 +9855,7 @@ func rewriteValuePPC64_OpRsh8Ux64_0(v *Value) bool {
// cond:
// result: (SRW (ZeroExt8to32 x) (ORN y <typ.Int64> (MaskIfNotCarry (ADDconstForCarry [-8] y))))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64SRW)
......@@ -9522,6 +9883,7 @@ func rewriteValuePPC64_OpRsh8Ux8_0(v *Value) bool {
// cond:
// result: (SRW (ZeroExt8to32 x) (ORN y <typ.Int64> (MaskIfNotCarry (ADDconstForCarry [-8] (ZeroExt8to64 y)))))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64SRW)
......@@ -9551,6 +9913,7 @@ func rewriteValuePPC64_OpRsh8x16_0(v *Value) bool {
// cond:
// result: (SRAW (SignExt8to32 x) (ORN y <typ.Int64> (MaskIfNotCarry (ADDconstForCarry [-8] (ZeroExt16to64 y)))))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64SRAW)
......@@ -9580,6 +9943,7 @@ func rewriteValuePPC64_OpRsh8x32_0(v *Value) bool {
// cond: uint32(c) < 8
// result: (SRAWconst (SignExt8to32 x) [c])
for {
_ = v.Args[1]
x := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpConst64 {
......@@ -9600,6 +9964,7 @@ func rewriteValuePPC64_OpRsh8x32_0(v *Value) bool {
// cond: uint32(c) < 8
// result: (SRAWconst (SignExt8to32 x) [c])
for {
_ = v.Args[1]
x := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpPPC64MOVDconst {
......@@ -9620,6 +9985,7 @@ func rewriteValuePPC64_OpRsh8x32_0(v *Value) bool {
// cond:
// result: (SRAW (SignExt8to32 x) (ORN y <typ.Int64> (MaskIfNotCarry (ADDconstForCarry [-8] (ZeroExt32to64 y)))))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64SRAW)
......@@ -9649,6 +10015,7 @@ func rewriteValuePPC64_OpRsh8x64_0(v *Value) bool {
// cond: uint64(c) < 8
// result: (SRAWconst (SignExt8to32 x) [c])
for {
_ = v.Args[1]
x := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpConst64 {
......@@ -9669,6 +10036,7 @@ func rewriteValuePPC64_OpRsh8x64_0(v *Value) bool {
// cond: uint64(c) >= 8
// result: (SRAWconst (SignExt8to32 x) [63])
for {
_ = v.Args[1]
x := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpConst64 {
......@@ -9689,6 +10057,7 @@ func rewriteValuePPC64_OpRsh8x64_0(v *Value) bool {
// cond: uint64(c) < 8
// result: (SRAWconst (SignExt8to32 x) [c])
for {
_ = v.Args[1]
x := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpPPC64MOVDconst {
......@@ -9709,6 +10078,7 @@ func rewriteValuePPC64_OpRsh8x64_0(v *Value) bool {
// cond:
// result: (SRAW (SignExt8to32 x) (ORN y <typ.Int64> (MaskIfNotCarry (ADDconstForCarry [-8] y))))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64SRAW)
......@@ -9736,6 +10106,7 @@ func rewriteValuePPC64_OpRsh8x8_0(v *Value) bool {
// cond:
// result: (SRAW (SignExt8to32 x) (ORN y <typ.Int64> (MaskIfNotCarry (ADDconstForCarry [-8] (ZeroExt8to64 y)))))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64SRAW)
......@@ -9871,6 +10242,7 @@ func rewriteValuePPC64_OpStore_0(v *Value) bool {
// result: (FMOVDstore ptr val mem)
for {
t := v.Aux
_ = v.Args[2]
ptr := v.Args[0]
val := v.Args[1]
mem := v.Args[2]
......@@ -9888,6 +10260,7 @@ func rewriteValuePPC64_OpStore_0(v *Value) bool {
// result: (FMOVDstore ptr val mem)
for {
t := v.Aux
_ = v.Args[2]
ptr := v.Args[0]
val := v.Args[1]
mem := v.Args[2]
......@@ -9905,6 +10278,7 @@ func rewriteValuePPC64_OpStore_0(v *Value) bool {
// result: (FMOVSstore ptr val mem)
for {
t := v.Aux
_ = v.Args[2]
ptr := v.Args[0]
val := v.Args[1]
mem := v.Args[2]
......@@ -9922,6 +10296,7 @@ func rewriteValuePPC64_OpStore_0(v *Value) bool {
// result: (MOVDstore ptr val mem)
for {
t := v.Aux
_ = v.Args[2]
ptr := v.Args[0]
val := v.Args[1]
mem := v.Args[2]
......@@ -9939,6 +10314,7 @@ func rewriteValuePPC64_OpStore_0(v *Value) bool {
// result: (MOVWstore ptr val mem)
for {
t := v.Aux
_ = v.Args[2]
ptr := v.Args[0]
val := v.Args[1]
mem := v.Args[2]
......@@ -9956,6 +10332,7 @@ func rewriteValuePPC64_OpStore_0(v *Value) bool {
// result: (MOVHstore ptr val mem)
for {
t := v.Aux
_ = v.Args[2]
ptr := v.Args[0]
val := v.Args[1]
mem := v.Args[2]
......@@ -9973,6 +10350,7 @@ func rewriteValuePPC64_OpStore_0(v *Value) bool {
// result: (MOVBstore ptr val mem)
for {
t := v.Aux
_ = v.Args[2]
ptr := v.Args[0]
val := v.Args[1]
mem := v.Args[2]
......@@ -9992,6 +10370,7 @@ func rewriteValuePPC64_OpSub16_0(v *Value) bool {
// cond:
// result: (SUB x y)
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64SUB)
......@@ -10005,6 +10384,7 @@ func rewriteValuePPC64_OpSub32_0(v *Value) bool {
// cond:
// result: (SUB x y)
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64SUB)
......@@ -10018,6 +10398,7 @@ func rewriteValuePPC64_OpSub32F_0(v *Value) bool {
// cond:
// result: (FSUBS x y)
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64FSUBS)
......@@ -10031,6 +10412,7 @@ func rewriteValuePPC64_OpSub64_0(v *Value) bool {
// cond:
// result: (SUB x y)
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64SUB)
......@@ -10044,6 +10426,7 @@ func rewriteValuePPC64_OpSub64F_0(v *Value) bool {
// cond:
// result: (FSUB x y)
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64FSUB)
......@@ -10057,6 +10440,7 @@ func rewriteValuePPC64_OpSub8_0(v *Value) bool {
// cond:
// result: (SUB x y)
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64SUB)
......@@ -10070,6 +10454,7 @@ func rewriteValuePPC64_OpSubPtr_0(v *Value) bool {
// cond:
// result: (SUB x y)
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64SUB)
......@@ -10149,6 +10534,7 @@ func rewriteValuePPC64_OpXor16_0(v *Value) bool {
// cond:
// result: (XOR x y)
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64XOR)
......@@ -10162,6 +10548,7 @@ func rewriteValuePPC64_OpXor32_0(v *Value) bool {
// cond:
// result: (XOR x y)
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64XOR)
......@@ -10175,6 +10562,7 @@ func rewriteValuePPC64_OpXor64_0(v *Value) bool {
// cond:
// result: (XOR x y)
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64XOR)
......@@ -10188,6 +10576,7 @@ func rewriteValuePPC64_OpXor8_0(v *Value) bool {
// cond:
// result: (XOR x y)
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpPPC64XOR)
......@@ -10206,6 +10595,7 @@ func rewriteValuePPC64_OpZero_0(v *Value) bool {
if v.AuxInt != 0 {
break
}
_ = v.Args[1]
mem := v.Args[1]
v.reset(OpCopy)
v.Type = mem.Type
......@@ -10219,6 +10609,7 @@ func rewriteValuePPC64_OpZero_0(v *Value) bool {
if v.AuxInt != 1 {
break
}
_ = v.Args[1]
destptr := v.Args[0]
mem := v.Args[1]
v.reset(OpPPC64MOVBstorezero)
......@@ -10233,6 +10624,7 @@ func rewriteValuePPC64_OpZero_0(v *Value) bool {
if v.AuxInt != 2 {
break
}
_ = v.Args[1]
destptr := v.Args[0]
mem := v.Args[1]
v.reset(OpPPC64MOVHstorezero)
......@@ -10247,6 +10639,7 @@ func rewriteValuePPC64_OpZero_0(v *Value) bool {
if v.AuxInt != 3 {
break
}
_ = v.Args[1]
destptr := v.Args[0]
mem := v.Args[1]
v.reset(OpPPC64MOVBstorezero)
......@@ -10265,6 +10658,7 @@ func rewriteValuePPC64_OpZero_0(v *Value) bool {
if v.AuxInt != 4 {
break
}
_ = v.Args[1]
destptr := v.Args[0]
mem := v.Args[1]
v.reset(OpPPC64MOVWstorezero)
......@@ -10279,6 +10673,7 @@ func rewriteValuePPC64_OpZero_0(v *Value) bool {
if v.AuxInt != 5 {
break
}
_ = v.Args[1]
destptr := v.Args[0]
mem := v.Args[1]
v.reset(OpPPC64MOVBstorezero)
......@@ -10297,6 +10692,7 @@ func rewriteValuePPC64_OpZero_0(v *Value) bool {
if v.AuxInt != 6 {
break
}
_ = v.Args[1]
destptr := v.Args[0]
mem := v.Args[1]
v.reset(OpPPC64MOVHstorezero)
......@@ -10315,6 +10711,7 @@ func rewriteValuePPC64_OpZero_0(v *Value) bool {
if v.AuxInt != 7 {
break
}
_ = v.Args[1]
destptr := v.Args[0]
mem := v.Args[1]
v.reset(OpPPC64MOVBstorezero)
......@@ -10337,6 +10734,7 @@ func rewriteValuePPC64_OpZero_0(v *Value) bool {
if v.AuxInt != 8 {
break
}
_ = v.Args[1]
destptr := v.Args[0]
mem := v.Args[1]
v.reset(OpPPC64MOVDstorezero)
......@@ -10351,6 +10749,7 @@ func rewriteValuePPC64_OpZero_0(v *Value) bool {
if v.AuxInt != 12 {
break
}
_ = v.Args[1]
destptr := v.Args[0]
mem := v.Args[1]
v.reset(OpPPC64MOVWstorezero)
......@@ -10375,6 +10774,7 @@ func rewriteValuePPC64_OpZero_10(v *Value) bool {
if v.AuxInt != 16 {
break
}
_ = v.Args[1]
destptr := v.Args[0]
mem := v.Args[1]
v.reset(OpPPC64MOVDstorezero)
......@@ -10394,6 +10794,7 @@ func rewriteValuePPC64_OpZero_10(v *Value) bool {
if v.AuxInt != 24 {
break
}
_ = v.Args[1]
destptr := v.Args[0]
mem := v.Args[1]
v.reset(OpPPC64MOVDstorezero)
......@@ -10417,6 +10818,7 @@ func rewriteValuePPC64_OpZero_10(v *Value) bool {
if v.AuxInt != 32 {
break
}
_ = v.Args[1]
destptr := v.Args[0]
mem := v.Args[1]
v.reset(OpPPC64MOVDstorezero)
......@@ -10444,6 +10846,7 @@ func rewriteValuePPC64_OpZero_10(v *Value) bool {
if v.AuxInt != 40 {
break
}
_ = v.Args[1]
destptr := v.Args[0]
mem := v.Args[1]
v.reset(OpPPC64MOVDstorezero)
......@@ -10475,6 +10878,7 @@ func rewriteValuePPC64_OpZero_10(v *Value) bool {
if v.AuxInt != 48 {
break
}
_ = v.Args[1]
destptr := v.Args[0]
mem := v.Args[1]
v.reset(OpPPC64MOVDstorezero)
......@@ -10510,6 +10914,7 @@ func rewriteValuePPC64_OpZero_10(v *Value) bool {
if v.AuxInt != 56 {
break
}
_ = v.Args[1]
destptr := v.Args[0]
mem := v.Args[1]
v.reset(OpPPC64MOVDstorezero)
......@@ -10547,6 +10952,7 @@ func rewriteValuePPC64_OpZero_10(v *Value) bool {
// result: (LoweredZero [s] ptr mem)
for {
s := v.AuxInt
_ = v.Args[1]
ptr := v.Args[0]
mem := v.Args[1]
v.reset(OpPPC64LoweredZero)
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -49,6 +49,7 @@ func rewriteValuedec_OpComplexImag_0(v *Value) bool {
if v_0.Op != OpComplexMake {
break
}
_ = v_0.Args[1]
imag := v_0.Args[1]
v.reset(OpCopy)
v.Type = imag.Type
......@@ -66,6 +67,7 @@ func rewriteValuedec_OpComplexReal_0(v *Value) bool {
if v_0.Op != OpComplexMake {
break
}
_ = v_0.Args[1]
real := v_0.Args[0]
v.reset(OpCopy)
v.Type = real.Type
......@@ -83,6 +85,7 @@ func rewriteValuedec_OpIData_0(v *Value) bool {
if v_0.Op != OpIMake {
break
}
_ = v_0.Args[1]
data := v_0.Args[1]
v.reset(OpCopy)
v.Type = data.Type
......@@ -102,6 +105,7 @@ func rewriteValuedec_OpITab_0(v *Value) bool {
if v_0.Op != OpIMake {
break
}
_ = v_0.Args[1]
itab := v_0.Args[0]
v.reset(OpCopy)
v.Type = itab.Type
......@@ -122,6 +126,7 @@ func rewriteValuedec_OpLoad_0(v *Value) bool {
// result: (ComplexMake (Load <typ.Float32> ptr mem) (Load <typ.Float32> (OffPtr <typ.Float32Ptr> [4] ptr) mem) )
for {
t := v.Type
_ = v.Args[1]
ptr := v.Args[0]
mem := v.Args[1]
if !(t.IsComplex() && t.Size() == 8) {
......@@ -146,6 +151,7 @@ func rewriteValuedec_OpLoad_0(v *Value) bool {
// result: (ComplexMake (Load <typ.Float64> ptr mem) (Load <typ.Float64> (OffPtr <typ.Float64Ptr> [8] ptr) mem) )
for {
t := v.Type
_ = v.Args[1]
ptr := v.Args[0]
mem := v.Args[1]
if !(t.IsComplex() && t.Size() == 16) {
......@@ -170,6 +176,7 @@ func rewriteValuedec_OpLoad_0(v *Value) bool {
// result: (StringMake (Load <typ.BytePtr> ptr mem) (Load <typ.Int> (OffPtr <typ.IntPtr> [config.PtrSize] ptr) mem))
for {
t := v.Type
_ = v.Args[1]
ptr := v.Args[0]
mem := v.Args[1]
if !(t.IsString()) {
......@@ -194,6 +201,7 @@ func rewriteValuedec_OpLoad_0(v *Value) bool {
// result: (SliceMake (Load <t.ElemType().PtrTo()> ptr mem) (Load <typ.Int> (OffPtr <typ.IntPtr> [config.PtrSize] ptr) mem) (Load <typ.Int> (OffPtr <typ.IntPtr> [2*config.PtrSize] ptr) mem))
for {
t := v.Type
_ = v.Args[1]
ptr := v.Args[0]
mem := v.Args[1]
if !(t.IsSlice()) {
......@@ -225,6 +233,7 @@ func rewriteValuedec_OpLoad_0(v *Value) bool {
// result: (IMake (Load <typ.BytePtr> ptr mem) (Load <typ.BytePtr> (OffPtr <typ.BytePtrPtr> [config.PtrSize] ptr) mem))
for {
t := v.Type
_ = v.Args[1]
ptr := v.Args[0]
mem := v.Args[1]
if !(t.IsInterface()) {
......@@ -255,6 +264,7 @@ func rewriteValuedec_OpSliceCap_0(v *Value) bool {
if v_0.Op != OpSliceMake {
break
}
_ = v_0.Args[2]
cap := v_0.Args[2]
v.reset(OpCopy)
v.Type = cap.Type
......@@ -272,6 +282,7 @@ func rewriteValuedec_OpSliceLen_0(v *Value) bool {
if v_0.Op != OpSliceMake {
break
}
_ = v_0.Args[2]
len := v_0.Args[1]
v.reset(OpCopy)
v.Type = len.Type
......@@ -289,6 +300,7 @@ func rewriteValuedec_OpSlicePtr_0(v *Value) bool {
if v_0.Op != OpSliceMake {
break
}
_ = v_0.Args[2]
ptr := v_0.Args[0]
v.reset(OpCopy)
v.Type = ptr.Type
......@@ -309,11 +321,13 @@ func rewriteValuedec_OpStore_0(v *Value) bool {
// result: (Store {typ.Float32} (OffPtr <typ.Float32Ptr> [4] dst) imag (Store {typ.Float32} dst real mem))
for {
t := v.Aux
_ = v.Args[2]
dst := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpComplexMake {
break
}
_ = v_1.Args[1]
real := v_1.Args[0]
imag := v_1.Args[1]
mem := v.Args[2]
......@@ -340,11 +354,13 @@ func rewriteValuedec_OpStore_0(v *Value) bool {
// result: (Store {typ.Float64} (OffPtr <typ.Float64Ptr> [8] dst) imag (Store {typ.Float64} dst real mem))
for {
t := v.Aux
_ = v.Args[2]
dst := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpComplexMake {
break
}
_ = v_1.Args[1]
real := v_1.Args[0]
imag := v_1.Args[1]
mem := v.Args[2]
......@@ -370,11 +386,13 @@ func rewriteValuedec_OpStore_0(v *Value) bool {
// cond:
// result: (Store {typ.Int} (OffPtr <typ.IntPtr> [config.PtrSize] dst) len (Store {typ.BytePtr} dst ptr mem))
for {
_ = v.Args[2]
dst := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpStringMake {
break
}
_ = v_1.Args[1]
ptr := v_1.Args[0]
len := v_1.Args[1]
mem := v.Args[2]
......@@ -397,11 +415,13 @@ func rewriteValuedec_OpStore_0(v *Value) bool {
// cond:
// result: (Store {typ.Int} (OffPtr <typ.IntPtr> [2*config.PtrSize] dst) cap (Store {typ.Int} (OffPtr <typ.IntPtr> [config.PtrSize] dst) len (Store {typ.BytePtr} dst ptr mem)))
for {
_ = v.Args[2]
dst := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpSliceMake {
break
}
_ = v_1.Args[2]
ptr := v_1.Args[0]
len := v_1.Args[1]
cap := v_1.Args[2]
......@@ -433,11 +453,13 @@ func rewriteValuedec_OpStore_0(v *Value) bool {
// cond:
// result: (Store {typ.BytePtr} (OffPtr <typ.BytePtrPtr> [config.PtrSize] dst) data (Store {typ.Uintptr} dst itab mem))
for {
_ = v.Args[2]
dst := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpIMake {
break
}
_ = v_1.Args[1]
itab := v_1.Args[0]
data := v_1.Args[1]
mem := v.Args[2]
......@@ -467,6 +489,7 @@ func rewriteValuedec_OpStringLen_0(v *Value) bool {
if v_0.Op != OpStringMake {
break
}
_ = v_0.Args[1]
len := v_0.Args[1]
v.reset(OpCopy)
v.Type = len.Type
......@@ -484,6 +507,7 @@ func rewriteValuedec_OpStringPtr_0(v *Value) bool {
if v_0.Op != OpStringMake {
break
}
_ = v_0.Args[1]
ptr := v_0.Args[0]
v.reset(OpCopy)
v.Type = ptr.Type
......
......@@ -141,6 +141,7 @@ func rewriteValuedec64_OpAdd64_0(v *Value) bool {
// cond:
// result: (Int64Make (Add32withcarry <typ.Int32> (Int64Hi x) (Int64Hi y) (Select1 <types.TypeFlags> (Add32carry (Int64Lo x) (Int64Lo y)))) (Select0 <typ.UInt32> (Add32carry (Int64Lo x) (Int64Lo y))))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpInt64Make)
......@@ -184,6 +185,7 @@ func rewriteValuedec64_OpAnd64_0(v *Value) bool {
// cond:
// result: (Int64Make (And32 <typ.UInt32> (Int64Hi x) (Int64Hi y)) (And32 <typ.UInt32> (Int64Lo x) (Int64Lo y)))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpInt64Make)
......@@ -461,6 +463,7 @@ func rewriteValuedec64_OpEq64_0(v *Value) bool {
// cond:
// result: (AndB (Eq32 (Int64Hi x) (Int64Hi y)) (Eq32 (Int64Lo x) (Int64Lo y)))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpAndB)
......@@ -492,6 +495,7 @@ func rewriteValuedec64_OpGeq64_0(v *Value) bool {
// cond:
// result: (OrB (Greater32 (Int64Hi x) (Int64Hi y)) (AndB (Eq32 (Int64Hi x) (Int64Hi y)) (Geq32U (Int64Lo x) (Int64Lo y))))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpOrB)
......@@ -533,6 +537,7 @@ func rewriteValuedec64_OpGeq64U_0(v *Value) bool {
// cond:
// result: (OrB (Greater32U (Int64Hi x) (Int64Hi y)) (AndB (Eq32 (Int64Hi x) (Int64Hi y)) (Geq32U (Int64Lo x) (Int64Lo y))))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpOrB)
......@@ -574,6 +579,7 @@ func rewriteValuedec64_OpGreater64_0(v *Value) bool {
// cond:
// result: (OrB (Greater32 (Int64Hi x) (Int64Hi y)) (AndB (Eq32 (Int64Hi x) (Int64Hi y)) (Greater32U (Int64Lo x) (Int64Lo y))))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpOrB)
......@@ -615,6 +621,7 @@ func rewriteValuedec64_OpGreater64U_0(v *Value) bool {
// cond:
// result: (OrB (Greater32U (Int64Hi x) (Int64Hi y)) (AndB (Eq32 (Int64Hi x) (Int64Hi y)) (Greater32U (Int64Lo x) (Int64Lo y))))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpOrB)
......@@ -656,6 +663,7 @@ func rewriteValuedec64_OpInt64Hi_0(v *Value) bool {
if v_0.Op != OpInt64Make {
break
}
_ = v_0.Args[1]
hi := v_0.Args[0]
v.reset(OpCopy)
v.Type = hi.Type
......@@ -673,6 +681,7 @@ func rewriteValuedec64_OpInt64Lo_0(v *Value) bool {
if v_0.Op != OpInt64Make {
break
}
_ = v_0.Args[1]
lo := v_0.Args[1]
v.reset(OpCopy)
v.Type = lo.Type
......@@ -690,6 +699,7 @@ func rewriteValuedec64_OpLeq64_0(v *Value) bool {
// cond:
// result: (OrB (Less32 (Int64Hi x) (Int64Hi y)) (AndB (Eq32 (Int64Hi x) (Int64Hi y)) (Leq32U (Int64Lo x) (Int64Lo y))))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpOrB)
......@@ -731,6 +741,7 @@ func rewriteValuedec64_OpLeq64U_0(v *Value) bool {
// cond:
// result: (OrB (Less32U (Int64Hi x) (Int64Hi y)) (AndB (Eq32 (Int64Hi x) (Int64Hi y)) (Leq32U (Int64Lo x) (Int64Lo y))))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpOrB)
......@@ -772,6 +783,7 @@ func rewriteValuedec64_OpLess64_0(v *Value) bool {
// cond:
// result: (OrB (Less32 (Int64Hi x) (Int64Hi y)) (AndB (Eq32 (Int64Hi x) (Int64Hi y)) (Less32U (Int64Lo x) (Int64Lo y))))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpOrB)
......@@ -813,6 +825,7 @@ func rewriteValuedec64_OpLess64U_0(v *Value) bool {
// cond:
// result: (OrB (Less32U (Int64Hi x) (Int64Hi y)) (AndB (Eq32 (Int64Hi x) (Int64Hi y)) (Less32U (Int64Lo x) (Int64Lo y))))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpOrB)
......@@ -857,6 +870,7 @@ func rewriteValuedec64_OpLoad_0(v *Value) bool {
// result: (Int64Make (Load <typ.Int32> (OffPtr <typ.Int32Ptr> [4] ptr) mem) (Load <typ.UInt32> ptr mem))
for {
t := v.Type
_ = v.Args[1]
ptr := v.Args[0]
mem := v.Args[1]
if !(is64BitInt(t) && !config.BigEndian && t.IsSigned()) {
......@@ -881,6 +895,7 @@ func rewriteValuedec64_OpLoad_0(v *Value) bool {
// result: (Int64Make (Load <typ.UInt32> (OffPtr <typ.UInt32Ptr> [4] ptr) mem) (Load <typ.UInt32> ptr mem))
for {
t := v.Type
_ = v.Args[1]
ptr := v.Args[0]
mem := v.Args[1]
if !(is64BitInt(t) && !config.BigEndian && !t.IsSigned()) {
......@@ -905,6 +920,7 @@ func rewriteValuedec64_OpLoad_0(v *Value) bool {
// result: (Int64Make (Load <typ.Int32> ptr mem) (Load <typ.UInt32> (OffPtr <typ.UInt32Ptr> [4] ptr) mem))
for {
t := v.Type
_ = v.Args[1]
ptr := v.Args[0]
mem := v.Args[1]
if !(is64BitInt(t) && config.BigEndian && t.IsSigned()) {
......@@ -929,6 +945,7 @@ func rewriteValuedec64_OpLoad_0(v *Value) bool {
// result: (Int64Make (Load <typ.UInt32> ptr mem) (Load <typ.UInt32> (OffPtr <typ.UInt32Ptr> [4] ptr) mem))
for {
t := v.Type
_ = v.Args[1]
ptr := v.Args[0]
mem := v.Args[1]
if !(is64BitInt(t) && config.BigEndian && !t.IsSigned()) {
......@@ -959,10 +976,12 @@ func rewriteValuedec64_OpLsh16x64_0(v *Value) bool {
// cond: c != 0
// result: (Const32 [0])
for {
_ = v.Args[1]
v_1 := v.Args[1]
if v_1.Op != OpInt64Make {
break
}
_ = v_1.Args[1]
v_1_0 := v_1.Args[0]
if v_1_0.Op != OpConst32 {
break
......@@ -979,11 +998,13 @@ func rewriteValuedec64_OpLsh16x64_0(v *Value) bool {
// cond:
// result: (Lsh16x32 x lo)
for {
_ = v.Args[1]
x := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpInt64Make {
break
}
_ = v_1.Args[1]
v_1_0 := v_1.Args[0]
if v_1_0.Op != OpConst32 {
break
......@@ -1001,11 +1022,13 @@ func rewriteValuedec64_OpLsh16x64_0(v *Value) bool {
// cond: hi.Op != OpConst32
// result: (Lsh16x32 x (Or32 <typ.UInt32> (Zeromask hi) lo))
for {
_ = v.Args[1]
x := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpInt64Make {
break
}
_ = v_1.Args[1]
hi := v_1.Args[0]
lo := v_1.Args[1]
if !(hi.Op != OpConst32) {
......@@ -1032,10 +1055,12 @@ func rewriteValuedec64_OpLsh32x64_0(v *Value) bool {
// cond: c != 0
// result: (Const32 [0])
for {
_ = v.Args[1]
v_1 := v.Args[1]
if v_1.Op != OpInt64Make {
break
}
_ = v_1.Args[1]
v_1_0 := v_1.Args[0]
if v_1_0.Op != OpConst32 {
break
......@@ -1052,11 +1077,13 @@ func rewriteValuedec64_OpLsh32x64_0(v *Value) bool {
// cond:
// result: (Lsh32x32 x lo)
for {
_ = v.Args[1]
x := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpInt64Make {
break
}
_ = v_1.Args[1]
v_1_0 := v_1.Args[0]
if v_1_0.Op != OpConst32 {
break
......@@ -1074,11 +1101,13 @@ func rewriteValuedec64_OpLsh32x64_0(v *Value) bool {
// cond: hi.Op != OpConst32
// result: (Lsh32x32 x (Or32 <typ.UInt32> (Zeromask hi) lo))
for {
_ = v.Args[1]
x := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpInt64Make {
break
}
_ = v_1.Args[1]
hi := v_1.Args[0]
lo := v_1.Args[1]
if !(hi.Op != OpConst32) {
......@@ -1105,10 +1134,12 @@ func rewriteValuedec64_OpLsh64x16_0(v *Value) bool {
// cond:
// result: (Int64Make (Or32 <typ.UInt32> (Or32 <typ.UInt32> (Lsh32x16 <typ.UInt32> hi s) (Rsh32Ux16 <typ.UInt32> lo (Sub16 <typ.UInt16> (Const16 <typ.UInt16> [32]) s))) (Lsh32x16 <typ.UInt32> lo (Sub16 <typ.UInt16> s (Const16 <typ.UInt16> [32])))) (Lsh32x16 <typ.UInt32> lo s))
for {
_ = v.Args[1]
v_0 := v.Args[0]
if v_0.Op != OpInt64Make {
break
}
_ = v_0.Args[1]
hi := v_0.Args[0]
lo := v_0.Args[1]
s := v.Args[1]
......@@ -1156,10 +1187,12 @@ func rewriteValuedec64_OpLsh64x32_0(v *Value) bool {
// cond:
// result: (Int64Make (Or32 <typ.UInt32> (Or32 <typ.UInt32> (Lsh32x32 <typ.UInt32> hi s) (Rsh32Ux32 <typ.UInt32> lo (Sub32 <typ.UInt32> (Const32 <typ.UInt32> [32]) s))) (Lsh32x32 <typ.UInt32> lo (Sub32 <typ.UInt32> s (Const32 <typ.UInt32> [32])))) (Lsh32x32 <typ.UInt32> lo s))
for {
_ = v.Args[1]
v_0 := v.Args[0]
if v_0.Op != OpInt64Make {
break
}
_ = v_0.Args[1]
hi := v_0.Args[0]
lo := v_0.Args[1]
s := v.Args[1]
......@@ -1207,10 +1240,12 @@ func rewriteValuedec64_OpLsh64x64_0(v *Value) bool {
// cond: c != 0
// result: (Const64 [0])
for {
_ = v.Args[1]
v_1 := v.Args[1]
if v_1.Op != OpInt64Make {
break
}
_ = v_1.Args[1]
v_1_0 := v_1.Args[0]
if v_1_0.Op != OpConst32 {
break
......@@ -1227,11 +1262,13 @@ func rewriteValuedec64_OpLsh64x64_0(v *Value) bool {
// cond:
// result: (Lsh64x32 x lo)
for {
_ = v.Args[1]
x := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpInt64Make {
break
}
_ = v_1.Args[1]
v_1_0 := v_1.Args[0]
if v_1_0.Op != OpConst32 {
break
......@@ -1249,11 +1286,13 @@ func rewriteValuedec64_OpLsh64x64_0(v *Value) bool {
// cond: hi.Op != OpConst32
// result: (Lsh64x32 x (Or32 <typ.UInt32> (Zeromask hi) lo))
for {
_ = v.Args[1]
x := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpInt64Make {
break
}
_ = v_1.Args[1]
hi := v_1.Args[0]
lo := v_1.Args[1]
if !(hi.Op != OpConst32) {
......@@ -1280,10 +1319,12 @@ func rewriteValuedec64_OpLsh64x8_0(v *Value) bool {
// cond:
// result: (Int64Make (Or32 <typ.UInt32> (Or32 <typ.UInt32> (Lsh32x8 <typ.UInt32> hi s) (Rsh32Ux8 <typ.UInt32> lo (Sub8 <typ.UInt8> (Const8 <typ.UInt8> [32]) s))) (Lsh32x8 <typ.UInt32> lo (Sub8 <typ.UInt8> s (Const8 <typ.UInt8> [32])))) (Lsh32x8 <typ.UInt32> lo s))
for {
_ = v.Args[1]
v_0 := v.Args[0]
if v_0.Op != OpInt64Make {
break
}
_ = v_0.Args[1]
hi := v_0.Args[0]
lo := v_0.Args[1]
s := v.Args[1]
......@@ -1331,10 +1372,12 @@ func rewriteValuedec64_OpLsh8x64_0(v *Value) bool {
// cond: c != 0
// result: (Const32 [0])
for {
_ = v.Args[1]
v_1 := v.Args[1]
if v_1.Op != OpInt64Make {
break
}
_ = v_1.Args[1]
v_1_0 := v_1.Args[0]
if v_1_0.Op != OpConst32 {
break
......@@ -1351,11 +1394,13 @@ func rewriteValuedec64_OpLsh8x64_0(v *Value) bool {
// cond:
// result: (Lsh8x32 x lo)
for {
_ = v.Args[1]
x := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpInt64Make {
break
}
_ = v_1.Args[1]
v_1_0 := v_1.Args[0]
if v_1_0.Op != OpConst32 {
break
......@@ -1373,11 +1418,13 @@ func rewriteValuedec64_OpLsh8x64_0(v *Value) bool {
// cond: hi.Op != OpConst32
// result: (Lsh8x32 x (Or32 <typ.UInt32> (Zeromask hi) lo))
for {
_ = v.Args[1]
x := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpInt64Make {
break
}
_ = v_1.Args[1]
hi := v_1.Args[0]
lo := v_1.Args[1]
if !(hi.Op != OpConst32) {
......@@ -1404,6 +1451,7 @@ func rewriteValuedec64_OpMul64_0(v *Value) bool {
// cond:
// result: (Int64Make (Add32 <typ.UInt32> (Mul32 <typ.UInt32> (Int64Lo x) (Int64Hi y)) (Add32 <typ.UInt32> (Mul32 <typ.UInt32> (Int64Hi x) (Int64Lo y)) (Select0 <typ.UInt32> (Mul32uhilo (Int64Lo x) (Int64Lo y))))) (Select1 <typ.UInt32> (Mul32uhilo (Int64Lo x) (Int64Lo y))))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpInt64Make)
......@@ -1476,6 +1524,7 @@ func rewriteValuedec64_OpNeq64_0(v *Value) bool {
// cond:
// result: (OrB (Neq32 (Int64Hi x) (Int64Hi y)) (Neq32 (Int64Lo x) (Int64Lo y)))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpOrB)
......@@ -1507,6 +1556,7 @@ func rewriteValuedec64_OpOr64_0(v *Value) bool {
// cond:
// result: (Int64Make (Or32 <typ.UInt32> (Int64Hi x) (Int64Hi y)) (Or32 <typ.UInt32> (Int64Lo x) (Int64Lo y)))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpInt64Make)
......@@ -1538,10 +1588,12 @@ func rewriteValuedec64_OpRsh16Ux64_0(v *Value) bool {
// cond: c != 0
// result: (Const32 [0])
for {
_ = v.Args[1]
v_1 := v.Args[1]
if v_1.Op != OpInt64Make {
break
}
_ = v_1.Args[1]
v_1_0 := v_1.Args[0]
if v_1_0.Op != OpConst32 {
break
......@@ -1558,11 +1610,13 @@ func rewriteValuedec64_OpRsh16Ux64_0(v *Value) bool {
// cond:
// result: (Rsh16Ux32 x lo)
for {
_ = v.Args[1]
x := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpInt64Make {
break
}
_ = v_1.Args[1]
v_1_0 := v_1.Args[0]
if v_1_0.Op != OpConst32 {
break
......@@ -1580,11 +1634,13 @@ func rewriteValuedec64_OpRsh16Ux64_0(v *Value) bool {
// cond: hi.Op != OpConst32
// result: (Rsh16Ux32 x (Or32 <typ.UInt32> (Zeromask hi) lo))
for {
_ = v.Args[1]
x := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpInt64Make {
break
}
_ = v_1.Args[1]
hi := v_1.Args[0]
lo := v_1.Args[1]
if !(hi.Op != OpConst32) {
......@@ -1611,11 +1667,13 @@ func rewriteValuedec64_OpRsh16x64_0(v *Value) bool {
// cond: c != 0
// result: (Signmask (SignExt16to32 x))
for {
_ = v.Args[1]
x := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpInt64Make {
break
}
_ = v_1.Args[1]
v_1_0 := v_1.Args[0]
if v_1_0.Op != OpConst32 {
break
......@@ -1634,11 +1692,13 @@ func rewriteValuedec64_OpRsh16x64_0(v *Value) bool {
// cond:
// result: (Rsh16x32 x lo)
for {
_ = v.Args[1]
x := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpInt64Make {
break
}
_ = v_1.Args[1]
v_1_0 := v_1.Args[0]
if v_1_0.Op != OpConst32 {
break
......@@ -1656,11 +1716,13 @@ func rewriteValuedec64_OpRsh16x64_0(v *Value) bool {
// cond: hi.Op != OpConst32
// result: (Rsh16x32 x (Or32 <typ.UInt32> (Zeromask hi) lo))
for {
_ = v.Args[1]
x := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpInt64Make {
break
}
_ = v_1.Args[1]
hi := v_1.Args[0]
lo := v_1.Args[1]
if !(hi.Op != OpConst32) {
......@@ -1687,10 +1749,12 @@ func rewriteValuedec64_OpRsh32Ux64_0(v *Value) bool {
// cond: c != 0
// result: (Const32 [0])
for {
_ = v.Args[1]
v_1 := v.Args[1]
if v_1.Op != OpInt64Make {
break
}
_ = v_1.Args[1]
v_1_0 := v_1.Args[0]
if v_1_0.Op != OpConst32 {
break
......@@ -1707,11 +1771,13 @@ func rewriteValuedec64_OpRsh32Ux64_0(v *Value) bool {
// cond:
// result: (Rsh32Ux32 x lo)
for {
_ = v.Args[1]
x := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpInt64Make {
break
}
_ = v_1.Args[1]
v_1_0 := v_1.Args[0]
if v_1_0.Op != OpConst32 {
break
......@@ -1729,11 +1795,13 @@ func rewriteValuedec64_OpRsh32Ux64_0(v *Value) bool {
// cond: hi.Op != OpConst32
// result: (Rsh32Ux32 x (Or32 <typ.UInt32> (Zeromask hi) lo))
for {
_ = v.Args[1]
x := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpInt64Make {
break
}
_ = v_1.Args[1]
hi := v_1.Args[0]
lo := v_1.Args[1]
if !(hi.Op != OpConst32) {
......@@ -1760,11 +1828,13 @@ func rewriteValuedec64_OpRsh32x64_0(v *Value) bool {
// cond: c != 0
// result: (Signmask x)
for {
_ = v.Args[1]
x := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpInt64Make {
break
}
_ = v_1.Args[1]
v_1_0 := v_1.Args[0]
if v_1_0.Op != OpConst32 {
break
......@@ -1781,11 +1851,13 @@ func rewriteValuedec64_OpRsh32x64_0(v *Value) bool {
// cond:
// result: (Rsh32x32 x lo)
for {
_ = v.Args[1]
x := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpInt64Make {
break
}
_ = v_1.Args[1]
v_1_0 := v_1.Args[0]
if v_1_0.Op != OpConst32 {
break
......@@ -1803,11 +1875,13 @@ func rewriteValuedec64_OpRsh32x64_0(v *Value) bool {
// cond: hi.Op != OpConst32
// result: (Rsh32x32 x (Or32 <typ.UInt32> (Zeromask hi) lo))
for {
_ = v.Args[1]
x := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpInt64Make {
break
}
_ = v_1.Args[1]
hi := v_1.Args[0]
lo := v_1.Args[1]
if !(hi.Op != OpConst32) {
......@@ -1834,10 +1908,12 @@ func rewriteValuedec64_OpRsh64Ux16_0(v *Value) bool {
// cond:
// result: (Int64Make (Rsh32Ux16 <typ.UInt32> hi s) (Or32 <typ.UInt32> (Or32 <typ.UInt32> (Rsh32Ux16 <typ.UInt32> lo s) (Lsh32x16 <typ.UInt32> hi (Sub16 <typ.UInt16> (Const16 <typ.UInt16> [32]) s))) (Rsh32Ux16 <typ.UInt32> hi (Sub16 <typ.UInt16> s (Const16 <typ.UInt16> [32])))))
for {
_ = v.Args[1]
v_0 := v.Args[0]
if v_0.Op != OpInt64Make {
break
}
_ = v_0.Args[1]
hi := v_0.Args[0]
lo := v_0.Args[1]
s := v.Args[1]
......@@ -1885,10 +1961,12 @@ func rewriteValuedec64_OpRsh64Ux32_0(v *Value) bool {
// cond:
// result: (Int64Make (Rsh32Ux32 <typ.UInt32> hi s) (Or32 <typ.UInt32> (Or32 <typ.UInt32> (Rsh32Ux32 <typ.UInt32> lo s) (Lsh32x32 <typ.UInt32> hi (Sub32 <typ.UInt32> (Const32 <typ.UInt32> [32]) s))) (Rsh32Ux32 <typ.UInt32> hi (Sub32 <typ.UInt32> s (Const32 <typ.UInt32> [32])))))
for {
_ = v.Args[1]
v_0 := v.Args[0]
if v_0.Op != OpInt64Make {
break
}
_ = v_0.Args[1]
hi := v_0.Args[0]
lo := v_0.Args[1]
s := v.Args[1]
......@@ -1936,10 +2014,12 @@ func rewriteValuedec64_OpRsh64Ux64_0(v *Value) bool {
// cond: c != 0
// result: (Const64 [0])
for {
_ = v.Args[1]
v_1 := v.Args[1]
if v_1.Op != OpInt64Make {
break
}
_ = v_1.Args[1]
v_1_0 := v_1.Args[0]
if v_1_0.Op != OpConst32 {
break
......@@ -1956,11 +2036,13 @@ func rewriteValuedec64_OpRsh64Ux64_0(v *Value) bool {
// cond:
// result: (Rsh64Ux32 x lo)
for {
_ = v.Args[1]
x := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpInt64Make {
break
}
_ = v_1.Args[1]
v_1_0 := v_1.Args[0]
if v_1_0.Op != OpConst32 {
break
......@@ -1978,11 +2060,13 @@ func rewriteValuedec64_OpRsh64Ux64_0(v *Value) bool {
// cond: hi.Op != OpConst32
// result: (Rsh64Ux32 x (Or32 <typ.UInt32> (Zeromask hi) lo))
for {
_ = v.Args[1]
x := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpInt64Make {
break
}
_ = v_1.Args[1]
hi := v_1.Args[0]
lo := v_1.Args[1]
if !(hi.Op != OpConst32) {
......@@ -2009,10 +2093,12 @@ func rewriteValuedec64_OpRsh64Ux8_0(v *Value) bool {
// cond:
// result: (Int64Make (Rsh32Ux8 <typ.UInt32> hi s) (Or32 <typ.UInt32> (Or32 <typ.UInt32> (Rsh32Ux8 <typ.UInt32> lo s) (Lsh32x8 <typ.UInt32> hi (Sub8 <typ.UInt8> (Const8 <typ.UInt8> [32]) s))) (Rsh32Ux8 <typ.UInt32> hi (Sub8 <typ.UInt8> s (Const8 <typ.UInt8> [32])))))
for {
_ = v.Args[1]
v_0 := v.Args[0]
if v_0.Op != OpInt64Make {
break
}
_ = v_0.Args[1]
hi := v_0.Args[0]
lo := v_0.Args[1]
s := v.Args[1]
......@@ -2060,10 +2146,12 @@ func rewriteValuedec64_OpRsh64x16_0(v *Value) bool {
// cond:
// result: (Int64Make (Rsh32x16 <typ.UInt32> hi s) (Or32 <typ.UInt32> (Or32 <typ.UInt32> (Rsh32Ux16 <typ.UInt32> lo s) (Lsh32x16 <typ.UInt32> hi (Sub16 <typ.UInt16> (Const16 <typ.UInt16> [32]) s))) (And32 <typ.UInt32> (Rsh32x16 <typ.UInt32> hi (Sub16 <typ.UInt16> s (Const16 <typ.UInt16> [32]))) (Zeromask (ZeroExt16to32 (Rsh16Ux32 <typ.UInt16> s (Const32 <typ.UInt32> [5])))))))
for {
_ = v.Args[1]
v_0 := v.Args[0]
if v_0.Op != OpInt64Make {
break
}
_ = v_0.Args[1]
hi := v_0.Args[0]
lo := v_0.Args[1]
s := v.Args[1]
......@@ -2123,10 +2211,12 @@ func rewriteValuedec64_OpRsh64x32_0(v *Value) bool {
// cond:
// result: (Int64Make (Rsh32x32 <typ.UInt32> hi s) (Or32 <typ.UInt32> (Or32 <typ.UInt32> (Rsh32Ux32 <typ.UInt32> lo s) (Lsh32x32 <typ.UInt32> hi (Sub32 <typ.UInt32> (Const32 <typ.UInt32> [32]) s))) (And32 <typ.UInt32> (Rsh32x32 <typ.UInt32> hi (Sub32 <typ.UInt32> s (Const32 <typ.UInt32> [32]))) (Zeromask (Rsh32Ux32 <typ.UInt32> s (Const32 <typ.UInt32> [5]))))))
for {
_ = v.Args[1]
v_0 := v.Args[0]
if v_0.Op != OpInt64Make {
break
}
_ = v_0.Args[1]
hi := v_0.Args[0]
lo := v_0.Args[1]
s := v.Args[1]
......@@ -2184,11 +2274,13 @@ func rewriteValuedec64_OpRsh64x64_0(v *Value) bool {
// cond: c != 0
// result: (Int64Make (Signmask (Int64Hi x)) (Signmask (Int64Hi x)))
for {
_ = v.Args[1]
x := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpInt64Make {
break
}
_ = v_1.Args[1]
v_1_0 := v_1.Args[0]
if v_1_0.Op != OpConst32 {
break
......@@ -2214,11 +2306,13 @@ func rewriteValuedec64_OpRsh64x64_0(v *Value) bool {
// cond:
// result: (Rsh64x32 x lo)
for {
_ = v.Args[1]
x := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpInt64Make {
break
}
_ = v_1.Args[1]
v_1_0 := v_1.Args[0]
if v_1_0.Op != OpConst32 {
break
......@@ -2236,11 +2330,13 @@ func rewriteValuedec64_OpRsh64x64_0(v *Value) bool {
// cond: hi.Op != OpConst32
// result: (Rsh64x32 x (Or32 <typ.UInt32> (Zeromask hi) lo))
for {
_ = v.Args[1]
x := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpInt64Make {
break
}
_ = v_1.Args[1]
hi := v_1.Args[0]
lo := v_1.Args[1]
if !(hi.Op != OpConst32) {
......@@ -2267,10 +2363,12 @@ func rewriteValuedec64_OpRsh64x8_0(v *Value) bool {
// cond:
// result: (Int64Make (Rsh32x8 <typ.UInt32> hi s) (Or32 <typ.UInt32> (Or32 <typ.UInt32> (Rsh32Ux8 <typ.UInt32> lo s) (Lsh32x8 <typ.UInt32> hi (Sub8 <typ.UInt8> (Const8 <typ.UInt8> [32]) s))) (And32 <typ.UInt32> (Rsh32x8 <typ.UInt32> hi (Sub8 <typ.UInt8> s (Const8 <typ.UInt8> [32]))) (Zeromask (ZeroExt8to32 (Rsh8Ux32 <typ.UInt8> s (Const32 <typ.UInt32> [5])))))))
for {
_ = v.Args[1]
v_0 := v.Args[0]
if v_0.Op != OpInt64Make {
break
}
_ = v_0.Args[1]
hi := v_0.Args[0]
lo := v_0.Args[1]
s := v.Args[1]
......@@ -2330,10 +2428,12 @@ func rewriteValuedec64_OpRsh8Ux64_0(v *Value) bool {
// cond: c != 0
// result: (Const32 [0])
for {
_ = v.Args[1]
v_1 := v.Args[1]
if v_1.Op != OpInt64Make {
break
}
_ = v_1.Args[1]
v_1_0 := v_1.Args[0]
if v_1_0.Op != OpConst32 {
break
......@@ -2350,11 +2450,13 @@ func rewriteValuedec64_OpRsh8Ux64_0(v *Value) bool {
// cond:
// result: (Rsh8Ux32 x lo)
for {
_ = v.Args[1]
x := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpInt64Make {
break
}
_ = v_1.Args[1]
v_1_0 := v_1.Args[0]
if v_1_0.Op != OpConst32 {
break
......@@ -2372,11 +2474,13 @@ func rewriteValuedec64_OpRsh8Ux64_0(v *Value) bool {
// cond: hi.Op != OpConst32
// result: (Rsh8Ux32 x (Or32 <typ.UInt32> (Zeromask hi) lo))
for {
_ = v.Args[1]
x := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpInt64Make {
break
}
_ = v_1.Args[1]
hi := v_1.Args[0]
lo := v_1.Args[1]
if !(hi.Op != OpConst32) {
......@@ -2403,11 +2507,13 @@ func rewriteValuedec64_OpRsh8x64_0(v *Value) bool {
// cond: c != 0
// result: (Signmask (SignExt8to32 x))
for {
_ = v.Args[1]
x := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpInt64Make {
break
}
_ = v_1.Args[1]
v_1_0 := v_1.Args[0]
if v_1_0.Op != OpConst32 {
break
......@@ -2426,11 +2532,13 @@ func rewriteValuedec64_OpRsh8x64_0(v *Value) bool {
// cond:
// result: (Rsh8x32 x lo)
for {
_ = v.Args[1]
x := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpInt64Make {
break
}
_ = v_1.Args[1]
v_1_0 := v_1.Args[0]
if v_1_0.Op != OpConst32 {
break
......@@ -2448,11 +2556,13 @@ func rewriteValuedec64_OpRsh8x64_0(v *Value) bool {
// cond: hi.Op != OpConst32
// result: (Rsh8x32 x (Or32 <typ.UInt32> (Zeromask hi) lo))
for {
_ = v.Args[1]
x := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpInt64Make {
break
}
_ = v_1.Args[1]
hi := v_1.Args[0]
lo := v_1.Args[1]
if !(hi.Op != OpConst32) {
......@@ -2532,11 +2642,13 @@ func rewriteValuedec64_OpStore_0(v *Value) bool {
// result: (Store {hi.Type} (OffPtr <hi.Type.PtrTo()> [4] dst) hi (Store {lo.Type} dst lo mem))
for {
t := v.Aux
_ = v.Args[2]
dst := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpInt64Make {
break
}
_ = v_1.Args[1]
hi := v_1.Args[0]
lo := v_1.Args[1]
mem := v.Args[2]
......@@ -2563,11 +2675,13 @@ func rewriteValuedec64_OpStore_0(v *Value) bool {
// result: (Store {lo.Type} (OffPtr <lo.Type.PtrTo()> [4] dst) lo (Store {hi.Type} dst hi mem))
for {
t := v.Aux
_ = v.Args[2]
dst := v.Args[0]
v_1 := v.Args[1]
if v_1.Op != OpInt64Make {
break
}
_ = v_1.Args[1]
hi := v_1.Args[0]
lo := v_1.Args[1]
mem := v.Args[2]
......@@ -2600,6 +2714,7 @@ func rewriteValuedec64_OpSub64_0(v *Value) bool {
// cond:
// result: (Int64Make (Sub32withcarry <typ.Int32> (Int64Hi x) (Int64Hi y) (Select1 <types.TypeFlags> (Sub32carry (Int64Lo x) (Int64Lo y)))) (Select0 <typ.UInt32> (Sub32carry (Int64Lo x) (Int64Lo y))))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpInt64Make)
......@@ -2643,6 +2758,7 @@ func rewriteValuedec64_OpTrunc64to16_0(v *Value) bool {
if v_0.Op != OpInt64Make {
break
}
_ = v_0.Args[1]
lo := v_0.Args[1]
v.reset(OpTrunc32to16)
v.AddArg(lo)
......@@ -2659,6 +2775,7 @@ func rewriteValuedec64_OpTrunc64to32_0(v *Value) bool {
if v_0.Op != OpInt64Make {
break
}
_ = v_0.Args[1]
lo := v_0.Args[1]
v.reset(OpCopy)
v.Type = lo.Type
......@@ -2676,6 +2793,7 @@ func rewriteValuedec64_OpTrunc64to8_0(v *Value) bool {
if v_0.Op != OpInt64Make {
break
}
_ = v_0.Args[1]
lo := v_0.Args[1]
v.reset(OpTrunc32to8)
v.AddArg(lo)
......@@ -2692,6 +2810,7 @@ func rewriteValuedec64_OpXor64_0(v *Value) bool {
// cond:
// result: (Int64Make (Xor32 <typ.UInt32> (Int64Hi x) (Int64Hi y)) (Xor32 <typ.UInt32> (Int64Lo x) (Int64Lo y)))
for {
_ = v.Args[1]
x := v.Args[0]
y := v.Args[1]
v.reset(OpInt64Make)
......
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment