Mercurial > hg > CbC > CbC_llvm
comparison clang/test/CodeGenHIP/printf.cpp @ 236:c4bab56944e8 llvm-original
LLVM 16
author | kono |
---|---|
date | Wed, 09 Nov 2022 17:45:10 +0900 |
parents | 1d019706d866 |
children | 1f2b6ac9f198 |
comparison
equal
deleted
inserted
replaced
232:70dce7da266c | 236:c4bab56944e8 |
---|---|
1 // REQUIRES: amdgpu-registered-target | 1 // REQUIRES: amdgpu-registered-target |
2 // RUN: %clang_cc1 -triple amdgcn-amd-amdhsa -x hip -emit-llvm -fcuda-is-device \ | 2 // RUN: %clang_cc1 -no-opaque-pointers -triple amdgcn-amd-amdhsa -x hip -emit-llvm -fcuda-is-device \ |
3 // RUN: -o - %s | FileCheck --enable-var-scope %s | 3 // RUN: -o - %s | FileCheck --enable-var-scope %s |
4 | 4 |
5 #define __device__ __attribute__((device)) | 5 #define __device__ __attribute__((device)) |
6 | 6 |
7 extern "C" __device__ int printf(const char *format, ...); | 7 extern "C" __device__ int printf(const char *format, ...); |