check that rdtsc is generated from readcyclecounter

llvm-svn: 24431
This commit is contained in:
Andrew Lenharth 2005-11-20 21:41:59 +00:00
parent 0bf68ae434
commit c943f6bfae
1 changed files with 10 additions and 0 deletions

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
}