1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc --mtriple=loongarch32 < %s | FileCheck %s
3 ; RUN: llc --mtriple=loongarch64 < %s | FileCheck %s
4 ; RUN: llc --mtriple=loongarch32 --no-integrated-as < %s | FileCheck %s
5 ; RUN: llc --mtriple=loongarch64 --no-integrated-as < %s | FileCheck %s
7 ;; This regression test is for ensuring the AsmParser does not use the
8 ;; getOrCreateSymbol interface to create blockaddress symbols.
9 ;; Otherwise incorrect symbols will be created:
10 ;; `.Ltmp0` -> `.Ltmp00`.
12 define void @operand_block_address() nounwind {
13 ; CHECK-LABEL: operand_block_address:
16 ; CHECK-NEXT: b .Ltmp0
18 ; CHECK-NEXT: .Ltmp0: # Block address taken
19 ; CHECK-NEXT: # %bb.1: # %bb
21 call void asm sideeffect "b $0", "i"(ptr blockaddress(@operand_block_address, %bb))