test/codegen/issue25378.go
raw| 1 | // asmcheck |
| 2 | |
| 3 | // Copyright 2018 The Go Authors. All rights reserved. |
| 4 | // Use of this source code is governed by a BSD-style |
| 5 | // license that can be found in the LICENSE file. |
| 6 | |
| 7 | package codegen |
| 8 | |
| 9 | var wsp = [256]bool{ |
| 10 | ' ': true, |
| 11 | '\t': true, |
| 12 | '\n': true, |
| 13 | '\r': true, |
| 14 | } |
| 15 | |
| 16 | func zeroExtArgByte(ch [2]byte) bool { |
| 17 | return wsp[ch[0]] // amd64:-"MOVBLZX ..,.." |
| 18 | } |
| 19 | |
| 20 | func zeroExtArgUint16(ch [2]uint16) bool { |
| 21 | return wsp[ch[0]] // amd64:-"MOVWLZX ..,.." |
| 22 | } |