On Thu, 25 Sep 2025, Sandra Loosemore wrote:
>> -Vectors are compared element-wise producing 0 when comparison is false
>> -and -1 (constant of the appropriate type where all bits are set)
>> +Vectors are compared element-wise producing 0 when the comparison is false
>> +and -1 (a constant of the appropriate type where all bits are set)
>>   otherwise. Consider the following example.
>>   
>>   @smallexample
> I'd use a colon instead of a period to introduce the @smallexample at 
> the end.

Good point, thank you. I made this change and pushed the patch below.

> As a separate issue, can we settle on a consistent use of "elementwise" 
> vs "element-wise" and "bitwise" vs "bit-wise" (and possibly some other 
> similar things) throughout the GCC documentation?  We already seem to 
> have a stronger precedent for "bitwise" than the hyphenated form. 
> "Elementwise" is less clear, but if we don't hyphenate "bitwise" I don't 
> know why we should use the hyphenated form for similar words.  

You're my oracle for English language questions, so, yes, we can settle 
this. :-)

> I suggest a separate patch for this cleanup.

I'm not sure whether this was an announcement or request, and will go 
ahead with that next.

Gerald


commit 29c28bb9123c5cbbef1f4c39ddaf5733cb8ec313
Author: Gerald Pfeifer <[email protected]>
Date:   Thu Sep 25 23:54:43 2025 +0200

    doc: Fix grammar around Vector Extensions
    
    gcc:
            * doc/extend.texi (Vector Extensions): Fix grammar.

diff --git a/gcc/doc/extend.texi b/gcc/doc/extend.texi
index 596cb5d3259..d6a2f724cab 100644
--- a/gcc/doc/extend.texi
+++ b/gcc/doc/extend.texi
@@ -16529,9 +16529,9 @@ result of the comparison is a vector of the same width 
and number of
 elements as the comparison operands with a signed integral element
 type.
 
-Vectors are compared element-wise producing 0 when comparison is false
-and -1 (constant of the appropriate type where all bits are set)
-otherwise. Consider the following example.
+Vectors are compared element-wise producing 0 when the comparison is false
+and -1 (a constant of the appropriate type where all bits are set)
+otherwise. Consider the following example:
 
 @smallexample
 typedef int v4si __attribute__ ((vector_size (16)));

Reply via email to