xref: /aosp_15_r20/external/clang/test/CodeGen/nvptx-cc.c (revision 67e74705e28f6214e480b399dd47ea732279e315)
1*67e74705SXin Li // RUN: %clang_cc1 -triple nvptx-unknown-unknown -O3 -S -o %t %s -emit-llvm
2*67e74705SXin Li // RUN: %clang_cc1 -triple nvptx64-unknown-unknown -O3 -S -o %t %s -emit-llvm
3*67e74705SXin Li 
4*67e74705SXin Li // Just make sure Clang uses the proper calling convention for the NVPTX back-end.
5*67e74705SXin Li // If something is wrong, the back-end will fail.
foo(float * a,float * b)6*67e74705SXin Li void foo(float* a,
7*67e74705SXin Li          float* b) {
8*67e74705SXin Li   a[0] = b[0];
9*67e74705SXin Li }
10