• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: llc -march=mipsel < %s | FileCheck %s
2
3define i32 @foo0() nounwind readnone {
4entry:
5; CHECK: foo0
6; CHECK: lui $[[R0:[0-9]+]], 4660
7; CHECK: ori ${{[0-9]+}}, $[[R0]], 22136
8  ret i32 305419896
9}
10
11define i32 @foo1() nounwind readnone {
12entry:
13; CHECK: foo1
14; CHECK: lui ${{[0-9]+}}, 4660
15; CHECK-NOT: ori
16  ret i32 305397760
17}
18
19define i32 @foo2() nounwind readnone {
20entry:
21; CHECK: foo2
22; CHECK: addiu ${{[0-9]+}}, $zero, 4660
23  ret i32 4660
24}
25
26define i32 @foo17() nounwind readnone {
27entry:
28; CHECK: foo17
29; CHECK: addiu ${{[0-9]+}}, $zero, -32204
30  ret i32 -32204
31}
32
33define i32 @foo18() nounwind readnone {
34entry:
35; CHECK: foo18
36; CHECK: ori ${{[0-9]+}}, $zero, 33332
37  ret i32 33332
38}
39