check that rdtsc is generated from readcyclecounter
authorAndrew Lenharth <andrewl@lenharth.org>
Sun, 20 Nov 2005 21:41:59 +0000 (21:41 +0000)
committerAndrew Lenharth <andrewl@lenharth.org>
Sun, 20 Nov 2005 21:41:59 +0000 (21:41 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24431 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/X86/rdtsc.ll [new file with mode: 0644]

diff --git a/test/CodeGen/X86/rdtsc.ll b/test/CodeGen/X86/rdtsc.ll
new file mode 100644 (file)
index 0000000..289224e
--- /dev/null
@@ -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
+}
+