1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc -mtriple=mipsel-unknown-linux-gnu -mattr=+micromips -mcpu=mips32r2 \
3 ; RUN: -verify-machineinstrs < %s | FileCheck %s
5 ; Function Attrs: nounwind
6 define i32 @fun(i32* %adr, i32 %val) {
8 ; CHECK: # %bb.0: # %entry
9 ; CHECK-NEXT: addiusp -32
10 ; CHECK-NEXT: .cfi_def_cfa_offset 32
11 ; CHECK-NEXT: sw $ra, 28($sp) # 4-byte Folded Spill
12 ; CHECK-NEXT: swp $16, 20($sp)
13 ; CHECK-NEXT: .cfi_offset 31, -4
14 ; CHECK-NEXT: .cfi_offset 17, -8
15 ; CHECK-NEXT: .cfi_offset 16, -12
16 ; CHECK-NEXT: move $17, $5
17 ; CHECK-NEXT: move $16, $4
18 ; CHECK-NEXT: jal fun1
20 ; CHECK-NEXT: sw16 $17, 0($16)
21 ; CHECK-NEXT: li16 $2, 0
22 ; CHECK-NEXT: lwp $16, 20($sp)
23 ; CHECK-NEXT: lw $ra, 28($sp) # 4-byte Folded Reload
24 ; CHECK-NEXT: addiusp 32
27 %call1 = call i32* @fun1()
28 store i32 %val, i32* %adr, align 4