~pali/+junk/llvm-toolchain-3.7

« back to all changes in this revision

Viewing changes to test/CodeGen/MSP430/Inst16ri.ll

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2015-07-15 17:51:08 UTC
  • Revision ID: package-import@ubuntu.com-20150715175108-l8mynwovkx4zx697
Tags: upstream-3.7~+rc2
ImportĀ upstreamĀ versionĀ 3.7~+rc2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
 
 
5
define i16 @mov() nounwind {
 
6
; CHECK-LABEL: mov:
 
7
; CHECK: mov.w  #1, r15
 
8
        ret i16 1
 
9
}
 
10
 
 
11
define i16 @add(i16 %a, i16 %b) nounwind {
 
12
; CHECK-LABEL: add:
 
13
; CHECK: add.w  #1, r15
 
14
        %1 = add i16 %a, 1
 
15
        ret i16 %1
 
16
}
 
17
 
 
18
define i16 @and(i16 %a, i16 %b) nounwind {
 
19
; CHECK-LABEL: and:
 
20
; CHECK: and.w  #1, r15
 
21
        %1 = and i16 %a, 1
 
22
        ret i16 %1
 
23
}
 
24
 
 
25
define i16 @bis(i16 %a, i16 %b) nounwind {
 
26
; CHECK-LABEL: bis:
 
27
; CHECK: bis.w  #1, r15
 
28
        %1 = or i16 %a, 1
 
29
        ret i16 %1
 
30
}
 
31
 
 
32
define i16 @xor(i16 %a, i16 %b) nounwind {
 
33
; CHECK-LABEL: xor:
 
34
; CHECK: xor.w  #1, r15
 
35
        %1 = xor i16 %a, 1
 
36
        ret i16 %1
 
37
}