Skip to content

Commit cdec853

Browse files
committed
arch/x86: Fixed FCLEX/FNCLEX, FCMOVcc, etc... instructions not parse
Fixed FCLEX/FNCLEX, FCMOVcc, FPATAN, INVD, INVLPG, LOCK, OUT, OUTS/OUTSB/OUTSW/OUTSD, PUSH, RCL/RCR/ROL/ROR, RDMSR, SAL/SAR/SHL/SHR, SGDT, and SIDT instructions in Intel Instruction Set Reference golang/go#325383-079US, March 2023 is not parse Change-Id: I609c12731ec170fb2d04562aa45956b2e22b88e4
1 parent 40c19ba commit cdec853

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

x86/x86spec/parse.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ func parsePage(p pdf.Page, pageNum int) *listing {
414414

415415
// Table follows; heading is NeoSansIntelMedium and rows are NeoSansIntel.
416416
i := 0
417-
for i < len(text) && match(text[i], "NeoSansIntelMedium", 9, "") {
417+
for i < len(text) && (match(text[i], "NeoSansIntelMedium", 9, "") || match(text[i], "NeoSansIntelMedium", 7.2, "1")) {
418418
i++
419419
}
420420
for i < len(text) && match(text[i], "NeoSansIntel", 9, "") && text[i].S != "NOTES:" {
@@ -820,6 +820,9 @@ func processListing(p *listing, insts *[]*instruction) {
820820
case "Opcode":
821821
inst.opcode = x
822822

823+
case "1":
824+
// pass
825+
823826
case "Instruction":
824827
inst.syntax = x
825828

0 commit comments

Comments
 (0)