llvm-6502/test/CodeGen/X86/rdtsc.ll
2006-11-29 08:29:59 +00:00

11 lines
228 B
LLVM

; RUN: llvm-as < %s | llc -march=x86 | grep rdtsc &&
; RUN: llvm-as < %s | llc -march=x86-64 | grep rdtsc
declare ulong %llvm.readcyclecounter()
ulong %foo() {
%tmp.1 = call ulong %llvm.readcyclecounter ()
ret ulong %tmp.1
}