http://llvm.org/bugs/show_bug.cgi?id=8936
Summary: [MC x86] does not know xcryptecb instruction
Product: new-bugs
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: new bugs
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
t...@123092
struct aes_encrypt_ctx
{
unsigned k[(11*16)/4];
} __attribute__((aligned(16)));
void aes_ecb_encrypt_padlock(const struct aes_encrypt_ctx *ctx, void *out,
const void *in)
{
static const unsigned control_word[4] __attribute__((aligned(16))) =
{138, 0, 0, 0};
unsigned c, S, D;
asm(
"rep xcryptecb\n\t"
: /* %0 */ "=S" (S),
/* %1 */ "=D" (D),
/* %2 */ "=c" (c),
/* %4 */ "=m" (*(char *)out)
: /* %4 */ "d" (control_word),
/* %5 */ "b" (&ctx->k),
/* %6 */ "2" (1),
/* %7 */ "0" (in),
/* %8 */ "1" (out),
/* %9 */ "m" (*(const char *)in)
);
}
$ clang -c xcryptecb.c
xcryptecb.c:13:4: error: invalid instruction mnemonic 'xcryptecb'
"rep xcryptecb\n\t"
^
<inline asm>:1:6: note: instantiated into assembly here
rep xcryptecb
^
1 error generated.
Greetings
Jan
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs