diff options
Diffstat (limited to 'test/codegen/mathbits.go')
| -rw-r--r-- | test/codegen/mathbits.go | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/codegen/mathbits.go b/test/codegen/mathbits.go index fe9c4eceb5..20c945fbc3 100644 --- a/test/codegen/mathbits.go +++ b/test/codegen/mathbits.go @@ -798,6 +798,18 @@ func Mul64(x, y uint64) (hi, lo uint64) { return bits.Mul64(x, y) } +func Mul64HiOnly(x, y uint64) uint64 { + // arm64:"UMULH",-"MUL" + hi, _ := bits.Mul64(x, y) + return hi +} + +func Mul64LoOnly(x, y uint64) uint64 { + // arm64:"MUL",-"UMULH" + _, lo := bits.Mul64(x, y) + return lo +} + // --------------- // // bits.Div* // // --------------- // |
