• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: llc < %s -march=thumb -mattr=+thumb2 | FileCheck %s
2
3
4; 0x000000bb = 187
5define i32 @f1(i32 %a) {
6    %tmp2 = or i32 %a, 187
7    ret i32 %tmp2
8}
9; CHECK: f1:
10; CHECK: 	orr	r0, r0, #187
11
12; 0x00aa00aa = 11141290
13define i32 @f2(i32 %a) {
14    %tmp2 = or i32 %a, 11141290
15    ret i32 %tmp2
16}
17; CHECK: f2:
18; CHECK: 	orr	r0, r0, #11141290
19
20; 0xcc00cc00 = 3422604288
21define i32 @f3(i32 %a) {
22    %tmp2 = or i32 %a, 3422604288
23    ret i32 %tmp2
24}
25; CHECK: f3:
26; CHECK: 	orr	r0, r0, #-872363008
27
28; 0x44444444 = 1145324612
29define i32 @f4(i32 %a) {
30    %tmp2 = or i32 %a, 1145324612
31    ret i32 %tmp2
32}
33; CHECK: f4:
34; CHECK: 	orr	r0, r0, #1145324612
35
36; 0x00110000 = 1114112
37define i32 @f5(i32 %a) {
38    %tmp2 = or i32 %a, 1114112
39    ret i32 %tmp2
40}
41; CHECK: f5:
42; CHECK: 	orr	r0, r0, #1114112
43