Skip to content

Commit 77f3afa

Browse files
constant pointers not supported in Separate compilation
1 parent 2ef9296 commit 77f3afa

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

llvm/test/CodeGen/NVPTX/kernel-param-align.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
; RUN: llc < %s -mtriple=nvptx64 -mcpu=sm_60 | FileCheck %s
2-
; RUN: %if ptxas %{ llc < %s -mtriple=nvptx64 -mcpu=sm_60 | %ptxas -o %t %}
2+
; RUN: %if ptxas %{ llc < %s -mtriple=nvptx64 -mcpu=sm_60 | %ptxas -arch=sm_60 - %}
33

44
%struct.Large = type { [16 x double] }
55

llvm/test/CodeGen/NVPTX/lower-args.ll

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
; RUN: opt < %s -S -nvptx-lower-args --mtriple nvptx64-nvidia-cuda | FileCheck %s --check-prefixes COMMON,IR,IRC
22
; RUN: opt < %s -S -nvptx-lower-args --mtriple nvptx64-nvidia-nvcl | FileCheck %s --check-prefixes COMMON,IR,IRO
3-
; RUN: llc < %s -mcpu=sm_20 --mtriple nvptx64-nvidia-cuda | FileCheck %s --check-prefixes COMMON,PTX,PTXC
4-
; RUN: llc < %s -mcpu=sm_20 --mtriple nvptx64-nvidia-nvcl| FileCheck %s --check-prefixes COMMON,PTX,PTXO
5-
; RUN: %if ptxas %{ llc < %s -mcpu=sm_20 | %ptxas -o %t %}
3+
; RUN: llc < %s -mcpu=sm_52 --mtriple nvptx64-nvidia-cuda | FileCheck %s --check-prefixes COMMON,PTX,PTXC
4+
; RUN: llc < %s -mcpu=sm_52 --mtriple nvptx64-nvidia-nvcl| FileCheck %s --check-prefixes COMMON,PTX,PTXO
5+
; RUN: %if ptxas %{ llc < %s -mcpu=sm_52 | %ptxas -arch=sm_52 - %}
66

77
target datalayout = "e-i64:64-i128:128-v16:16-v32:32-n16:32:64"
88
target triple = "nvptx64-nvidia-cuda"
@@ -145,4 +145,6 @@ define ptx_kernel void @ptr_as_int_aggr(ptr nocapture noundef readonly byval(%st
145145

146146

147147
; Function Attrs: convergent nounwind
148-
declare dso_local ptr @escape(ptr) local_unnamed_addr
148+
define dso_local ptr @escape(ptr) local_unnamed_addr {
149+
ret ptr %0
150+
}

0 commit comments

Comments
 (0)