]> granicus.if.org Git - zfs/commitdiff
Clang fixes
authoralaviss <alaviss@users.noreply.github.com>
Wed, 5 Jul 2017 17:38:20 +0000 (00:38 +0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 5 Jul 2017 17:38:20 +0000 (10:38 -0700)
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

module/icp/asm-x86_64/sha2/sha256_impl.S
module/icp/asm-x86_64/sha2/sha512_impl.S

index 867dbb0f2d1bb5a0d5ea19ff44cd5d588b2e3cb3..766b75355f0b86f9eb69a5c290dabfb61a0714ca 100644 (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
index 4acc72cbc7dd4f1b0c52c65cb7d30b18655f9fe6..6e37618761b234478b1717007e98b7d14ee0966c 100644 (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