brintos

brintos / llvm-project-archived public Read only

0
0
Text · 617 B · 936e920 Raw
12 lines · plain
1// RUN: %clang_cc1 -fcuda-is-device -triple spirv32 -o - -emit-llvm -x cuda %s  | FileCheck --check-prefix=CHECK-SPIRV32 %s2// RUN: %clang_cc1 -fcuda-is-device -triple spirv64 -o - -emit-llvm -x cuda %s  | FileCheck --check-prefix=CHECK-SPIRV64 %s3 4// CHECK-SPIRV32: @.str = private unnamed_addr addrspace(4) constant [13 x i8] c"Hello World\0A\00", align 15// CHECK-SPIRV64: @.str = private unnamed_addr addrspace(1) constant [13 x i8] c"Hello World\0A\00", align 16 7extern "C" __attribute__((device)) int printf(const char* format, ...);8 9__attribute__((global)) void printf_kernel() {10  printf("Hello World\n");11}12