From 057beb8d4fe8d5dad98ad80a49a649730c3a3eb0 Mon Sep 17 00:00:00 2001 From: Tobias Grosser Date: Thu, 24 May 2012 15:59:06 +0000 Subject: Add half support to LLVM (for OpenCL) Submitted by: Anton Lokhmotov 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 --- test/Assembler/half.ll | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 test/Assembler/half.ll (limited to 'test/Assembler/half.ll') 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 +} -- cgit v1.2.3