check that rdtsc is generated from readcyclecounter

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24431 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Andrew Lenharth 2005-11-20 21:41:59 +00:00
parent b873ff322c
commit bbafae6c80

10
test/CodeGen/X86/rdtsc.ll Normal file
View File

@ -0,0 +1,10 @@
; RUN: llvm-as < %s | llc -march=x86 | grep rptsc
declare ulong %llvm.readcyclecounter()
void %foo() {
entry:
%tmp.1 = call ulong %llvm.readcyclecounter ()
ret void
}