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
4 @.str = private unnamed_addr constant [11 x i8] c"hello %d \0A\00"
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 $2, $zero, 0
18 ; MIPS32-NEXT: sw $2, 16($sp) # 4-byte Folded Spill
19 ; MIPS32-NEXT: jal printf
21 ; MIPS32-NEXT: lw $1, 16($sp) # 4-byte Folded Reload
22 ; MIPS32-NEXT: move $2, $1
23 ; MIPS32-NEXT: lw $ra, 20($sp) # 4-byte Folded Reload
24 ; MIPS32-NEXT: addiu $sp, $sp, 24
28 %call = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i32 0, i32 0), i32 signext 1234567890)
32 declare i32 @printf(i8*, ...)