Skip to content

Commit 185229e

Browse files
shigekiMylesBorins
authored andcommitted
deps: update openssl asm and asm_obsolete files
Regenerate asm files with Makefile and CC=gcc and ASM=nasm where gcc version was 5.4.0 and nasm version was 2.11.08. Also asm files in asm_obsolete dir to support old compiler and assembler are regenerated without CC and ASM envs. PR-URL: #16691 Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Michael Dawson <[email protected]> Reviewed-By: Myles Borins <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Rod Vagg <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 162686f commit 185229e

File tree

12 files changed

+150
-48
lines changed

12 files changed

+150
-48
lines changed

‎deps/openssl/asm/x64-elf-gas/bn/x86_64-mont5.s‎

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3075,11 +3075,19 @@ __bn_sqrx8x_internal:
30753075

30763076
.align32
30773077
.Lsqrx8x_break:
3078-
subq16+8(%rsp),%r8
3078+
xorq%rbp,%rbp
3079+
subq16+8(%rsp),%rbx
3080+
adcxq %rbp,%r8
30793081
movq24+8(%rsp),%rcx
3082+
adcxq %rbp,%r9
30803083
movq0(%rsi),%rdx
3081-
xorl%ebp,%ebp
3084+
adcq$0,%r10
30823085
movq%r8,0(%rdi)
3086+
adcq$0,%r11
3087+
adcq$0,%r12
3088+
adcq$0,%r13
3089+
adcq$0,%r14
3090+
adcq$0,%r15
30833091
cmpq%rcx,%rdi
30843092
je .Lsqrx8x_outer_loop
30853093

‎deps/openssl/asm/x64-elf-gas/ec/ecp_nistz256-x86_64.s‎

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1036,19 +1036,18 @@ __ecp_nistz256_sqr_montx:
10361036
adoxq %rbp,%r13
10371037
.byte0x67,0x67
10381038
mulxq%rdx,%rcx,%rax
1039-
movq%r8,%rdx
1039+
movq.Lpoly+24(%rip),%rdx
10401040
adoxq %rcx,%r14
10411041
shlxq %rsi,%r8,%rcx
10421042
adoxq %rax,%r15
10431043
shrxq %rsi,%r8,%rax
1044-
movq.Lpoly+24(%rip),%rbp
1044+
movq%rdx,%rbp
10451045

10461046

10471047
addq%rcx,%r9
10481048
adcq%rax,%r10
10491049

1050-
mulxq%rbp,%rcx,%r8
1051-
movq%r9,%rdx
1050+
mulxq%r8,%rcx,%r8
10521051
adcq%rcx,%r11
10531052
shlxq %rsi,%r9,%rcx
10541053
adcq$0,%r8
@@ -1058,8 +1057,7 @@ __ecp_nistz256_sqr_montx:
10581057
addq%rcx,%r10
10591058
adcq%rax,%r11
10601059

1061-
mulxq%rbp,%rcx,%r9
1062-
movq%r10,%rdx
1060+
mulxq%r9,%rcx,%r9
10631061
adcq%rcx,%r8
10641062
shlxq %rsi,%r10,%rcx
10651063
adcq$0,%r9
@@ -1069,8 +1067,7 @@ __ecp_nistz256_sqr_montx:
10691067
addq%rcx,%r11
10701068
adcq%rax,%r8
10711069

1072-
mulxq%rbp,%rcx,%r10
1073-
movq%r11,%rdx
1070+
mulxq%r10,%rcx,%r10
10741071
adcq%rcx,%r9
10751072
shlxq %rsi,%r11,%rcx
10761073
adcq$0,%r10
@@ -1080,12 +1077,12 @@ __ecp_nistz256_sqr_montx:
10801077
addq%rcx,%r8
10811078
adcq%rax,%r9
10821079

1083-
mulxq%rbp,%rcx,%r11
1080+
mulxq%r11,%rcx,%r11
10841081
adcq%rcx,%r10
10851082
adcq$0,%r11
10861083

10871084
xorq%rdx,%rdx
1088-
adcq%r8,%r12
1085+
addq%r8,%r12
10891086
movq .Lpoly+8(%rip),%rsi
10901087
adcq%r9,%r13
10911088
movq%r12,%r8
@@ -1094,8 +1091,7 @@ __ecp_nistz256_sqr_montx:
10941091
movq%r13,%r9
10951092
adcq$0,%rdx
10961093

1097-
xorl%eax,%eax
1098-
sbbq$-1,%r12
1094+
subq$-1,%r12
10991095
movq%r14,%r10
11001096
sbbq%rsi,%r13
11011097
sbbq$0,%r14

‎deps/openssl/asm/x64-elf-gas/x86_64cpuid.s‎

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,19 @@ OPENSSL_ia32_cpuid:
116116
orl$0x40000000,%edx
117117
andb$15,%ah
118118
cmpb$15,%ah
119-
jne .Lnotintel
119+
jne .LnotP4
120120
orl$0x00100000,%edx
121+
.LnotP4:
122+
cmpb$6,%ah
123+
jne .Lnotintel
124+
andl$0x0fff0ff0,%eax
125+
cmpl$0x00050670,%eax
126+
je .Lknights
127+
cmpl$0x00080650,%eax
128+
jne .Lnotintel
129+
.Lknights:
130+
andl$0xfbffffff,%ecx
131+
121132
.Lnotintel:
122133
btl$28,%edx
123134
jnc .Lgeneric
@@ -142,6 +153,10 @@ OPENSSL_ia32_cpuid:
142153
movl$7,%eax
143154
xorl%ecx,%ecx
144155
cpuid
156+
btl$26,%r9d
157+
jc .Lnotknights
158+
andl$0xfff7ffff,%ebx
159+
.Lnotknights:
145160
movl%ebx,8(%rdi)
146161
.Lno_extended_info:
147162

‎deps/openssl/asm/x64-macosx-gas/bn/x86_64-mont5.s‎

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3075,11 +3075,19 @@ L$sqrx8x_loop:
30753075

30763076
.p2align5
30773077
L$sqrx8x_break:
3078-
subq16+8(%rsp),%r8
3078+
xorq%rbp,%rbp
3079+
subq16+8(%rsp),%rbx
3080+
adcxq %rbp,%r8
30793081
movq24+8(%rsp),%rcx
3082+
adcxq %rbp,%r9
30803083
movq0(%rsi),%rdx
3081-
xorl%ebp,%ebp
3084+
adcq$0,%r10
30823085
movq%r8,0(%rdi)
3086+
adcq$0,%r11
3087+
adcq$0,%r12
3088+
adcq$0,%r13
3089+
adcq$0,%r14
3090+
adcq$0,%r15
30833091
cmpq%rcx,%rdi
30843092
je L$sqrx8x_outer_loop
30853093

‎deps/openssl/asm/x64-macosx-gas/ec/ecp_nistz256-x86_64.s‎

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1036,19 +1036,18 @@ __ecp_nistz256_sqr_montx:
10361036
adoxq %rbp,%r13
10371037
.byte0x67,0x67
10381038
mulxq%rdx,%rcx,%rax
1039-
movq%r8,%rdx
1039+
movqL$poly+24(%rip),%rdx
10401040
adoxq %rcx,%r14
10411041
shlxq %rsi,%r8,%rcx
10421042
adoxq %rax,%r15
10431043
shrxq %rsi,%r8,%rax
1044-
movqL$poly+24(%rip),%rbp
1044+
movq%rdx,%rbp
10451045

10461046

10471047
addq%rcx,%r9
10481048
adcq%rax,%r10
10491049

1050-
mulxq%rbp,%rcx,%r8
1051-
movq%r9,%rdx
1050+
mulxq%r8,%rcx,%r8
10521051
adcq%rcx,%r11
10531052
shlxq %rsi,%r9,%rcx
10541053
adcq$0,%r8
@@ -1058,8 +1057,7 @@ __ecp_nistz256_sqr_montx:
10581057
addq%rcx,%r10
10591058
adcq%rax,%r11
10601059

1061-
mulxq%rbp,%rcx,%r9
1062-
movq%r10,%rdx
1060+
mulxq%r9,%rcx,%r9
10631061
adcq%rcx,%r8
10641062
shlxq %rsi,%r10,%rcx
10651063
adcq$0,%r9
@@ -1069,8 +1067,7 @@ __ecp_nistz256_sqr_montx:
10691067
addq%rcx,%r11
10701068
adcq%rax,%r8
10711069

1072-
mulxq%rbp,%rcx,%r10
1073-
movq%r11,%rdx
1070+
mulxq%r10,%rcx,%r10
10741071
adcq%rcx,%r9
10751072
shlxq %rsi,%r11,%rcx
10761073
adcq$0,%r10
@@ -1080,12 +1077,12 @@ __ecp_nistz256_sqr_montx:
10801077
addq%rcx,%r8
10811078
adcq%rax,%r9
10821079

1083-
mulxq%rbp,%rcx,%r11
1080+
mulxq%r11,%rcx,%r11
10841081
adcq%rcx,%r10
10851082
adcq$0,%r11
10861083

10871084
xorq%rdx,%rdx
1088-
adcq%r8,%r12
1085+
addq%r8,%r12
10891086
movq L$poly+8(%rip),%rsi
10901087
adcq%r9,%r13
10911088
movq%r12,%r8
@@ -1094,8 +1091,7 @@ __ecp_nistz256_sqr_montx:
10941091
movq%r13,%r9
10951092
adcq$0,%rdx
10961093

1097-
xorl%eax,%eax
1098-
sbbq$-1,%r12
1094+
subq$-1,%r12
10991095
movq%r14,%r10
11001096
sbbq%rsi,%r13
11011097
sbbq$0,%r14

‎deps/openssl/asm/x64-macosx-gas/x86_64cpuid.s‎

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,19 @@ L$nocacheinfo:
117117
orl$0x40000000,%edx
118118
andb$15,%ah
119119
cmpb$15,%ah
120-
jne L$notintel
120+
jne L$notP4
121121
orl$0x00100000,%edx
122+
L$notP4:
123+
cmpb$6,%ah
124+
jne L$notintel
125+
andl$0x0fff0ff0,%eax
126+
cmpl$0x00050670,%eax
127+
je L$knights
128+
cmpl$0x00080650,%eax
129+
jne L$notintel
130+
L$knights:
131+
andl$0xfbffffff,%ecx
132+
122133
L$notintel:
123134
btl$28,%edx
124135
jnc L$generic
@@ -143,6 +154,10 @@ L$generic:
143154
movl$7,%eax
144155
xorl%ecx,%ecx
145156
cpuid
157+
btl$26,%r9d
158+
jc L$notknights
159+
andl$0xfff7ffff,%ebx
160+
L$notknights:
146161
movl%ebx,8(%rdi)
147162
L$no_extended_info:
148163

‎deps/openssl/asm/x64-win32-masm/bn/x86_64-mont5.asm‎

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3166,11 +3166,19 @@ DB 067h
31663166

31673167
ALIGN32
31683168
$L$sqrx8x_break::
3169-
subr8,QWORD PTR[((16+8))+rsp]
3169+
xorrbp,rbp
3170+
subrbx,QWORD PTR[((16+8))+rsp]
3171+
adcxr8,rbp
31703172
movrcx,QWORD PTR[((24+8))+rsp]
3173+
adcxr9,rbp
31713174
movrdx,QWORD PTR[rsi]
3172-
xorebp,ebp
3175+
adcr10,0
31733176
mov QWORD PTR[rdi],r8
3177+
adcr11,0
3178+
adcr12,0
3179+
adcr13,0
3180+
adcr14,0
3181+
adcr15,0
31743182
cmprdi,rcx
31753183
je$L$sqrx8x_outer_loop
31763184

‎deps/openssl/asm/x64-win32-masm/ec/ecp_nistz256-x86_64.asm‎

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1137,19 +1137,18 @@ DB 067h
11371137
adoxr13,rbp
11381138
DB067h,067h
11391139
mulxrax,rcx,rdx
1140-
movrdx,r8
1140+
movrdx,QWORD PTR[(($L$poly+24))]
11411141
adoxr14,rcx
11421142
shlxrcx,r8,rsi
11431143
adoxr15,rax
11441144
shrxrax,r8,rsi
1145-
movrbp,QWORD PTR[(($L$poly+24))]
1145+
movrbp,rdx
11461146

11471147

11481148
addr9,rcx
11491149
adcr10,rax
11501150

1151-
mulxr8,rcx,rbp
1152-
movrdx,r9
1151+
mulxr8,rcx,r8
11531152
adcr11,rcx
11541153
shlxrcx,r9,rsi
11551154
adcr8,0
@@ -1159,8 +1158,7 @@ DB 067h,067h
11591158
addr10,rcx
11601159
adcr11,rax
11611160

1162-
mulxr9,rcx,rbp
1163-
movrdx,r10
1161+
mulxr9,rcx,r9
11641162
adcr8,rcx
11651163
shlxrcx,r10,rsi
11661164
adcr9,0
@@ -1170,8 +1168,7 @@ DB 067h,067h
11701168
addr11,rcx
11711169
adcr8,rax
11721170

1173-
mulxr10,rcx,rbp
1174-
movrdx,r11
1171+
mulxr10,rcx,r10
11751172
adcr9,rcx
11761173
shlxrcx,r11,rsi
11771174
adcr10,0
@@ -1181,12 +1178,12 @@ DB 067h,067h
11811178
addr8,rcx
11821179
adcr9,rax
11831180

1184-
mulxr11,rcx,rbp
1181+
mulxr11,rcx,r11
11851182
adcr10,rcx
11861183
adcr11,0
11871184

11881185
xorrdx,rdx
1189-
adcr12,r8
1186+
addr12,r8
11901187
movrsi,QWORD PTR[(($L$poly+8))]
11911188
adcr13,r9
11921189
movr8,r12
@@ -1195,8 +1192,7 @@ DB 067h,067h
11951192
movr9,r13
11961193
adcrdx,0
11971194

1198-
xoreax,eax
1199-
sbbr12,-1
1195+
subr12,-1
12001196
movr10,r14
12011197
sbbr13,rsi
12021198
sbbr14,0

‎deps/openssl/asm/x64-win32-masm/x86_64cpuid.asm‎

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,19 @@ $L$nocacheinfo::
127127
oredx,040000000h
128128
andah,15
129129
cmpah,15
130-
jne$L$notintel
130+
jne$L$notP4
131131
oredx,000100000h
132+
$L$notP4::
133+
cmpah,6
134+
jne$L$notintel
135+
andeax,00fff0ff0h
136+
cmpeax,000050670h
137+
je$L$knights
138+
cmpeax,000080650h
139+
jne$L$notintel
140+
$L$knights::
141+
andecx,0fbffffffh
142+
132143
$L$notintel::
133144
btedx,28
134145
jnc$L$generic
@@ -153,6 +164,10 @@ $L$generic::
153164
moveax,7
154165
xorecx,ecx
155166
cpuid
167+
btr9d,26
168+
jc$L$notknights
169+
andebx,0fff7ffffh
170+
$L$notknights::
156171
mov DWORD PTR[8+rdi],ebx
157172
$L$no_extended_info::
158173

‎deps/openssl/asm_obsolete/x64-elf-gas/x86_64cpuid.s‎

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,19 @@ OPENSSL_ia32_cpuid:
116116
orl$0x40000000,%edx
117117
andb$15,%ah
118118
cmpb$15,%ah
119-
jne .Lnotintel
119+
jne .LnotP4
120120
orl$0x00100000,%edx
121+
.LnotP4:
122+
cmpb$6,%ah
123+
jne .Lnotintel
124+
andl$0x0fff0ff0,%eax
125+
cmpl$0x00050670,%eax
126+
je .Lknights
127+
cmpl$0x00080650,%eax
128+
jne .Lnotintel
129+
.Lknights:
130+
andl$0xfbffffff,%ecx
131+
121132
.Lnotintel:
122133
btl$28,%edx
123134
jnc .Lgeneric
@@ -142,6 +153,10 @@ OPENSSL_ia32_cpuid:
142153
movl$7,%eax
143154
xorl%ecx,%ecx
144155
cpuid
156+
btl$26,%r9d
157+
jc .Lnotknights
158+
andl$0xfff7ffff,%ebx
159+
.Lnotknights:
145160
movl%ebx,8(%rdi)
146161
.Lno_extended_info:
147162

0 commit comments

Comments
(0)