summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/MSP430/Inst16mm.ll
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/CodeGen/MSP430/Inst16mm.ll')
-rw-r--r--llvm/test/CodeGen/MSP430/Inst16mm.ll8
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/MSP430/Inst16mm.ll b/llvm/test/CodeGen/MSP430/Inst16mm.ll
index dd4b570f8a1..5f492bbf0c0 100644
--- a/llvm/test/CodeGen/MSP430/Inst16mm.ll
+++ b/llvm/test/CodeGen/MSP430/Inst16mm.ll
@@ -4,6 +4,14 @@ target triple = "msp430-generic-generic"
@foo = common global i16 0, align 2
@bar = common global i16 0, align 2
+define void @mov() nounwind {
+; CHECK: mov:
+; CHECK: mov.w &bar, &foo
+ %1 = load i16* @bar
+ store i16 %1, i16* @foo
+ ret void
+}
+
define void @add() nounwind {
; CHECK: add:
; CHECK: add.w &bar, &foo
OpenPOWER on IntegriCloud