aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Lenharth <andrewl@lenharth.org>2005-11-20 21:41:59 +0000
committerAndrew Lenharth <andrewl@lenharth.org>2005-11-20 21:41:59 +0000
commitbbafae6c80ca57f3bc26e134121d5038b0e1d313 (patch)
tree644a64f4fb4b9f19160cbd3f23addaeeace9c8c4
parentb873ff322c28ce097762355921100b677c71238d (diff)
check that rdtsc is generated from readcyclecounter
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24431 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/CodeGen/X86/rdtsc.ll10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/CodeGen/X86/rdtsc.ll b/test/CodeGen/X86/rdtsc.ll
new file mode 100644
index 0000000000..289224ea26
--- /dev/null
+++ b/test/CodeGen/X86/rdtsc.ll
@@ -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
+}
+