1 ; RUN: llc --mtriple=xtensa < %s | FileCheck %s
3 @addr = global ptr null
5 define void @test_blockaddress() {
7 store volatile ptr blockaddress(@test_blockaddress, %block), ptr @addr
8 ; CHECK: .literal_position
9 ; CHECK-NEXT: .literal .LCPI0_0, addr
10 ; CHECK-NEXT: .literal .LCPI0_1, .Ltmp0
11 ; CHECK-LABEL: test_blockaddress:
13 ; CHECK-NEXT: l32r a8, .LCPI0_0
14 ; CHECK-NEXT: l32r a9, .LCPI0_1
15 ; CHECK-NEXT: s32i a9, a8, 0
16 ; CHECK-NEXT: l32i a8, a8, 0
19 ; CHECK-NEXT: .LBB0_1:
21 %val = load volatile ptr, ptr @addr
22 indirectbr ptr %val, [label %block]