1 ; RUN: llc -march=msp430 < %s | FileCheck %s
2 target datalayout = "e-p:16:8:8-i8:8:8-i16:8:8-i32:8:8"
3 target triple = "msp430-generic-generic"
4 @foo = common global i16 0, align 2
6 define void @mov(i16 %a) nounwind {
9 store i16 %a, i16* @foo
13 define void @add(i16 %a) nounwind {
15 ; CHECK: add r12, &foo
16 %1 = load i16, i16* @foo
18 store i16 %2, i16* @foo
22 define void @and(i16 %a) nounwind {
24 ; CHECK: and r12, &foo
25 %1 = load i16, i16* @foo
27 store i16 %2, i16* @foo
31 define void @bis(i16 %a) nounwind {
33 ; CHECK: bis r12, &foo
34 %1 = load i16, i16* @foo
36 store i16 %2, i16* @foo
40 define void @bic(i16 zeroext %m) nounwind {
42 ; CHECK: bic r12, &foo
44 %2 = load i16, i16* @foo
46 store i16 %3, i16* @foo
50 define void @xor(i16 %a) nounwind {
52 ; CHECK: xor r12, &foo
53 %1 = load i16, i16* @foo
55 store i16 %2, i16* @foo