1 // RUN: %clang_cc1 -triple nvptx-unknown-unknown -o - %s -emit-llvm | FileCheck %s
2 // RUN: %clang_cc1 -triple nvptx64-unknown-unknown -o - %s -emit-llvm | FileCheck %s
4 typedef struct float4_s
{
8 float4_t
my_function(void) {
9 // CHECK-LABEL: define{{.*}} %struct.float4_s @my_function
17 // CHECK: call %struct.float4_s @my_function
22 void foo(float4_t x
) {
24 // CHECK: ptr noundef byval(%struct.float4_s) align 4 %x
27 void fooN(float4_t x
, float4_t y
, float4_t z
) {
29 // CHECK: ptr noundef byval(%struct.float4_s) align 4 %x
30 // CHECK: ptr noundef byval(%struct.float4_s) align 4 %y
31 // CHECK: ptr noundef byval(%struct.float4_s) align 4 %z
34 typedef struct nested_s
{
40 void baz(nested_t x
) {
42 // CHECK: ptr noundef byval(%struct.nested_s) align 8 %x)