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