diff options
author | Sanjay Patel <spatel@rotateright.com> | 2018-03-07 17:18:22 +0000 |
---|---|---|
committer | Sanjay Patel <spatel@rotateright.com> | 2018-03-07 17:18:22 +0000 |
commit | 7b7224051cf5b520789a50471b1798dda4e9764c (patch) | |
tree | 13fb85b62cf68d27c8e019ec6bb135ddbe6566dd | |
parent | e1847da924293f5871ed44a414e064a1146fbd11 (diff) | |
download | bcm5719-llvm-7b7224051cf5b520789a50471b1798dda4e9764c.tar.gz bcm5719-llvm-7b7224051cf5b520789a50471b1798dda4e9764c.zip |
[LangRef] fix formatting in FP descriptions; NFC
This is a clean-up step to reduce diffs ahead of real
changes to the FP semantics as discussed on llvm-dev:
http://lists.llvm.org/pipermail/llvm-dev/2018-February/121444.html
llvm-svn: 326913
-rw-r--r-- | llvm/docs/LangRef.rst | 43 |
1 files changed, 22 insertions, 21 deletions
diff --git a/llvm/docs/LangRef.rst b/llvm/docs/LangRef.rst index 97a8471c9e6..849c19c5aae 100644 --- a/llvm/docs/LangRef.rst +++ b/llvm/docs/LangRef.rst @@ -3064,11 +3064,11 @@ optimizer can assume that it occurs in dead code. a: <deleted> b: unreachable -These examples reiterate the ``fdiv`` example: a store *of* an undefined -value can be assumed to not have any effect; we can assume that the -value is overwritten with bits that happen to match what was already -there. However, a store *to* an undefined location could clobber -arbitrary memory, therefore, it has undefined behavior. +A store *of* an undefined value can be assumed to not have any effect; +we can assume that the value is overwritten with bits that happen to +match what was already there. However, a store *to* an undefined +location could clobber arbitrary memory, therefore, it has undefined +behavior. .. _poisonvalues: @@ -6403,10 +6403,10 @@ Both arguments must have identical types. Semantics: """""""""" -The value produced is the floating point sum of the two operands. This -instruction can also take any number of :ref:`fast-math flags <fastmath>`, -which are optimization hints to enable otherwise unsafe floating point -optimizations: +The value produced is the floating-point sum of the two operands. +This instruction can also take any number of :ref:`fast-math +flags <fastmath>`, which are optimization hints to enable otherwise +unsafe floating-point optimizations: Example: """""""" @@ -6498,10 +6498,10 @@ Both arguments must have identical types. Semantics: """""""""" -The value produced is the floating point difference of the two operands. +The value produced is the floating-point difference of the two operands. This instruction can also take any number of :ref:`fast-math flags <fastmath>`, which are optimization hints to enable otherwise -unsafe floating point optimizations: +unsafe floating-point optimizations: Example: """""""" @@ -6591,10 +6591,10 @@ Both arguments must have identical types. Semantics: """""""""" -The value produced is the floating point product of the two operands. +The value produced is the floating-point product of the two operands. This instruction can also take any number of :ref:`fast-math flags <fastmath>`, which are optimization hints to enable otherwise -unsafe floating point optimizations: +unsafe floating-point optimizations: Example: """""""" @@ -6723,10 +6723,10 @@ Both arguments must have identical types. Semantics: """""""""" -The value produced is the floating point quotient of the two operands. +The value produced is the floating-point quotient of the two operands. This instruction can also take any number of :ref:`fast-math flags <fastmath>`, which are optimization hints to enable otherwise -unsafe floating point optimizations: +unsafe floating-point optimizations: Example: """""""" @@ -6864,12 +6864,13 @@ Both arguments must have identical types. Semantics: """""""""" -Return the same value as a libm '``fmod``' function but without trapping or -setting ``errno``. - -The remainder has the same sign as the dividend. This instruction can also -take any number of :ref:`fast-math flags <fastmath>`, which are optimization -hints to enable otherwise unsafe floating-point optimizations: +The value produced is the floating-point remainder of the two operands. +This is the same output as a libm '``fmod``' function, but without any +possibility of setting ``errno``. The remainder has the same sign as the +dividend. +This instruction can also take any number of :ref:`fast-math +flags <fastmath>`, which are optimization hints to enable otherwise +unsafe floating-point optimizations: Example: """""""" |