cmd: Some questions about adding arm64 SIMD instruction support

69 views
Skip to first unread message

Heisenberg

unread,
Aug 28, 2020, 4:45:24 AM8/28/20
to golang-nuts
case AVADD:
return 7<<25 | 1<<21 | 1<<15 | 1<<10

case AVAND:
return 7<<25 | 1<<21 | 7<<10

case AVAND:
return 7<<25 | 1<<21 | 7<<10

case AVCMEQ:
return 1<<29 | 0x71<<21 | 0x23<<10

For the AVADD instruction, how is 7,1,1,1 determined? How is 25,21,15,10 determined? What do they mean? Why are the other commands different?

Can someone explain to me briefly? Thank you.

Heisenberg

unread,
Aug 28, 2020, 4:47:30 AM8/28/20
to golang-nuts
I forgot to say that this code is in src/cmd/internal/obj/arm64/asm7.go
Reply all
Reply to author
Forward
0 new messages