llvm-6502/test/CodeGen/X86/rdtsc.ll
Chris Lattner 33a13d4bd2 This should not be dce'd
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24433 91177308-0d34-0410-b5e6-96231b3b80d8
2005-11-20 21:46:52 +00:00

10 lines
172 B
LLVM

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