From: Georg-Johann Lay <avr@gjlay.de>
To: Artem Shinkarov <artyom.shinkaroff@gmail.com>
Cc: Jakub Jelinek <jakub@redhat.com>,
Richard Guenther <richard.guenther@gmail.com>,
Uros Bizjak <ubizjak@gmail.com>,
Richard Henderson <rth@redhat.com>,
gcc-patches@gcc.gnu.org,
"Joseph S. Myers" <joseph@codesourcery.com>
Subject: Re: Vector Comparison patch
Date: Fri, 30 Sep 2011 19:05:00 -0000 [thread overview]
Message-ID: <4E85FD8B.9080301@gjlay.de> (raw)
In-Reply-To: <CABYV9SUkK4TNLpJG3FXcXRHMtPTgH4Sbr9LW-a=p7cQz5i+qRA@mail.gmail.com>
Artem Shinkarov schrieb:
> On Fri, Sep 30, 2011 at 4:54 PM, Jakub Jelinek <jakub@redhat.com> wrote:
>
>>On Fri, Sep 30, 2011 at 04:48:41PM +0100, Artem Shinkarov wrote:
>>
>>>Most likely we can. The question is what do we really want to check
>>>with this test. My intention was to check that a programmer can
>>>statically get correspondence of the types, in a sense that sizeof
>>>(float) == sizeof (int) and sizeof (double) == sizeof (long long). As
>>>it seems my original assumption does not hold. Before using __typeof,
>>>I would try to make sure that there is no other way to determine these
>>>correspondences.
>>
>>You can use preprocessor too, either just surround the whole test
>>with #if __SIZEOF_INT__ == __SIZEOF_FLOAT__ and similar,
>>or select the right type through preprocessor
>>#if __SIZEOF_INT__ == __SIZEOF_FLOAT__
>>#define FLOATCMPTYPE int
>>#elif __SIZEOF_LONG__ == __SIZEOF_FLOAT__
>>#define FLOATCMPTYPE long
>>#else
>>...
>>or __typeof, etc.
>>
>> Jakub
>
> Ok, here is a patch which uses __typeof. Passes on x86_64.
Thanks, I will test on avr next week.
Johann
>
> Artem.
>
next prev parent reply other threads:[~2011-09-30 17:35 UTC|newest]
Thread overview: 91+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-12 7:04 Artem Shinkarov
2011-08-15 15:25 ` Richard Guenther
2011-08-15 17:53 ` Artem Shinkarov
2011-08-16 16:39 ` Richard Guenther
2011-08-16 17:01 ` Artem Shinkarov
2011-08-16 21:48 ` Artem Shinkarov
2011-08-17 12:58 ` Richard Guenther
2011-08-17 15:27 ` Artem Shinkarov
2011-08-17 16:14 ` Richard Guenther
2011-08-17 17:07 ` Artem Shinkarov
2011-08-17 21:18 ` Artem Shinkarov
2011-08-18 1:22 ` Joseph S. Myers
2011-08-18 11:37 ` Artem Shinkarov
2011-08-18 14:20 ` Joseph S. Myers
2011-08-18 10:21 ` Richard Guenther
2011-08-18 11:24 ` Artem Shinkarov
2011-08-18 15:05 ` Artem Shinkarov
2011-08-18 15:19 ` Richard Henderson
2011-08-19 8:17 ` Artem Shinkarov
2011-08-19 15:38 ` Richard Guenther
2011-08-19 16:28 ` Artem Shinkarov
2011-08-20 10:14 ` Richard Guenther
2011-08-22 7:32 ` Artem Shinkarov
2011-08-22 12:06 ` Richard Guenther
2011-08-22 13:56 ` Artem Shinkarov
2011-08-22 15:43 ` Richard Guenther
2011-08-22 15:54 ` Artem Shinkarov
2011-08-22 15:57 ` Richard Guenther
2011-08-22 16:02 ` Artem Shinkarov
2011-08-22 16:25 ` Richard Guenther
2011-08-22 17:16 ` Artem Shinkarov
2011-08-22 21:07 ` Richard Guenther
2011-08-22 21:53 ` Artem Shinkarov
2011-08-22 22:39 ` Richard Guenther
2011-08-22 23:13 ` Artem Shinkarov
2011-08-23 9:53 ` Richard Guenther
2011-08-23 10:12 ` Artem Shinkarov
2011-08-23 10:45 ` Richard Guenther
2011-08-23 11:08 ` Artem Shinkarov
2011-08-23 11:12 ` Richard Guenther
2011-08-23 11:23 ` Artem Shinkarov
2011-08-23 11:26 ` Richard Guenther
2011-08-23 11:41 ` Artem Shinkarov
2011-08-23 11:58 ` Artem Shinkarov
2011-08-23 12:06 ` Richard Guenther
2011-08-23 12:37 ` Artem Shinkarov
2011-08-25 9:22 ` Artem Shinkarov
2011-08-25 9:58 ` Richard Guenther
2011-08-25 10:15 ` Artem Shinkarov
2011-08-25 11:02 ` Richard Guenther
2011-08-25 11:49 ` Artem Shinkarov
2011-08-25 12:14 ` Richard Guenther
2011-08-25 13:29 ` Artem Shinkarov
2011-08-25 13:30 ` Richard Guenther
2011-08-25 13:31 ` Artem Shinkarov
2011-08-25 14:49 ` Richard Guenther
2011-08-27 10:50 ` Artem Shinkarov
2011-08-29 12:46 ` Richard Guenther
2011-08-22 20:46 ` Uros Bizjak
2011-08-22 20:58 ` Richard Guenther
2011-08-22 21:12 ` Artem Shinkarov
2011-08-29 12:54 ` Richard Guenther
2011-08-29 13:08 ` Richard Guenther
2011-09-06 14:51 ` Artem Shinkarov
2011-09-06 14:56 ` Richard Guenther
2011-09-07 14:14 ` Artem Shinkarov
2011-09-07 15:08 ` Joseph S. Myers
2011-09-26 14:56 ` Richard Guenther
2011-09-26 16:01 ` Richard Guenther
2011-09-28 14:53 ` Richard Guenther
2011-09-29 11:05 ` Richard Guenther
2011-09-29 14:01 ` Richard Guenther
2011-09-30 11:44 ` Matthew Gretton-Dann
2011-09-08 12:56 ` Richard Guenther
2011-09-08 13:46 ` Richard Guenther
2011-09-08 18:14 ` Uros Bizjak
2011-09-30 15:21 ` Georg-Johann Lay
2011-09-30 15:29 ` Artem Shinkarov
2011-09-30 16:21 ` Georg-Johann Lay
2011-09-30 16:30 ` Jakub Jelinek
2011-09-30 16:45 ` Artem Shinkarov
2011-09-30 16:51 ` Jakub Jelinek
2011-09-30 17:01 ` Artem Shinkarov
2011-09-30 19:05 ` Georg-Johann Lay [this message]
2011-10-04 9:39 ` Georg-Johann Lay
2011-10-04 9:55 ` Jakub Jelinek
2011-10-04 10:05 ` Georg-Johann Lay
2011-08-29 12:54 ` Paolo Bonzini
2011-09-16 18:08 ` Richard Henderson
2011-08-17 12:49 ` Richard Guenther
2011-08-20 11:22 ` Uros Bizjak
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4E85FD8B.9080301@gjlay.de \
--to=avr@gjlay.de \
--cc=artyom.shinkaroff@gmail.com \
--cc=gcc-patches@gcc.gnu.org \
--cc=jakub@redhat.com \
--cc=joseph@codesourcery.com \
--cc=richard.guenther@gmail.com \
--cc=rth@redhat.com \
--cc=ubizjak@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).