From 542550cf6c183ffba4f5cbb5f82c851b4b1aca8c Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Thu, 28 Jul 2011 08:35:38 +0200 Subject: [PATCH] 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 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/gcc.target/i386/i386.exp | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 485057f80a2..73e75bc2cc3 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2011-07-28 Jakub Jelinek + + * gcc.target/i386/i386.exp (check_effective_target_bmi): Make sure + the builtin isn't optimized away. + 2011-07-27 Tobias Burnus PR fortran/45586 diff --git a/gcc/testsuite/gcc.target/i386/i386.exp b/gcc/testsuite/gcc.target/i386/i386.exp index 86c7549fcd7..13d8cffca4f 100644 --- a/gcc/testsuite/gcc.target/i386/i386.exp +++ b/gcc/testsuite/gcc.target/i386/i386.exp @@ -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" ] } -- 2.30.2