summaryrefslogtreecommitdiffstats
path: root/test/CodeGen/MSP430/Inst16rr.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/MSP430/Inst16rr.ll')
-rw-r--r--test/CodeGen/MSP430/Inst16rr.ll8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/CodeGen/MSP430/Inst16rr.ll b/test/CodeGen/MSP430/Inst16rr.ll
index 6619c51..2f1ba5b 100644
--- a/test/CodeGen/MSP430/Inst16rr.ll
+++ b/test/CodeGen/MSP430/Inst16rr.ll
@@ -29,6 +29,14 @@ define i16 @bis(i16 %a, i16 %b) nounwind {
ret i16 %1
}
+define i16 @bic(i16 %a, i16 %b) nounwind {
+; CHECK: bic:
+; CHECK: bic.w r14, r15
+ %1 = xor i16 %b, -1
+ %2 = and i16 %a, %1
+ ret i16 %2
+}
+
define i16 @xor(i16 %a, i16 %b) nounwind {
; CHECK: xor:
; CHECK: xor.w r14, r15
OpenPOWER on IntegriCloud