summaryrefslogtreecommitdiff
path: root/test/CodeGen/MSP430/Inst8mr.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
commitf0b47b7f6d417692bfda507e4b4a16c12e036ee9 (patch)
treedfb1b3c18571c95b76c622c4775435f53e562057 /test/CodeGen/MSP430/Inst8mr.ll
parent830fe7bc2dd35b77ecff6e8ae27e768e531536b6 (diff)
downloadllvm-f0b47b7f6d417692bfda507e4b4a16c12e036ee9.tar.gz
llvm-f0b47b7f6d417692bfda507e4b4a16c12e036ee9.tar.bz2
llvm-f0b47b7f6d417692bfda507e4b4a16c12e036ee9.tar.xz
Add and-not (bic) patterns. Based heavily on patch by Brian Lucas!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86471 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/MSP430/Inst8mr.ll')
-rw-r--r--test/CodeGen/MSP430/Inst8mr.ll10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/CodeGen/MSP430/Inst8mr.ll b/test/CodeGen/MSP430/Inst8mr.ll
index 04c681ef29..428d1fa38d 100644
--- a/test/CodeGen/MSP430/Inst8mr.ll
+++ b/test/CodeGen/MSP430/Inst8mr.ll
@@ -37,6 +37,16 @@ define void @bis(i8 %a) nounwind {
ret void
}
+define void @bic(i8 zeroext %m) nounwind {
+; CHECK: bic:
+; CHECK: bic.b r15, &foo
+ %1 = xor i8 %m, -1
+ %2 = load i8* @foo
+ %3 = and i8 %2, %1
+ store i8 %3, i8* @foo
+ ret void
+}
+
define void @xor(i8 %a) nounwind {
; CHECK: xor:
; CHECK: xor.b r15, &foo