1 ; RUN: llc -march=mips64el -mcpu=mips4 < %s | FileCheck %s 2 ; RUN: llc -march=mips64el -mcpu=mips64 < %s | FileCheck %s 3 4 define i32 @foo1() nounwind readnone { 5 entry: 6 ; CHECK: foo1 7 ; CHECK: lui ${{[0-9]+}}, 4660 8 ; CHECK-NOT: ori 9 ret i32 305397760 10 } 11 12 define i64 @foo3() nounwind readnone { 13 entry: 14 ; CHECK: foo3 15 ; CHECK: lui $[[R0:[0-9]+]], 4660 16 ; CHECK: daddiu ${{[0-9]+}}, $[[R0]], 22136 17 ret i64 305419896 18 } 19 20 define i64 @foo6() nounwind readnone { 21 entry: 22 ; CHECK: foo6 23 ; CHECK: ori ${{[0-9]+}}, $zero, 33332 24 ret i64 33332 25 } 26 27 define i64 @foo7() nounwind readnone { 28 entry: 29 ; CHECK: foo7 30 ; CHECK: daddiu ${{[0-9]+}}, $zero, -32204 31 ret i64 -32204 32 } 33 34 define i64 @foo9() nounwind readnone { 35 entry: 36 ; CHECK: foo9 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 44 } 45 46 define i64 @foo10() nounwind readnone { 47 entry: 48 ; CHECK: foo10 49 ; CHECK: lui $[[R0:[0-9]+]], 34661 50 ; CHECK: daddiu ${{[0-9]+}}, $[[R0]], 17185 51 ret i64 -8690466096928522240 52 } 53 54