Clang fixes

Clang doesn't support `/` as comment in assembly, this patch replaces
them with `#`.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: George Melikov <mail@gmelikov.ru>
Signed-off-by: Leorize <alaviss@users.noreply.github.com>
Closes #6311
This commit is contained in:
alaviss 2017-07-06 00:38:20 +07:00 committed by Brian Behlendorf
parent 02dc43bc46
commit 688c94c5c0
2 changed files with 10 additions and 10 deletions

View File

@ -100,12 +100,12 @@ ENTRY_NP(SHA256TransformBlocks)
mov %rdx,16*4+2*8(%rsp) # save end pointer, "3rd" arg
mov %rbp,16*4+3*8(%rsp) # save copy of %rsp
/.picmeup %rbp
/ The .picmeup pseudo-directive, from perlasm/x86_64_xlate.pl, puts
/ the address of the "next" instruction into the target register
/ (%rbp). This generates these 2 instructions:
#.picmeup %rbp
# The .picmeup pseudo-directive, from perlasm/x86_64_xlate.pl, puts
# the address of the "next" instruction into the target register
# (%rbp). This generates these 2 instructions:
lea .Llea(%rip),%rbp
/nop / .picmeup generates a nop for mod 8 alignment--not needed here
#nop # .picmeup generates a nop for mod 8 alignment--not needed here
.Llea:
lea K256-.(%rbp),%rbp

View File

@ -101,12 +101,12 @@ ENTRY_NP(SHA512TransformBlocks)
mov %rdx,16*8+2*8(%rsp) # save end pointer, "3rd" arg
mov %rbp,16*8+3*8(%rsp) # save copy of %rsp
/.picmeup %rbp
/ The .picmeup pseudo-directive, from perlasm/x86_64_xlate.pl, puts
/ the address of the "next" instruction into the target register
/ (%rbp). This generates these 2 instructions:
#.picmeup %rbp
# The .picmeup pseudo-directive, from perlasm/x86_64_xlate.pl, puts
# the address of the "next" instruction into the target register
# (%rbp). This generates these 2 instructions:
lea .Llea(%rip),%rbp
/nop / .picmeup generates a nop for mod 8 alignment--not needed here
#nop # .picmeup generates a nop for mod 8 alignment--not needed here
.Llea:
lea K512-.(%rbp),%rbp