Files
clang-p2996/llvm/test/CodeGen/AMDGPU/lower-ctor-dtor-declaration.ll
Ruiling Song 49b8ca3f7c AMDGPU: Don't crash on global_ctor/dtor declaration
Reviewed By: arsenm

Differential Revision: https://reviews.llvm.org/D128320
2022-06-23 21:04:54 +08:00

9 lines
326 B
LLVM

; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx700 < %s | FileCheck %s
@llvm.global_ctors = external global [2 x { i32, void ()*, i8* }]
@llvm.global_dtors = external global [2 x { i32, void ()*, i8* }]
; No amdgpu_kernels emitted for global_ctors declaration
; CHECK-NOT: amdgcn.device.init
; CHECK-NOT: amdgcn.device.fini