1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2; RUN: llc  -O0 -mtriple=mipsel-linux-gnu -global-isel  -verify-machineinstrs %s -o -| FileCheck %s -check-prefixes=MIPS32
3
4@.str = private unnamed_addr constant [11 x i8] c"hello %d \0A\00"
5
6define i32 @main() {
7; MIPS32-LABEL: main:
8; MIPS32:       # %bb.0: # %entry
9; MIPS32-NEXT:    addiu $sp, $sp, -24
10; MIPS32-NEXT:    .cfi_def_cfa_offset 24
11; MIPS32-NEXT:    sw $ra, 20($sp) # 4-byte Folded Spill
12; MIPS32-NEXT:    .cfi_offset 31, -4
13; MIPS32-NEXT:    lui $1, %hi($.str)
14; MIPS32-NEXT:    addiu $4, $1, %lo($.str)
15; MIPS32-NEXT:    lui $1, 18838
16; MIPS32-NEXT:    ori $5, $1, 722
17; MIPS32-NEXT:    ori $1, $zero, 0
18; MIPS32-NEXT:    sw $1, 16($sp) # 4-byte Folded Spill
19; MIPS32-NEXT:    jal printf
20; MIPS32-NEXT:    nop
21; MIPS32-NEXT:    lw $2, 16($sp) # 4-byte Folded Reload
22; MIPS32-NEXT:    lw $ra, 20($sp) # 4-byte Folded Reload
23; MIPS32-NEXT:    addiu $sp, $sp, 24
24; MIPS32-NEXT:    jr $ra
25; MIPS32-NEXT:    nop
26entry:
27  %call = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i32 0, i32 0), i32 signext 1234567890)
28  ret i32 0
29}
30
31declare i32 @printf(i8*, ...)
32
33