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 {
8 ; CHECK: mov.w r15, &foo
9 store i16 %a, i16* @foo
13 define void @add(i16 %a) nounwind {
15 ; CHECK: add.w r15, &foo
18 store i16 %2, i16* @foo
22 define void @and(i16 %a) nounwind {
24 ; CHECK: and.w r15, &foo
27 store i16 %2, i16* @foo
31 define void @bis(i16 %a) nounwind {
33 ; CHECK: bis.w r15, &foo
36 store i16 %2, i16* @foo
40 define void @bic(i16 zeroext %m) nounwind {
42 ; CHECK: bic.w r15, &foo
46 store i16 %3, i16* @foo
50 define void @xor(i16 %a) nounwind {
52 ; CHECK: xor.w r15, &foo
55 store i16 %2, i16* @foo