summaryrefslogtreecommitdiff
path: root/test/Assembler/half.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Assembler/half.ll')
-rw-r--r--test/Assembler/half.ll8
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
+}