Re: Rules about type of comparison of gcc vector types

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi!

On Mon, Jul 14, 2025 at 10:29:29PM +0800, Imple Lee via Gcc-help wrote:
> The relevant documentation is as follows.
> 
> > The 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.
> 
> However, on architectures where different integral types have the same
> width, e.g. `long` and `long long` are both 64-bit on x86-64 linux, it
> is unclear which type will be used (on x86-64 linux, the type of both

The documentation describes what the mode of the result is, i.e. how
many bits and that kind of thing -- not what the type is, a C concept.

This is useful for many more users than just those that care for C.  It
also is useful for backend developers and developers of machine-specific
stuff.

But yeah, the type used should be described somewhere.  Possibly in some
other place than you were looking (it wasn't clear to me where that
was): you need to find something about "the binding to the C language".


Segher



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux