diff options
author | Tobias Grosser <grosser@fim.uni-passau.de> | 2012-05-24 15:59:06 +0000 |
---|---|---|
committer | Tobias Grosser <grosser@fim.uni-passau.de> | 2012-05-24 15:59:06 +0000 |
commit | 057beb8d4fe8d5dad98ad80a49a649730c3a3eb0 (patch) | |
tree | 48e33d7c92b9abb8e79b152d07fef085fcc9b061 /test/Assembler/half.ll | |
parent | 91bf23e6b7b9b4a00ebc73d4136a3b985581002a (diff) | |
download | llvm-057beb8d4fe8d5dad98ad80a49a649730c3a3eb0.tar.gz llvm-057beb8d4fe8d5dad98ad80a49a649730c3a3eb0.tar.bz2 llvm-057beb8d4fe8d5dad98ad80a49a649730c3a3eb0.tar.xz |
Add half support to LLVM (for OpenCL)
Submitted by: Anton Lokhmotov <Anton.Lokhmotov@arm.com>
Approved by: o Anton Korobeynikov
o Micah Villmow
o David Neto
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@157393 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Assembler/half.ll')
-rw-r--r-- | test/Assembler/half.ll | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/Assembler/half.ll b/test/Assembler/half.ll new file mode 100644 index 0000000000..63ad39235d --- /dev/null +++ b/test/Assembler/half.ll @@ -0,0 +1,8 @@ +; RUN: llvm-as < %s | llvm-dis | FileCheck %s +; Basic smoke test for half type. + +; CHECK: define half @halftest +define half @halftest(half %A0) { +; CHECK: ret half %A0 + ret half %A0 +} |