1 ; RUN: llc -march=mips64el -mcpu=mips4 < %s | FileCheck %s
2 ; RUN: llc -march=mips64el -mcpu=mips64 < %s | FileCheck %s
4 define i32 @foo1() nounwind readnone {
7 ; CHECK: lui ${{[0-9]+}}, 4660
12 define i64 @foo3() nounwind readnone {
15 ; CHECK: lui $[[R0:[0-9]+]], 4660
16 ; CHECK: ori ${{[0-9]+}}, $[[R0]], 22136
20 define i64 @foo6() nounwind readnone {
23 ; CHECK: ori ${{[0-9]+}}, $zero, 33332
27 define i64 @foo7() nounwind readnone {
30 ; CHECK: daddiu ${{[0-9]+}}, $zero, -32204
34 define i64 @foo9() nounwind readnone {
37 ; CHECK: lui $[[R0:[0-9]+]], 583
38 ; CHECK: daddiu $[[R1:[0-9]+]], $[[R0]], -30001
39 ; CHECK: dsll $[[R2:[0-9]+]], $[[R1]], 18
40 ; CHECK: daddiu $[[R3:[0-9]+]], $[[R2]], 18441
41 ; CHECK: dsll $[[R4:[0-9]+]], $[[R3]], 17
42 ; CHECK: daddiu ${{[0-9]+}}, $[[R4]], 13398
43 ret i64 1311768467284833366
46 define i64 @foo10() nounwind readnone {
49 ; CHECK: lui $[[R0:[0-9]+]], 34661
50 ; CHECK: daddiu ${{[0-9]+}}, $[[R0]], 17185
51 ret i64 -8690466096928522240