svn commit: r327340 - projects/clang600-import/sys/crypto/via
Dimitry Andric
dim at FreeBSD.org
Fri Dec 29 12:49:26 UTC 2017
Author: dim
Date: Fri Dec 29 12:49:24 2017
New Revision: 327340
URL: https://svnweb.freebsd.org/changeset/base/327340
Log:
Work around a clang 6.0.0 issue with rep prefixes followed by .byte
directives (as reported in https://bugs.llvm.org/show_bug.cgi?id=35749),
by defining the rep prefix with yet another .byte directive.
This is a temporary fix, to be reverted before merging back to head,
until upstream has a proper fix for this.
Modified:
projects/clang600-import/sys/crypto/via/padlock_cipher.c
Modified: projects/clang600-import/sys/crypto/via/padlock_cipher.c
==============================================================================
--- projects/clang600-import/sys/crypto/via/padlock_cipher.c Fri Dec 29 12:48:19 2017 (r327339)
+++ projects/clang600-import/sys/crypto/via/padlock_cipher.c Fri Dec 29 12:49:24 2017 (r327340)
@@ -88,7 +88,7 @@ padlock_cbc(void *in, void *out, size_t count, void *k
__asm __volatile(
"pushf \n\t"
"popf \n\t"
- "rep \n\t"
+ ".byte 0xf3 \n\t"
".byte 0x0f, 0xa7, 0xd0"
: "+a" (iv), "+c" (count), "+D" (out), "+S" (in)
: "b" (key), "d" (cw)
More information about the svn-src-projects
mailing list