brintos

brintos / llvm-project-archived public Read only

0
0
Text · 661 B · d07d222 Raw
18 lines · plain
1; RUN: llc < %s -mtriple=nvptx -mcpu=sm_20 | FileCheck %s2; RUN: llc < %s -mtriple=nvptx64 -mcpu=sm_20 | FileCheck %s3; RUN: %if ptxas-ptr32 %{ llc < %s -mtriple=nvptx -mcpu=sm_20 | %ptxas-verify %}4; RUN: %if ptxas %{ llc < %s -mtriple=nvptx64 -mcpu=sm_20 | %ptxas-verify %}5 6; Test that we don't crash if we're compiling a module with function references,7; but without any functions in it.8 9target datalayout = "e-i64:64-i128:128-v16:16-v32:32-n16:32:64"10target triple = "nvptx64-nvidia-cuda"11 12@Funcs = local_unnamed_addr addrspace(1) externally_initialized13         global [1 x ptr] [ptr @func], align 814 15declare void @func(ptr)16 17; CHECK: Funcs[1] = {func}18