Skip to content

Commit f844b0b

Browse files
committed
cmd/internal/obj/x86: rename POPCNT to POPCNTQ
Ilya added POPCNT in a CL earlier this month but it's really only POPCNTQ. The other forms still need to be added. For #4816. Change-Id: I1186850d32ad6d5777475c7808e6fc9d9133e118 Reviewed-on: https://go-review.googlesource.com/18848 Reviewed-by: Rob Pike <[email protected]>
1 parent 02717bd commit f844b0b

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

src/cmd/internal/obj/x86/a.out.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,9 @@ const (
181181
APAUSE
182182
APOPAL
183183
APOPAW
184-
APOPCNT
184+
APOPCNTW
185+
APOPCNTL
186+
APOPCNTQ
185187
APOPFL
186188
APOPFW
187189
APOPL

src/cmd/internal/obj/x86/anames.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,9 @@ var Anames = []string{
149149
"PAUSE",
150150
"POPAL",
151151
"POPAW",
152-
"POPCNT",
152+
"POPCNTW",
153+
"POPCNTL",
154+
"POPCNTQ",
153155
"POPFL",
154156
"POPFW",
155157
"POPL",

src/cmd/internal/obj/x86/asm6.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1208,7 +1208,7 @@ var optab =
12081208
{APMULULQ, ymm, Py1, [23]uint8{0xf4, Pe, 0xf4}},
12091209
{APOPAL, ynone, P32, [23]uint8{0x61}},
12101210
{APOPAW, ynone, Pe, [23]uint8{0x61}},
1211-
{APOPCNT, yml_rl, Pfw, [23]uint8{0xb8}},
1211+
{APOPCNTQ, yml_rl, Pfw, [23]uint8{0xb8}},
12121212
{APOPFL, ynone, P32, [23]uint8{0x9d}},
12131213
{APOPFQ, ynone, Py, [23]uint8{0x9d}},
12141214
{APOPFW, ynone, Pe, [23]uint8{0x9d}},

0 commit comments

Comments
 (0)