1 ; RUN: llc -march=msp430 < %s | FileCheck %s
3 target datalayout = "e-p:16:8:8-i8:8:8-i16:8:8-i32:8:8"
4 target triple = "msp430-generic-generic"
5 @foo = common global i16 0, align 2
7 define void @mov() nounwind {
14 define void @add() nounwind {
17 %1 = load i16, ptr @foo
19 store i16 %2, ptr @foo
23 define void @and() nounwind {
26 %1 = load i16, ptr @foo
28 store i16 %2, ptr @foo
32 define void @bis() nounwind {
35 %1 = load i16, ptr @foo
37 store i16 %2, ptr @foo
41 define void @xor() nounwind {
44 %1 = load i16, ptr @foo
46 store i16 %2, ptr @foo