aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/Blackfin/cycles.ll
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2009-08-08 21:42:22 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2009-08-08 21:42:22 +0000
commit46151de6a0d08184c1bfc90bb39657ff1e21729e (patch)
tree21b45558c55af07bf1da9158438d5c8d77777533 /test/CodeGen/Blackfin/cycles.ll
parentf7427e558dab6fa21a32003c474ddaa5c8cb6175 (diff)
downloadexternal_llvm-46151de6a0d08184c1bfc90bb39657ff1e21729e.zip
external_llvm-46151de6a0d08184c1bfc90bb39657ff1e21729e.tar.gz
external_llvm-46151de6a0d08184c1bfc90bb39657ff1e21729e.tar.bz2
Add support for READCYCLECOUNTER in Blackfin back-end.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78506 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/Blackfin/cycles.ll')
-rw-r--r--test/CodeGen/Blackfin/cycles.ll16
1 files changed, 11 insertions, 5 deletions
diff --git a/test/CodeGen/Blackfin/cycles.ll b/test/CodeGen/Blackfin/cycles.ll
index 042cb57..745e259 100644
--- a/test/CodeGen/Blackfin/cycles.ll
+++ b/test/CodeGen/Blackfin/cycles.ll
@@ -1,11 +1,17 @@
-; 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!
+; RUN: llvm-as < %s | llc -march=bfin | FileCheck %s
declare i64 @llvm.readcyclecounter()
-define i64 @foo() {
+; CHECK: cycles
+; CHECK: cycles2
+define i64 @cyc64() {
%tmp.1 = call i64 @llvm.readcyclecounter()
ret i64 %tmp.1
}
+
+; CHECK: cycles
+define i32@cyc32() {
+ %tmp.1 = call i64 @llvm.readcyclecounter()
+ %s = trunc i64 %tmp.1 to i32
+ ret i32 %s
+}