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 define i32 @indirectbr(ptr %addr) {
5 ; MIPS32-LABEL: indirectbr:
6 ; MIPS32: # %bb.0: # %entry
7 ; MIPS32-NEXT: addiu $sp, $sp, -8
8 ; MIPS32-NEXT: .cfi_def_cfa_offset 8
9 ; MIPS32-NEXT: ori $1, $zero, 1
10 ; MIPS32-NEXT: sw $1, 0($sp) # 4-byte Folded Spill
11 ; MIPS32-NEXT: ori $1, $zero, 0
12 ; MIPS32-NEXT: sw $1, 4($sp) # 4-byte Folded Spill
15 ; MIPS32-NEXT: $BB0_1: # %L1
16 ; MIPS32-NEXT: lw $2, 4($sp) # 4-byte Folded Reload
17 ; MIPS32-NEXT: addiu $sp, $sp, 8
20 ; MIPS32-NEXT: $BB0_2: # %L2
21 ; MIPS32-NEXT: lw $2, 0($sp) # 4-byte Folded Reload
22 ; MIPS32-NEXT: addiu $sp, $sp, 8
26 indirectbr ptr %addr, [label %L1, label %L2]