[LLVMbugs] [Bug 8936] New: [MC x86] does not know xcryptecb instruction
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Sat Jan 8 15:36:34 PST 2011
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: unassignedbugs at nondot.org
ReportedBy: kaffeemonster at googlemail.com
CC: llvmbugs at cs.uiuc.edu
TOT at 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.
More information about the llvm-bugs
mailing list