diff options
author | Anton Korobeynikov <asl@math.spbu.ru> | 2011-10-14 23:32:50 +0000 |
---|---|---|
committer | Anton Korobeynikov <asl@math.spbu.ru> | 2011-10-14 23:32:50 +0000 |
commit | 8eb5b29ec11f5f6922132a68f8e88a9b0f69a489 (patch) | |
tree | 6cb00c057d233529ad7faec8af7747bcb5001c6f /test/CodeGenCXX/fp16-overload.cpp | |
parent | aa4a99b4a62615db243f7a5c433169f2fc704420 (diff) |
Missed tests for half FP support
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@142017 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/fp16-overload.cpp')
-rw-r--r-- | test/CodeGenCXX/fp16-overload.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/CodeGenCXX/fp16-overload.cpp b/test/CodeGenCXX/fp16-overload.cpp new file mode 100644 index 0000000000..75622109c1 --- /dev/null +++ b/test/CodeGenCXX/fp16-overload.cpp @@ -0,0 +1,10 @@ +// RUN: %clang_cc1 -emit-llvm -o - -triple arm-none-linux-gnueabi %s | FileCheck %s + +extern int foo(float x); +extern int foo(double x); + +__fp16 a; + +// CHECK: call i32 @_Z3foof +// CHECK-NOT: call i32 @_Z3food +int bar (void) { return foo(a); } |