4
5// Package asm implements the parser and instruction generator for the assembler.
6▶// TODO: Split apart?
7package asm
8
· · ·
654 return true
655 }
656▶ // R(1)<<... Ugly check. TODO: Rethink how we handle ARM register shifts to be
657 // less special.
658 if p.peek() != '(' || len(p.input)-p.inputPos < 4 {
· · ·
1202 a.Reg = r1
1203 if r2 != 0 {
1204▶ // TODO: Consistency in the encoding would be nice here.
1205 if p.arch.InFamily(sys.ARM, sys.ARM64) {
1206 // Special form