1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc -mtriple=riscv32 -verify-machineinstrs < %s \
3 ; RUN: | FileCheck %s -check-prefix=RV32I
5 define i32 @indirectbr(i8* %target) nounwind {
6 ; RV32I-LABEL: indirectbr:
9 ; RV32I-NEXT: .LBB0_1: # %test_label
10 ; RV32I-NEXT: li a0, 0
12 indirectbr i8* %target, [label %test_label]
19 define i32 @indirectbr_with_offset(i8* %a) nounwind {
20 ; RV32I-LABEL: indirectbr_with_offset:
22 ; RV32I-NEXT: jr 1380(a0)
23 ; RV32I-NEXT: .LBB1_1: # %test_label
24 ; RV32I-NEXT: li a0, 0
26 %target = getelementptr inbounds i8, i8* %a, i32 1380
27 indirectbr i8* %target, [label %test_label]