xref: /minix3/external/bsd/llvm/dist/llvm/test/CodeGen/MSP430/Inst8ri.ll (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1*f4a2713aSLionel Sambuc; RUN: llc -march=msp430 < %s | FileCheck %s
2*f4a2713aSLionel Sambuctarget datalayout = "e-p:16:8:8-i8:8:8-i16:8:8-i32:8:8"
3*f4a2713aSLionel Sambuctarget triple = "msp430-generic-generic"
4*f4a2713aSLionel Sambuc
5*f4a2713aSLionel Sambucdefine i8 @mov() nounwind {
6*f4a2713aSLionel Sambuc; CHECK-LABEL: mov:
7*f4a2713aSLionel Sambuc; CHECK: mov.b	#1, r15
8*f4a2713aSLionel Sambuc	ret i8 1
9*f4a2713aSLionel Sambuc}
10*f4a2713aSLionel Sambuc
11*f4a2713aSLionel Sambucdefine i8 @add(i8 %a, i8 %b) nounwind {
12*f4a2713aSLionel Sambuc; CHECK-LABEL: add:
13*f4a2713aSLionel Sambuc; CHECK: add.b	#1, r15
14*f4a2713aSLionel Sambuc	%1 = add i8 %a, 1
15*f4a2713aSLionel Sambuc	ret i8 %1
16*f4a2713aSLionel Sambuc}
17*f4a2713aSLionel Sambuc
18*f4a2713aSLionel Sambucdefine i8 @and(i8 %a, i8 %b) nounwind {
19*f4a2713aSLionel Sambuc; CHECK-LABEL: and:
20*f4a2713aSLionel Sambuc; CHECK: and.b	#1, r15
21*f4a2713aSLionel Sambuc	%1 = and i8 %a, 1
22*f4a2713aSLionel Sambuc	ret i8 %1
23*f4a2713aSLionel Sambuc}
24*f4a2713aSLionel Sambuc
25*f4a2713aSLionel Sambucdefine i8 @bis(i8 %a, i8 %b) nounwind {
26*f4a2713aSLionel Sambuc; CHECK-LABEL: bis:
27*f4a2713aSLionel Sambuc; CHECK: bis.b	#1, r15
28*f4a2713aSLionel Sambuc	%1 = or i8 %a, 1
29*f4a2713aSLionel Sambuc	ret i8 %1
30*f4a2713aSLionel Sambuc}
31*f4a2713aSLionel Sambuc
32*f4a2713aSLionel Sambucdefine i8 @xor(i8 %a, i8 %b) nounwind {
33*f4a2713aSLionel Sambuc; CHECK-LABEL: xor:
34*f4a2713aSLionel Sambuc; CHECK: xor.b	#1, r15
35*f4a2713aSLionel Sambuc	%1 = xor i8 %a, 1
36*f4a2713aSLionel Sambuc	ret i8 %1
37*f4a2713aSLionel Sambuc}
38