summaryrefslogtreecommitdiffstats
path: root/test/CodeGen/Blackfin/logic-i16.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/Blackfin/logic-i16.ll')
-rw-r--r--test/CodeGen/Blackfin/logic-i16.ll16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/CodeGen/Blackfin/logic-i16.ll b/test/CodeGen/Blackfin/logic-i16.ll
new file mode 100644
index 0000000..e44672f
--- /dev/null
+++ b/test/CodeGen/Blackfin/logic-i16.ll
@@ -0,0 +1,16 @@
+; RUN: llc < %s -march=bfin
+
+define i16 @and(i16 %A, i16 %B) {
+ %R = and i16 %A, %B ; <i16> [#uses=1]
+ ret i16 %R
+}
+
+define i16 @or(i16 %A, i16 %B) {
+ %R = or i16 %A, %B ; <i16> [#uses=1]
+ ret i16 %R
+}
+
+define i16 @xor(i16 %A, i16 %B) {
+ %R = xor i16 %A, %B ; <i16> [#uses=1]
+ ret i16 %R
+}
OpenPOWER on IntegriCloud