All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Jan Kiszka <jan.kiszka@web.de>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai] [Xenomai-git] Jan Kiszka : switchtest: Add SSE and AVX check
Date: Tue, 16 Apr 2013 09:53:59 +0200	[thread overview]
Message-ID: <516D0397.5050301@xenomai.org> (raw)
In-Reply-To: <516CFEEB.5050704@web.de>

On 04/16/2013 09:34 AM, Jan Kiszka wrote:

> On 2013-04-16 09:32, Gilles Chanteperdrix wrote:
>> On 04/16/2013 09:24 AM, Jan Kiszka wrote:
>>
>>> On 2013-04-16 00:02, Jan Kiszka wrote:
>>>> On 2013-04-13 18:11, Gilles Chanteperdrix wrote:
>>>>> This routine causes a warning from gcc and looks indeed wrong: if the
>>>>> "vec" variable is used as an output variable of the inline assembly, it
>>>>> should be in the output section of the inline assembly, not the input
>>>>> section.
>>>>>
>>>>
>>>> Yes, seems wrong. Will try to look into it the next days.
>>>
>>> Done, you can find the obvious fix in my for-upstream queue.
>>
>>
>> Hi Jan,
>>
>> yes the fix is obvious, however the fact that machines with AVX support
>> still pass xeno-regression-test is not, have you checked that?
> 
> I've checked that the binary output is unaffected, at least for my
> compiler here. Makes sense as there is no other use for the registers
> around, and the assembler just blindly put the input variables into the
> destination slot of the instructions.


No, it does not really make sense: a piece of assembly without any side
effects and any outputs is basically useless, so the compiler could very
well decide to optimize it out. But if you have checked, OK.


-- 
                                                                Gilles.


  reply	other threads:[~2013-04-16  7:53 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <E1U2RE9-0007Zc-Em@xenomai.org>
2013-04-13 16:11 ` [Xenomai] [Xenomai-git] Jan Kiszka : switchtest: Add SSE and AVX check Gilles Chanteperdrix
2013-04-15 22:02   ` Jan Kiszka
2013-04-16  7:24     ` Jan Kiszka
2013-04-16  7:32       ` Gilles Chanteperdrix
2013-04-16  7:34         ` Jan Kiszka
2013-04-16  7:53           ` Gilles Chanteperdrix [this message]
2013-04-16  8:27             ` Jan Kiszka

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=516D0397.5050301@xenomai.org \
    --to=gilles.chanteperdrix@xenomai.org \
    --cc=jan.kiszka@web.de \
    --cc=xenomai@xenomai.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.