
This adds -no-opaque-pointers to clang tests whose output will change when opaque pointers are enabled by default. This is intended to be part of the migration approach described in https://discourse.llvm.org/t/enabling-opaque-pointers-by-default/61322/9. The patch has been produced by replacing %clang_cc1 with %clang_cc1 -no-opaque-pointers for tests that fail with opaque pointers enabled. Worth noting that this doesn't cover all tests, there's a remaining ~40 tests not using %clang_cc1 that will need a followup change. Differential Revision: https://reviews.llvm.org/D123115
34 lines
1.6 KiB
C
34 lines
1.6 KiB
C
// RUN: %clang_cc1 -no-opaque-pointers -triple armv7a--none-eabi -target-abi aapcs -mfloat-abi soft -fallow-half-arguments-and-returns -emit-llvm -o - -O2 %s | FileCheck %s --check-prefix=CHECK --check-prefix=SOFT
|
|
// RUN: %clang_cc1 -no-opaque-pointers -triple armv7a--none-eabi -target-abi aapcs -mfloat-abi hard -fallow-half-arguments-and-returns -emit-llvm -o - -O2 %s | FileCheck %s --check-prefix=CHECK --check-prefix=HARD
|
|
// RUN: %clang_cc1 -no-opaque-pointers -triple armv7a--none-eabi -target-abi aapcs -mfloat-abi soft -fnative-half-arguments-and-returns -emit-llvm -o - -O2 %s | FileCheck %s --check-prefix=CHECK --check-prefix=NATIVE
|
|
|
|
__fp16 g;
|
|
|
|
void t1(__fp16 a) { g = a; }
|
|
// SOFT: define{{.*}} void @t1(half noundef [[PARAM:%.*]])
|
|
// HARD: define{{.*}} arm_aapcs_vfpcc void @t1(half noundef [[PARAM:%.*]])
|
|
// NATIVE: define{{.*}} void @t1(half noundef [[PARAM:%.*]])
|
|
// CHECK: store half [[PARAM]], half* @g
|
|
|
|
__fp16 t2(void) { return g; }
|
|
// SOFT: define{{.*}} half @t2()
|
|
// HARD: define{{.*}} arm_aapcs_vfpcc half @t2()
|
|
// NATIVE: define{{.*}} half @t2()
|
|
// CHECK: [[LOAD:%.*]] = load half, half* @g
|
|
// CHECK: ret half [[LOAD]]
|
|
|
|
_Float16 h;
|
|
|
|
void t3(_Float16 a) { h = a; }
|
|
// SOFT: define{{.*}} void @t3(half noundef [[PARAM:%.*]])
|
|
// HARD: define{{.*}} arm_aapcs_vfpcc void @t3(half noundef [[PARAM:%.*]])
|
|
// NATIVE: define{{.*}} void @t3(half noundef [[PARAM:%.*]])
|
|
// CHECK: store half [[PARAM]], half* @h
|
|
|
|
_Float16 t4(void) { return h; }
|
|
// SOFT: define{{.*}} half @t4()
|
|
// HARD: define{{.*}} arm_aapcs_vfpcc half @t4()
|
|
// NATIVE: define{{.*}} half @t4()
|
|
// CHECK: [[LOAD:%.*]] = load half, half* @h
|
|
// CHECK: ret half [[LOAD]]
|