2018-05-31 15:38:18 -06:00
|
|
|
// asmcheck
|
|
|
|
|
|
|
|
// Copyright 2018 The Go Authors. All rights reserved.
|
|
|
|
// Use of this source code is governed by a BSD-style
|
|
|
|
// license that can be found in the LICENSE file.
|
|
|
|
|
|
|
|
package codegen
|
|
|
|
|
|
|
|
var wsp = [256]bool{
|
|
|
|
' ': true,
|
|
|
|
'\t': true,
|
|
|
|
'\n': true,
|
|
|
|
'\r': true,
|
|
|
|
}
|
|
|
|
|
2021-04-12 12:00:49 -06:00
|
|
|
func zeroExtArgByte(ch [2]byte) bool {
|
|
|
|
return wsp[ch[0]] // amd64:-"MOVBLZX\t..,.."
|
2018-05-31 15:38:18 -06:00
|
|
|
}
|
|
|
|
|
2021-04-12 12:00:49 -06:00
|
|
|
func zeroExtArgUint16(ch [2]uint16) bool {
|
|
|
|
return wsp[ch[0]] // amd64:-"MOVWLZX\t..,.."
|
2018-05-31 15:38:18 -06:00
|
|
|
}
|