[AMDGPU] New gfx940 mfma instructions
[llvm-project.git] / clang / test / CodeGenCUDA / device-init-fun.cu
blob4f3119a2269c6195f1cf35fb801e960f64fee730
1 // REQUIRES: amdgpu-registered-target
3 // RUN: %clang_cc1 -triple amdgcn -fcuda-is-device -std=c++11 \
4 // RUN:     -fgpu-allow-device-init -x hip \
5 // RUN:     -fno-threadsafe-statics -emit-llvm -o - %s \
6 // RUN:     | FileCheck %s
8 #include "Inputs/cuda.h"
10 // CHECK: define internal amdgpu_kernel void @_GLOBAL__sub_I_device_init_fun.cu() #[[ATTR:[0-9]*]]
11 // CHECK: attributes #[[ATTR]] = {{.*}}"device-init"
13 __device__ void f();
15 struct A {
16   __device__ A() { f(); }
19 __device__ A a;