[LLVMbugs] [Bug 1025] NEW: compiler abort with llvm.readcyclecounter on x86-64

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Tue Nov 28 14:19:07 PST 2006


http://llvm.org/bugs/show_bug.cgi?id=1025

           Summary: compiler abort with llvm.readcyclecounter on x86-64
           Product: libraries
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Backend: X86
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: djg at cray.com


The llvm.readcyclecounter intrinsic gets an abort on x86-64. This message is
printed:

Cannot yet select: 0x894a7d8: i64,ch = ReadCycleCounter 0x894a208

prior to a stack trace and abort.

Here's a testcase:

target datalayout = "e-p:64:64"
target endian = little
target pointersize = 64
target triple = "x86-64-unknown-linux-gnu"

implementation

int %main() {
        %y = call ulong %llvm.readcyclecounter()
        ret int 0
}

declare ulong %llvm.readcyclecounter()



------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.



More information about the llvm-bugs mailing list