| // RUN: %clang_cc1 -triple nvptx-unknown-unknown -S -o - %s -emit-llvm | FileCheck %s |
| // RUN: %clang_cc1 -triple nvptx64-unknown-unknown -S -o - %s -emit-llvm | FileCheck %s |
| typedef struct float4_s { |
| float4_t my_function(void) { |
| // CHECK-LABEL: define{{.*}} %struct.float4_s @my_function |
| // CHECK: call %struct.float4_s @my_function |
| // CHECK: ptr noundef byval(%struct.float4_s) align 4 %x |
| void fooN(float4_t x, float4_t y, float4_t z) { |
| // CHECK: ptr noundef byval(%struct.float4_s) align 4 %x |
| // CHECK: ptr noundef byval(%struct.float4_s) align 4 %y |
| // CHECK: ptr noundef byval(%struct.float4_s) align 4 %z |
| typedef struct nested_s { |
| // CHECK: ptr noundef byval(%struct.nested_s) align 8 %x) |