llvm-project/llvm/test/CodeGen/PowerPC/pcrel-block-address.ll
Kai Nacke 5403c59c60 [PPC] Opaque pointer migration, part 2.
The LIT test cases were migrated with the script provided by
Nikita Popov. Due to the size of the change it is split into
several parts.

Reviewed By: nemanja, nikic

Differential Revision: https://reviews.llvm.org/D135474
2022-10-11 17:24:06 +00:00

19 lines
654 B
LLVM

; RUN: llc -verify-machineinstrs -mtriple=powerpc64le-unknown-linux-gnu \
; RUN: -mcpu=pwr10 -ppc-asm-full-reg-names < %s | FileCheck %s
; RUN: llc -verify-machineinstrs -target-abi=elfv2 -mtriple=powerpc64-- \
; RUN: -mcpu=pwr10 -ppc-asm-full-reg-names < %s | FileCheck %s
define dso_local void @blockaddress() {
; CHECK-LABEL: blockaddress:
; CHECK: # %bb.0: # %entry
; CHECK: paddi r3, 0, .Ltmp0@PCREL, 1
; CHECK: bl helper@notoc
entry:
tail call void @helper(ptr blockaddress(@blockaddress, %label))
br label %label
label: ; preds = %entry
ret void
}
declare void @helper(ptr)