• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: llc -march=msp430 < %s | FileCheck %s
2target datalayout = "e-p:16:8:8-i8:8:8-i16:8:8-i32:8:8"
3target triple = "msp430-generic-generic"
4
5define i8 @mov() nounwind {
6; CHECK: mov:
7; CHECK: mov.b	#1, r15
8	ret i8 1
9}
10
11define i8 @add(i8 %a, i8 %b) nounwind {
12; CHECK: add:
13; CHECK: add.b	#1, r15
14	%1 = add i8 %a, 1
15	ret i8 %1
16}
17
18define i8 @and(i8 %a, i8 %b) nounwind {
19; CHECK: and:
20; CHECK: and.b	#1, r15
21	%1 = and i8 %a, 1
22	ret i8 %1
23}
24
25define i8 @bis(i8 %a, i8 %b) nounwind {
26; CHECK: bis:
27; CHECK: bis.b	#1, r15
28	%1 = or i8 %a, 1
29	ret i8 %1
30}
31
32define i8 @xor(i8 %a, i8 %b) nounwind {
33; CHECK: xor:
34; CHECK: xor.b	#1, r15
35	%1 = xor i8 %a, 1
36	ret i8 %1
37}
38