This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Fix some hle* tests


On Thu, May 3, 2012 at 12:17 PM, Uros Bizjak <ubizjak@gmail.com> wrote:

>> BTW, I wonder if dg-options shouldn't select -march=i686 for !lp64,
>> if somebody configures gcc to default to -march=i386, I guess xadd etc.
>> won't be emitted there.
>
> You can add -march=x86-64 unconditionally to these test. This arch is
> the placeholder for "some recent x86 processor" and works for -m32 and
> -m64.

Fixed with attached patch.

2012-05-03  Uros Bizjak  <ubizjak@gmail.com>

	* gcc.target/i386/hle-cmpxchg-acq-1.c (dg-options): Add -march=x86-64.
	* gcc.target/i386/hle-xadd-acq-1.c (dg-options): Ditto.
	* gcc.target/i386/hle-cmpxchg-rel-1.c (dg-options): Ditto.
	* gcc.target/i386/hle-xadd-rel-1.c (dg-options): Ditto.

Tested on x86_64-pc-linux-gnu {,-m32}, committed.
Uros.

Attachment: t.diff.txt
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]