~pali/+junk/llvm-toolchain-3.7

« back to all changes in this revision

Viewing changes to test/CodeGen/Thumb2/thumb2-and2.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 -mtriple=thumb-eabi -mcpu=arm1156t2-s -mattr=+thumb2 %s -o - | FileCheck %s
 
2
 
 
3
; 171 = 0x000000ab
 
4
define i32 @f1(i32 %a) {
 
5
    %tmp = and i32 %a, 171
 
6
    ret i32 %tmp
 
7
}
 
8
; CHECK-LABEL: f1:
 
9
; CHECK:        and     r0, r0, #171
 
10
 
 
11
; 1179666 = 0x00120012
 
12
define i32 @f2(i32 %a) {
 
13
    %tmp = and i32 %a, 1179666
 
14
    ret i32 %tmp
 
15
}
 
16
; CHECK-LABEL: f2:
 
17
; CHECK:        and     r0, r0, #1179666
 
18
 
 
19
; 872428544 = 0x34003400
 
20
define i32 @f3(i32 %a) {
 
21
    %tmp = and i32 %a, 872428544
 
22
    ret i32 %tmp
 
23
}
 
24
; CHECK-LABEL: f3:
 
25
; CHECK:        and     r0, r0, #872428544
 
26
 
 
27
; 1448498774 = 0x56565656
 
28
define i32 @f4(i32 %a) {
 
29
    %tmp = and i32 %a, 1448498774
 
30
    ret i32 %tmp
 
31
}
 
32
; CHECK-LABEL: f4:
 
33
; CHECK: bic r0, r0, #-1448498775
 
34
 
 
35
; 66846720 = 0x03fc0000
 
36
define i32 @f5(i32 %a) {
 
37
    %tmp = and i32 %a, 66846720
 
38
    ret i32 %tmp
 
39
}
 
40
; CHECK-LABEL: f5:
 
41
; CHECK:        and     r0, r0, #66846720