1 ; RUN: llc -march=msp430 < %s | FileCheck %s 2 target datalayout = "e-p:16:8:8-i8:8:8-i8:8:8-i32:8:8" 3 target triple = "msp430-generic-generic" 4 @foo = common global i8 0, align 1 5 6 define void @mov() nounwind { 7 ; CHECK-LABEL: mov: 8 ; CHECK: mov.b #2, &foo 9 store i8 2, i8 * @foo 10 ret void 11 } 12 13 define void @add() nounwind { 14 ; CHECK-LABEL: add: 15 ; CHECK: add.b #2, &foo 16 %1 = load i8* @foo 17 %2 = add i8 %1, 2 18 store i8 %2, i8 * @foo 19 ret void 20 } 21 22 define void @and() nounwind { 23 ; CHECK-LABEL: and: 24 ; CHECK: and.b #2, &foo 25 %1 = load i8* @foo 26 %2 = and i8 %1, 2 27 store i8 %2, i8 * @foo 28 ret void 29 } 30 31 define void @bis() nounwind { 32 ; CHECK-LABEL: bis: 33 ; CHECK: bis.b #2, &foo 34 %1 = load i8* @foo 35 %2 = or i8 %1, 2 36 store i8 %2, i8 * @foo 37 ret void 38 } 39 40 define void @xor() nounwind { 41 ; CHECK-LABEL: xor: 42 ; CHECK: xor.b #2, &foo 43 %1 = load i8* @foo 44 %2 = xor i8 %1, 2 45 store i8 %2, i8 * @foo 46 ret void 47 } 48 49