26 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py2; RUN: llc --mtriple=loongarch32 -mattr=+d < %s | FileCheck %s3; RUN: llc --mtriple=loongarch64 -mattr=+d < %s | FileCheck %s4; RUN: llc --mtriple=loongarch32 -mattr=+d --no-integrated-as < %s | FileCheck %s5; RUN: llc --mtriple=loongarch64 -mattr=+d --no-integrated-as < %s | FileCheck %s6 7;; This regression test is for ensuring the AsmParser does not use the8;; getOrCreateSymbol interface to create blockaddress symbols.9;; Otherwise incorrect symbols will be created:10;; `.Ltmp0` -> `.Ltmp00`.11 12define void @operand_block_address() nounwind {13; CHECK-LABEL: operand_block_address:14; CHECK: # %bb.0:15; CHECK-NEXT: #APP16; CHECK-NEXT: b .Ltmp017; CHECK-NEXT: #NO_APP18; CHECK-NEXT: .Ltmp0: # Block address taken19; CHECK-NEXT: # %bb.1: # %bb20; CHECK-NEXT: ret21 call void asm sideeffect "b $0", "i"(ptr blockaddress(@operand_block_address, %bb))22 br label %bb23bb:24 ret void25}26