summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/MSP430/Inst16rr.ll
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2009-11-08 15:33:12 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2009-11-08 15:33:12 +0000
commit700c4ab3f9c3a9ad0aa73b558f25cf6213fec5b7 (patch)
treef009c08ed6e4b96f575c2c956711db6884e075a1 /llvm/test/CodeGen/MSP430/Inst16rr.ll
parente92c5087647bdb45522dd3cbe4a8cd7f6e0a83b5 (diff)
downloadbcm5719-llvm-700c4ab3f9c3a9ad0aa73b558f25cf6213fec5b7.tar.gz
bcm5719-llvm-700c4ab3f9c3a9ad0aa73b558f25cf6213fec5b7.zip
Add and-not (bic) patterns. Based heavily on patch by Brian Lucas!
llvm-svn: 86471
Diffstat (limited to 'llvm/test/CodeGen/MSP430/Inst16rr.ll')
-rw-r--r--llvm/test/CodeGen/MSP430/Inst16rr.ll8
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/MSP430/Inst16rr.ll b/llvm/test/CodeGen/MSP430/Inst16rr.ll
index 6619c518236..2f1ba5b4f13 100644
--- a/llvm/test/CodeGen/MSP430/Inst16rr.ll
+++ b/llvm/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