1 ; RUN: llc < %s -march=nvptx -mcpu=sm_20 | FileCheck %s
2 ; RUN: llc < %s -march=nvptx64 -mcpu=sm_20 | FileCheck %s
3 ; RUN: %if ptxas && !ptxas-12.0 %{ llc < %s -march=nvptx -mcpu=sm_20 | %ptxas-verify %}
4 ; RUN: %if ptxas %{ llc < %s -march=nvptx64 -mcpu=sm_20 | %ptxas-verify %}
6 ; Test that we don't crash if we're compiling a module with function references,
7 ; but without any functions in it.
9 target datalayout = "e-i64:64-i128:128-v16:16-v32:32-n16:32:64"
10 target triple = "nvptx64-nvidia-cuda"
12 @Funcs = local_unnamed_addr addrspace(1) externally_initialized
13 global [1 x ptr] [ptr @func], align 8
15 declare void @func(ptr)
17 ; CHECK: Funcs[1] = {func}