aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2011-07-28 08:35:38 +0200
committerJakub Jelinek <jakub@gcc.gnu.org>2011-07-28 08:35:38 +0200
commit542550cf6c183ffba4f5cbb5f82c851b4b1aca8c (patch)
treebbcea7ca7cdc6656361e1a46dd5cd8beecce1f52
parent1c9275a9ab2f21877fc91b98bbcfa4f8cc6b17a2 (diff)
downloadgcc-542550cf6c183ffba4f5cbb5f82c851b4b1aca8c.zip
gcc-542550cf6c183ffba4f5cbb5f82c851b4b1aca8c.tar.gz
gcc-542550cf6c183ffba4f5cbb5f82c851b4b1aca8c.tar.bz2
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
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/gcc.target/i386/i386.exp4
2 files changed, 7 insertions, 2 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 485057f..73e75bc 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -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
diff --git a/gcc/testsuite/gcc.target/i386/i386.exp b/gcc/testsuite/gcc.target/i386/i386.exp
index 86c7549..13d8cff 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" ]
}