This reverts the following commits: 37ca7a795b277c20c02a218bf44052278c03344b 9aa6c72b92b6c89cc6d23b693257df9af7de2d15 705387c5074bcca36d626882462ebbc2bcc3bed4 8ca4b3ef19fe82d7ad6a6e1515317dcc01b41515 80dba72a669b5416e97a42fd2c2a7bc5a6d3f44a
17 lines
774 B
C++
17 lines
774 B
C++
// RUN: %clang_cc1 -emit-llvm -o - -triple arm-arm-none-eabi -fallow-half-arguments-and-returns %s | FileCheck %s
|
|
// RUN: %clang_cc1 -emit-llvm -o - -triple aarch64-arm-none-eabi -fallow-half-arguments-and-returns %s | FileCheck %s
|
|
|
|
// Test name-mangling of __fp16 passed directly as a function argument
|
|
// (when that is permitted).
|
|
|
|
// CHECK: define {{.*}}void @_Z13fp16_argumentDh(half %{{.*}})
|
|
void fp16_argument(__fp16 arg) {}
|
|
|
|
// Test name-mangling of __fp16 as a return type. The return type of
|
|
// fp16_return itself isn't mentioned in the mangled name, so to test
|
|
// this, we have to pass it a function pointer and make __fp16 the
|
|
// return type of that.
|
|
|
|
// CHECK: define {{.*}}void @_Z11fp16_returnPFDhvE(half ()* %{{.*}})
|
|
void fp16_return(__fp16 (*func)(void)) {}
|