Revert " [LoongArch][ISel] Check the number of sign bits in `PatGprGpr_32` (#107432)"
[llvm-project.git] / llvm / test / CodeGen / PowerPC / pcrel-block-address.ll
blobbf27562fabc9c489e9acf8e1c2c2b823ddc0141f
1 ; RUN: llc -verify-machineinstrs -mtriple=powerpc64le-unknown-linux-gnu \
2 ; RUN:   -mcpu=pwr10 -ppc-asm-full-reg-names < %s | FileCheck %s
3 ; RUN: llc -verify-machineinstrs -target-abi=elfv2 -mtriple=powerpc64-- \
4 ; RUN:   -mcpu=pwr10 -ppc-asm-full-reg-names < %s | FileCheck %s
5 define dso_local void @blockaddress() {
6 ; CHECK-LABEL: blockaddress:
7 ; CHECK:       # %bb.0: # %entry
8 ; CHECK:       paddi r3, 0, .Ltmp0@PCREL, 1
9 ; CHECK:       bl helper@notoc
10 entry:
11   tail call void @helper(ptr blockaddress(@blockaddress, %label))
12   br label %label
14 label:                                            ; preds = %entry
15   ret void
18 declare void @helper(ptr)