summaryrefslogtreecommitdiff
path: root/docs/Extensions.rst
diff options
context:
space:
mode:
authorTim Northover <tnorthover@apple.com>2013-08-14 15:27:20 +0000
committerTim Northover <tnorthover@apple.com>2013-08-14 15:27:20 +0000
commit003f93f13464b6ec80b89840bbc07102011fa5b4 (patch)
treeb82dd7a30ade74fff9a8e4568b7fc56e01eb79c9 /docs/Extensions.rst
parent47e7c040f4e03a5fd162ee7c8ea061cfe873eb23 (diff)
downloadllvm-003f93f13464b6ec80b89840bbc07102011fa5b4.tar.gz
llvm-003f93f13464b6ec80b89840bbc07102011fa5b4.tar.bz2
llvm-003f93f13464b6ec80b89840bbc07102011fa5b4.tar.xz
Add the C99 hex-float assembly syntax to our extension document.
As Ben pointed out, GAS doesn't support this syntax so we should give at least some warning that it might not be portable. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188377 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs/Extensions.rst')
-rw-r--r--docs/Extensions.rst13
1 files changed, 13 insertions, 0 deletions
diff --git a/docs/Extensions.rst b/docs/Extensions.rst
index 78ff874abf..52dadc74e3 100644
--- a/docs/Extensions.rst
+++ b/docs/Extensions.rst
@@ -14,6 +14,19 @@ Introduction
This document describes extensions to tools and formats LLVM seeks compatibility
with.
+General Assembly Syntax
+===========================
+
+C99-style Hexadecimal Floating-point Constants
+----------------------------------------------
+
+LLVM's assemblers allow floating-point constants to be written in C99's
+hexadecimal format instead of decimal if desired.
+
+.. code-block:: gas
+ .section .data
+ .float 0x1c2.2ap3
+
Machine-specific Assembly Syntax
================================