22 lines · c
1// REQUIRES: powerpc-registered-target2 3// Verify ABI selection by the front end4 5// RUN: %clang_cc1 -triple powerpc64-unknown-linux-gnu -emit-llvm -o - %s \6// RUN: | FileCheck %s --check-prefix=CHECK-ELFv17// RUN: %clang_cc1 -triple powerpc64-unknown-linux-gnu -emit-llvm -o - %s \8// RUN: -target-abi elfv1 | FileCheck %s --check-prefix=CHECK-ELFv19// RUN: %clang_cc1 -triple powerpc64-unknown-linux-gnu -emit-llvm -o - %s \10// RUN: -target-abi elfv2 | FileCheck %s --check-prefix=CHECK-ELFv211// RUN: %clang_cc1 -triple powerpc64le-unknown-linux-gnu -emit-llvm -o - %s \12// RUN: | FileCheck %s --check-prefix=CHECK-ELFv213// RUN: %clang_cc1 -triple powerpc64le-unknown-linux-gnu -emit-llvm -o - %s \14// RUN: -target-abi elfv1 | FileCheck %s --check-prefix=CHECK-ELFv115// RUN: %clang_cc1 -triple powerpc64le-unknown-linux-gnu -emit-llvm -o - %s \16// RUN: -target-abi elfv2 | FileCheck %s --check-prefix=CHECK-ELFv217 18// CHECK-ELFv1: define{{.*}} void @func_fab(ptr dead_on_unwind noalias writable sret(%struct.fab) align 4 %agg.result, i64 %x.coerce)19// CHECK-ELFv2: define{{.*}} [2 x float] @func_fab([2 x float] %x.coerce)20struct fab { float a; float b; };21struct fab func_fab(struct fab x) { return x; }22