annotate clang/test/CodeGen/ppc64-elf-abi.c @ 207:2e18cbf3894f

LLVM12
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Tue, 08 Jun 2021 06:07:14 +0900
parents 0572611fdcc8
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 // REQUIRES: powerpc-registered-target
anatofuz
parents:
diff changeset
2
anatofuz
parents:
diff changeset
3 // Verify ABI selection by the front end
anatofuz
parents:
diff changeset
4
anatofuz
parents:
diff changeset
5 // RUN: %clang_cc1 -triple powerpc64-unknown-linux-gnu -emit-llvm -o - %s \
anatofuz
parents:
diff changeset
6 // RUN: | FileCheck %s --check-prefix=CHECK-ELFv1
anatofuz
parents:
diff changeset
7 // RUN: %clang_cc1 -triple powerpc64-unknown-linux-gnu -emit-llvm -o - %s \
anatofuz
parents:
diff changeset
8 // RUN: -target-abi elfv1 | FileCheck %s --check-prefix=CHECK-ELFv1
anatofuz
parents:
diff changeset
9 // RUN: %clang_cc1 -triple powerpc64-unknown-linux-gnu -emit-llvm -o - %s \
anatofuz
parents:
diff changeset
10 // RUN: -target-abi elfv2 | FileCheck %s --check-prefix=CHECK-ELFv2
anatofuz
parents:
diff changeset
11 // RUN: %clang_cc1 -triple powerpc64le-unknown-linux-gnu -emit-llvm -o - %s \
anatofuz
parents:
diff changeset
12 // RUN: | FileCheck %s --check-prefix=CHECK-ELFv2
anatofuz
parents:
diff changeset
13 // RUN: %clang_cc1 -triple powerpc64le-unknown-linux-gnu -emit-llvm -o - %s \
anatofuz
parents:
diff changeset
14 // RUN: -target-abi elfv1 | FileCheck %s --check-prefix=CHECK-ELFv1
anatofuz
parents:
diff changeset
15 // RUN: %clang_cc1 -triple powerpc64le-unknown-linux-gnu -emit-llvm -o - %s \
anatofuz
parents:
diff changeset
16 // RUN: -target-abi elfv2 | FileCheck %s --check-prefix=CHECK-ELFv2
anatofuz
parents:
diff changeset
17
207
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
18 // CHECK-ELFv1: define{{.*}} void @func_fab(%struct.fab* noalias sret(%struct.fab) align 4 %agg.result, i64 %x.coerce)
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
19 // CHECK-ELFv2: define{{.*}} [2 x float] @func_fab([2 x float] %x.coerce)
150
anatofuz
parents:
diff changeset
20 struct fab { float a; float b; };
anatofuz
parents:
diff changeset
21 struct fab func_fab(struct fab x) { return x; }