aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/Blackfin/cycles.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/Blackfin/cycles.ll')
-rw-r--r--test/CodeGen/Blackfin/cycles.ll11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/CodeGen/Blackfin/cycles.ll b/test/CodeGen/Blackfin/cycles.ll
new file mode 100644
index 0000000..042cb57
--- /dev/null
+++ b/test/CodeGen/Blackfin/cycles.ll
@@ -0,0 +1,11 @@
+; RUN: llvm-as < %s | llc -march=bfin | grep cycles
+; XFAIL: *
+; ExpandIntegerResult #0: 0x181a60c: i64,ch = ReadCycleCounter 0x1104b08
+; Do not know how to expand the result of this operator!
+
+declare i64 @llvm.readcyclecounter()
+
+define i64 @foo() {
+ %tmp.1 = call i64 @llvm.readcyclecounter()
+ ret i64 %tmp.1
+}