brintos

brintos / llvm-project-archived public Read only

0
0
Text · 701 B · 1ac3c24 Raw
17 lines · cpp
1// RUN: %clang_cc1 -emit-llvm -o - -triple arm-arm-none-eabi %s | FileCheck %s2// RUN: %clang_cc1 -emit-llvm -o - -triple aarch64 %s | FileCheck %s3 4// Test name-mangling of __fp16 passed directly as a function argument5// (when that is permitted).6 7// CHECK: define {{.*}}void @_Z13fp16_argumentDh(half noundef %{{.*}})8void fp16_argument(__fp16 arg) {}9 10// Test name-mangling of __fp16 as a return type. The return type of11// fp16_return itself isn't mentioned in the mangled name, so to test12// this, we have to pass it a function pointer and make __fp16 the13// return type of that.14 15// CHECK: define {{.*}}void @_Z11fp16_returnPFDhvE(ptr noundef %{{.*}})16void fp16_return(__fp16 (*func)(void)) {}17