33 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 22; RUN: llc -mtriple=xtensa -verify-machineinstrs < %s \3; RUN: | FileCheck -check-prefix=XTENSA %s4 5define i32 @indirectbr(i8* %target) nounwind {6; XTENSA-LABEL: indirectbr:7; XTENSA: jx a28; XTENSA-NEXT: .LBB0_1: # %test_label9; XTENSA-NEXT: movi a2, 010; XTENSA-NEXT: ret11 indirectbr i8* %target, [label %test_label]12test_label:13 br label %ret14ret:15 ret i32 016}17 18define i32 @indirectbr_with_offset(i8* %a) nounwind {19; XTENSA-LABEL: indirectbr_with_offset:20; XTENSA: movi a8, 138021; XTENSA-NEXT: add a8, a2, a822; XTENSA-NEXT: jx a823; XTENSA-NEXT: .LBB1_1: # %test_label24; XTENSA-NEXT: movi a2, 025; XTENSA-NEXT: ret26 %target = getelementptr inbounds i8, i8* %a, i32 138027 indirectbr i8* %target, [label %test_label]28test_label:29 br label %ret30ret:31 ret i32 032}33