Rich Salz
e0a651945c
Copyright consolidation: perl files
Add copyright to most .pl files
This does NOT cover any .pl file that has other copyright in it.
Most of those are Andy's but some are public domain.
Fix typo's in some existing files.
Reviewed-by: Richard Levitte <levitte@openssl.org>
6 years ago
Andy Polyakov
d405aa2ff2
perlasm/x86_64-xlate.pl: make latest ml64 work.
Reviewed-by: Richard Levitte <levitte@openssl.org>
6 years ago
Andy Polyakov
6e42e3ff9c
perlasm/x86_64-xlate.pl: handle binary constants early.
Not all assemblers of "gas" flavour handle binary constants, e.g.
seasoned MacOS Xcode doesn't, so give them a hand.
Reviewed-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
7 years ago
Viktor Dukhovni
ce3d25d3e5
Fix some issues near recent chomp changes.
Reviewed-by: Richard Levitte <levitte@openssl.org>
7 years ago
Richard Levitte
9ba96fbb25
Perl's chop / chomp considered bad, use a regexp instead
Once upon a time, there was chop, which somply chopped off the last
character of $_ or a given variable, and it was used to take off the
EOL character (\n) of strings.
... but then, you had to check for the presence of such character.
So came chomp, the better chop which checks for \n before chopping it
off. And this worked well, as long as Perl made internally sure that
all EOLs were converted to \n.
These days, though, there seems to be a mixture of perls, so lines
from files in the "wrong" environment might have \r\n as EOL, or just
\r (Mac OS, unless I'm misinformed).
So it's time we went for the more generic variant and use s|\R$||, the
better chomp which recognises all kinds of known EOLs and chops them
off.
A few chops were left alone, as they are use as surgical tools to
remove one last slash or one last comma.
NOTE: \R came with perl 5.10.0. It means that from now on, our
scripts will fail with any older version.
Reviewed-by: Rich Salz <rsalz@openssl.org>
7 years ago
Andy Polyakov
fd7dc201d3
perlasm/x86_64-xlate.pl: pass pure constants verbatim.
RT#3885
Reviewed-by: Rich Salz <rsalz@openssl.org>
7 years ago
FdaSilvaYY
0d4fb84390
GH601: Various spelling fixes.
Signed-off-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
7 years ago
Andy Polyakov
902b30df19
perlasm/x86_64-xlate.pl: handle inter-bank movd.
Reviewed-by: Rich Salz <rsalz@openssl.org>
8 years ago
Andy Polyakov
1b0fe79f3e
x86_64 assembly pack: improve masm support.
8 years ago
Andy Polyakov
f4d456408d
x86[_64]cpuid.pl: add low-level RDSEED.
9 years ago
Andy Polyakov
41965a84c4
x86_64-xlate.pl: minor update.
9 years ago
Andy Polyakov
667053a2f3
x86_64-xlate.pl: fix jrcxz in nasm case.
9 years ago
Veres Lajos
478b50cf67
misspellings fixes by https://github.com/vlajos/misspell_fixer
9 years ago
Andy Polyakov
a9d14832fd
x86_64-xlate.pl: Windows fixes.
9 years ago
Andy Polyakov
22de0e6583
x86_64-xlate.pl: minor size/performance improvement.
9 years ago
Andy Polyakov
f6ff1aa8e0
sha512-x86_64.pl: revert previous change and solve the problem through
perlasm/x86_64-xlate.pl instead.
10 years ago
Andy Polyakov
b2ae61ecf2
x86_64-xlate.pl: remove old kludge.
PR: 2435,2440
11 years ago
Andy Polyakov
e6903980af
x86_64-xlate.pl: proper solution for RT#2620.
11 years ago
Andy Polyakov
ff6f9f96fd
cryptlib.c, etc.: fix linker warnings in 64-bit Darwin build.
11 years ago
Andy Polyakov
4010b341b7
x86_64-xlate.pl: make vpaes-x86_64.pl and rc4-md5-x86_64 work with ml64,
fix bug in .crt section alignment.
PR: 2620, 2624
11 years ago
Andy Polyakov
a87ff751b7
Add so called Vector Permutation AES x86[_64] assembler, see
http://crypto.stanford.edu/vpaes/ for background information.
It's not integrated into build system yet.
11 years ago
Andy Polyakov
272ba87017
x86_64-xlate.pl: fix movzw.
11 years ago
Andy Polyakov
6fa4c7c43b
x86_64-xlate.pl: sha1 and md5 warnings made it to nasm 2.09, extend gnu
assembler workaround to all assemblers.
11 years ago
Andy Polyakov
94c64f9a1c
x86_64-xlate.pl: masm-specific update.
11 years ago
Andy Polyakov
0a9a692e4e
Minor x86_64 perlasm update.
11 years ago
Andy Polyakov
301799b803
x86[_64]cpuid.pl: add function accessing rdrand instruction.
11 years ago
Andy Polyakov
c7b903e01d
x86_64-xlate.pl: add inter-register movq and make x86_64-gfm.s compile on
Solaris, MacOS X, elderly gas...
11 years ago
Andy Polyakov
ddc20d4da9
x86_64cpuid.pl: allow shared build to work without -Bsymbolic.
PR: 2466
11 years ago
Andy Polyakov
b5c6aab57e
x86_64-xlate.pl: allow "base-less" effective address, add palignr, move
pclmulqdq.
11 years ago
Andy Polyakov
d6522548dd
x86_64-xlate.pl: fix LNK4078 and LNK4210 link warnings.
PR 2356
12 years ago
Andy Polyakov
a9e790b95a
perlasm/x86_64-xlate.pl: extend SSE>2 to ml64.
12 years ago
Andy Polyakov
f9a152bd90
x86_64-xlate.pl: refine mingw support and regexps, update commentary.
12 years ago
Andy Polyakov
046ea30864
x86_64-xlate.pl: refine some regexp's and add support for OWORD/QWORD PTR.
12 years ago
Andy Polyakov
fead253986
perlasm/x86*: add support to SSE>2 and pclmulqdq. x86_64-xlate.pl provides
correct solution to problem addressed in committ #19244 .
13 years ago
Dr. Stephen Henson
c95bf51167
don't assume 0x is at start of string
13 years ago
Andy Polyakov
ee2b8ed2f5
x86_64-xlate.pl: refine sign extension logic when handling lea.
PR: 2094,2095
13 years ago
Andy Polyakov
10232bdc0e
x86_64-xlate.pl: new gas requires sign extention in lea instruction.
This resolves md5-x86_64.pl and sha1-x86_64.pl bugs, but without modifying
the code.
PR: 2094,2095
13 years ago
Andy Polyakov
6dd9066e0e
x86_64-xlate.pl: small commentary update.
13 years ago
Andy Polyakov
065c5d6328
Engage cmll-x86_64.pl in Win64 build and make it compile correctly.
13 years ago
Andy Polyakov
6c8b9259fc
AESNI perlasm update.
13 years ago
Andy Polyakov
e81695205e
x86_64-xlate.pl: support for binary constants, such as 0b1010101.
14 years ago
Andy Polyakov
bf785c9849
x86_64-xlate.pl: fix masm hexadecimal constants.
14 years ago
Andy Polyakov
4db4882402
perlasm/x86* update: support for 3 and 4 argument instructions.
14 years ago
Andy Polyakov
93c4ba07d7
x86_64-xlate.pl update, engage x86_64 assembler in mingw64.
14 years ago
Andy Polyakov
8525377265
x86_64-xlate.pl to support MacOS X and mingw64.
14 years ago
Andy Polyakov
8fe8bae15a
Minor perlasm updates.
14 years ago
Andy Polyakov
80aa9cc985
x86_64-xlate.pl update: refine SEH support.
14 years ago
Andy Polyakov
9b634c9b37
x86_64-xlate.pl: implement indirect jump/calls, support for Win64 SEH.
14 years ago
Andy Polyakov
4f46934269
Depict future Win64/x64 development.
14 years ago
Andy Polyakov
a23e3dbee1
Support for NASM>=2 in Win64/x64 build.
15 years ago