1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 5
2 ; RUN: llc --mtriple=xtensa < %s | FileCheck %s
4 @addr = global ptr null
6 define void @test_blockaddress() {
7 ; CHECK-LABEL: test_blockaddress:
8 ; CHECK: l32r a8, .LCPI0_0
9 ; CHECK-NEXT: l32r a9, .LCPI0_1
11 ; CHECK-NEXT: s32i a9, a8, 0
13 ; CHECK-NEXT: l32i a8, a8, 0
15 ; CHECK-NEXT: .Ltmp0: # Block address taken
16 ; CHECK-NEXT: .LBB0_1: # %block
18 store volatile ptr blockaddress(@test_blockaddress, %block), ptr @addr
20 %val = load volatile ptr, ptr @addr
21 indirectbr ptr %val, [label %block]