[LLVMbugs] [Bug 11026] New: [x86 assembler] rdrand not recognized?
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Tue Sep 27 11:05:29 PDT 2011
http://llvm.org/bugs/show_bug.cgi?id=11026
Summary: [x86 assembler] rdrand not recognized?
Product: libraries
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: Backend: X86
AssignedTo: unassignedbugs at nondot.org
ReportedBy: kkhoo at perfwizard.com
CC: llvmbugs at cs.uiuc.edu
>From the "Intel® 64 and IA-32 Architectures Software Developer’s Manual
Volume 2 (2A & 2B): Instruction Set Reference, A-Z", p. 4-309, dated May 2011:
RDRAND—Read Random Number
0F C7 /6
RDRAND r16
0F C7 /6
RDRAND r32
REX.W + 0F C7 /6
RDRAND r64
See also: http://en.wikipedia.org/wiki/RdRand
Using:
$ clang -v
Apple clang version 2.0 (tags/Apple/clang-139) (based on LLVM 2.9svn)
Target: x86_64-apple-darwin10
Thread model: posix
$ cat avx.s
rdrand $rax
$ clang -mavx avx.s -c
/var/folders/J5/J5ahEYzWEFC1BPEW37amTE+++TM/-Tmp-/cc-5nMsF2.s:5:1: error:
invalid instruction mnemonic 'rdrand'
--
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