mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-02 00:37:09 +00:00
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:
parent
b873ff322c
commit
bbafae6c80
10
test/CodeGen/X86/rdtsc.ll
Normal file
10
test/CodeGen/X86/rdtsc.ll
Normal 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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user