1
0
mirror of https://github.com/golang/go synced 2024-11-23 23:30:10 -07:00

all: change the old assembly style AX:CX to CX, AX

Files with "/vendor/" or "testdata" in their paths were ignored.
This commit is contained in:
Neven Sajko 2019-03-30 19:34:40 +00:00
parent 637f34fee0
commit 51ae8c324d
3 changed files with 12 additions and 12 deletions

View File

@ -2300,10 +2300,10 @@ TEXT ·p256PointDoubleAsm(SB),NOSPLIT,$256-48
CMOVQEQ t3, acc7
ANDQ t0, mul0
SHRQ $1, acc4:acc5
SHRQ $1, acc5:acc6
SHRQ $1, acc6:acc7
SHRQ $1, acc7:mul0
SHRQ $1, acc5, acc4
SHRQ $1, acc6, acc5
SHRQ $1, acc7, acc6
SHRQ $1, mul0, acc7
ST (y)
/////////////////////////
LDacc (x)

View File

@ -136,7 +136,7 @@ TEXT ·shlVU(SB),NOSPLIT,$0
MOVL s+24(FP), CX
MOVL (SI)(BX*4), AX // w1 = x[n-1]
MOVL $0, DX
SHLL CX, DX:AX // w1>>ŝ
SHLL CX, AX, DX // w1>>ŝ
MOVL DX, c+28(FP)
CMPL BX, $0
@ -145,7 +145,7 @@ TEXT ·shlVU(SB),NOSPLIT,$0
// i > 0
L8: MOVL AX, DX // w = w1
MOVL -4(SI)(BX*4), AX // w1 = x[i-1]
SHLL CX, DX:AX // w<<s | w1>>ŝ
SHLL CX, AX, DX // w<<s | w1>>ŝ
MOVL DX, (DI)(BX*4) // z[i] = w<<s | w1>>ŝ
SUBL $1, BX // i--
JG L8 // i > 0
@ -171,7 +171,7 @@ TEXT ·shrVU(SB),NOSPLIT,$0
MOVL s+24(FP), CX
MOVL (SI), AX // w1 = x[0]
MOVL $0, DX
SHRL CX, DX:AX // w1<<ŝ
SHRL CX, AX, DX // w1<<ŝ
MOVL DX, c+28(FP)
MOVL $0, BX // i = 0
@ -180,7 +180,7 @@ TEXT ·shrVU(SB),NOSPLIT,$0
// i < n-1
L9: MOVL AX, DX // w = w1
MOVL 4(SI)(BX*4), AX // w1 = x[i+1]
SHRL CX, DX:AX // w>>s | w1<<ŝ
SHRL CX, AX, DX // w>>s | w1<<ŝ
MOVL DX, (DI)(BX*4) // z[i] = w>>s | w1<<ŝ
ADDL $1, BX // i++

View File

@ -264,7 +264,7 @@ TEXT ·shlVU(SB),NOSPLIT,$0
MOVQ s+48(FP), CX
MOVQ (R8)(BX*8), AX // w1 = x[n-1]
MOVQ $0, DX
SHLQ CX, DX:AX // w1>>ŝ
SHLQ CX, AX, DX // w1>>ŝ
MOVQ DX, c+56(FP)
CMPQ BX, $0
@ -273,7 +273,7 @@ TEXT ·shlVU(SB),NOSPLIT,$0
// i > 0
L8: MOVQ AX, DX // w = w1
MOVQ -8(R8)(BX*8), AX // w1 = x[i-1]
SHLQ CX, DX:AX // w<<s | w1>>ŝ
SHLQ CX, AX, DX // w<<s | w1>>ŝ
MOVQ DX, (R10)(BX*8) // z[i] = w<<s | w1>>ŝ
SUBQ $1, BX // i--
JG L8 // i > 0
@ -299,7 +299,7 @@ TEXT ·shrVU(SB),NOSPLIT,$0
MOVQ s+48(FP), CX
MOVQ (R8), AX // w1 = x[0]
MOVQ $0, DX
SHRQ CX, DX:AX // w1<<ŝ
SHRQ CX, AX, DX // w1<<ŝ
MOVQ DX, c+56(FP)
MOVQ $0, BX // i = 0
@ -308,7 +308,7 @@ TEXT ·shrVU(SB),NOSPLIT,$0
// i < n-1
L9: MOVQ AX, DX // w = w1
MOVQ 8(R8)(BX*8), AX // w1 = x[i+1]
SHRQ CX, DX:AX // w>>s | w1<<ŝ
SHRQ CX, AX, DX // w>>s | w1<<ŝ
MOVQ DX, (R10)(BX*8) // z[i] = w>>s | w1<<ŝ
ADDQ $1, BX // i++