summaryrefslogtreecommitdiff
path: root/test/CodeGen/Blackfin/sync-intr.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/Blackfin/sync-intr.ll')
-rw-r--r--test/CodeGen/Blackfin/sync-intr.ll13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/CodeGen/Blackfin/sync-intr.ll b/test/CodeGen/Blackfin/sync-intr.ll
new file mode 100644
index 0000000000000..75084f01e5607
--- /dev/null
+++ b/test/CodeGen/Blackfin/sync-intr.ll
@@ -0,0 +1,13 @@
+; RUN: llc < %s -march=bfin -verify-machineinstrs | FileCheck %s
+
+define void @f() nounwind {
+entry:
+ ; CHECK: csync;
+ call void @llvm.bfin.csync()
+ ; CHECK: ssync;
+ call void @llvm.bfin.ssync()
+ ret void
+}
+
+declare void @llvm.bfin.csync() nounwind
+declare void @llvm.bfin.ssync() nounwind