]> Cypherpunks.ru repositories - gostls13.git/blobdiff - src/cmd/compile/internal/ssa/_gen/MIPS64.rules
cmd/compile: intrinsify Sub64 on mips64
[gostls13.git] / src / cmd / compile / internal / ssa / _gen / MIPS64.rules
index 5c07abc79b36e348fff8b91a439e686a453ee5ca..cabc7c652dff6ce4d8157ce10c25f947c5261802 100644 (file)
 (Select1 <t> (Add64carry x y c)) =>
        (OR (SGTU <t> x s:(ADDV <t> x y)) (SGTU <t> s (ADDV <t> s c)))
 
+(Select0 <t> (Sub64borrow x y c)) => (SUBV (SUBV <t> x y) c)
+(Select1 <t> (Sub64borrow x y c)) =>
+       (OR (SGTU <t> s:(SUBV <t> x y) x) (SGTU <t> (SUBV <t> s c) s))
+
 // math package intrinsics
 (Abs ...) => (ABSD ...)