Analog Devices Blackfin back-end.
[oota-llvm.git] / test / CodeGen / Blackfin / cycles.ll
diff --git a/test/CodeGen/Blackfin/cycles.ll b/test/CodeGen/Blackfin/cycles.ll
new file mode 100644 (file)
index 0000000..042cb57
--- /dev/null
@@ -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
+}