[llvm] r188377 - Add the C99 hex-float assembly syntax to our extension document.
Tim Northover
tnorthover at apple.com
Wed Aug 14 08:27:20 PDT 2013
Author: tnorthover
Date: Wed Aug 14 10:27:20 2013
New Revision: 188377
URL: http://llvm.org/viewvc/llvm-project?rev=188377&view=rev
Log:
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.
Modified:
llvm/trunk/docs/Extensions.rst
Modified: llvm/trunk/docs/Extensions.rst
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/docs/Extensions.rst?rev=188377&r1=188376&r2=188377&view=diff
==============================================================================
--- llvm/trunk/docs/Extensions.rst (original)
+++ llvm/trunk/docs/Extensions.rst Wed Aug 14 10:27:20 2013
@@ -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
================================
More information about the llvm-commits
mailing list