16 lines · plain
1; RUN: llc < %s -mtriple=nvptx64 -mcpu=sm_20 | FileCheck %s2; RUN: %if ptxas %{ llc < %s -mtriple=nvptx64 -mcpu=sm_20 | %ptxas-verify %}3 4; ptxas has no special meaning for '$' character, so it should be used5; without parens.6 7@"$str" = private addrspace(1) constant [4 x i8] c"str\00"8 9declare void @str2(ptr %str)10define void @str1() {11entry:12;; CHECK: mov.b64 %rd{{[0-9]+}}, $str;13 tail call void @str2(ptr addrspacecast (ptr addrspace(1) @"$str" to ptr))14 ret void15}16