brintos

brintos / llvm-project-archived public Read only

0
0
Text · 540 B · 3dbe6f5 Raw
18 lines · plain
1// RUN: %clang_cc1 -emit-llvm -o - -triple i686-pc-darwin %s | FileCheck -check-prefix=X86 %s2// RUN: %clang_cc1 -emit-llvm -o - -triple amdgcn %s | FileCheck -check-prefix=AMDGCN %s3struct A {4  int x[100];5};6 7int f(struct A a);8 9int g() {10  struct A a;11  // X86:    call i32 @f(ptr noundef nonnull byval(%struct.A) align 4 %a)12  // AMDGCN: call i32 @f(ptr addrspace(5) noundef byref{{.*}}%a)13  return f(a);14}15 16// X86:   declare i32 @f(ptr noundef byval(%struct.A) align 4)17// AMDGCN: declare i32 @f(ptr addrspace(5) noundef byref{{.*}})18