blob: 9481f32e17f1a95edf75b9e61c605232b21e5ab0 [file] [log] [blame]
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
; RUN: llc -mtriple=mipsel-unknown-linux-gnu -mattr=+micromips -mcpu=mips32r2 \
; RUN: -verify-machineinstrs < %s | FileCheck %s
; Function Attrs: nounwind
define i32 @fun(i32* %adr, i32 %val) {
; CHECK-LABEL: fun:
; CHECK: # %bb.0: # %entry
; CHECK-NEXT: addiusp -32
; CHECK-NEXT: .cfi_def_cfa_offset 32
; CHECK-NEXT: sw $ra, 28($sp) # 4-byte Folded Spill
; CHECK-NEXT: swp $16, 20($sp)
; CHECK-NEXT: .cfi_offset 31, -4
; CHECK-NEXT: .cfi_offset 17, -8
; CHECK-NEXT: .cfi_offset 16, -12
; CHECK-NEXT: move $17, $5
; CHECK-NEXT: move $16, $4
; CHECK-NEXT: jal fun1
; CHECK-NEXT: nop
; CHECK-NEXT: sw16 $17, 0($16)
; CHECK-NEXT: li16 $2, 0
; CHECK-NEXT: lwp $16, 20($sp)
; CHECK-NEXT: lw $ra, 28($sp) # 4-byte Folded Reload
; CHECK-NEXT: addiusp 32
; CHECK-NEXT: jrc $ra
entry:
%call1 = call i32* @fun1()
store i32 %val, i32* %adr, align 4
ret i32 0
}
declare i32* @fun1()