i386.exp (check_effective_target_bmi): Make sure the builtin isn't optimized away.

* gcc.target/i386/i386.exp (check_effective_target_bmi): Make sure
	the builtin isn't optimized away.

From-SVN: r176859
This commit is contained in:
Jakub Jelinek 2011-07-28 08:35:38 +02:00 committed by Jakub Jelinek
parent 1c9275a9ab
commit 542550cf6c
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2011-07-28 Jakub Jelinek <jakub@redhat.com>
* gcc.target/i386/i386.exp (check_effective_target_bmi): Make sure
the builtin isn't optimized away.
2011-07-27 Tobias Burnus <burnus@net-b.de>
PR fortran/45586

View File

@ -189,9 +189,9 @@ proc check_effective_target_xop { } {
# Return 1 if bmi instructions can be compiled.
proc check_effective_target_bmi { } {
return [check_no_compiler_messages bmi object {
void __bextr_u32 (void)
unsigned int __bextr_u32 (unsigned int __X, unsigned int __Y)
{
__builtin_ia32_bextr_u32 (0, 0);
return __builtin_ia32_bextr_u32 (__X, __Y);
}
} "-mbmi" ]
}