diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index d75f009d994ba87741707e1ea0371c04767613a2..872282654700a00039f790954f875545589958d3 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2012-11-03  Richard Sandiford  <rdsandiford@googlemail.com>
+
+	* gcc.target/mips/octeon-exts-7.c (bar): Make sure the extraction of
+	b requires a 64-bit operation followed by a truncation.
+
 2012-11-02  Jan Hubicka  <jh@suse.cz>
 
 	* gcc.dg/tree-ssa/loop-38.c: Correct testcase.
diff --git a/gcc/testsuite/gcc.target/mips/octeon-exts-7.c b/gcc/testsuite/gcc.target/mips/octeon-exts-7.c
index 0d0d08eacdc6845aa4bc1849fec97de55c57c46d..fcae0126150526ef2d664e4c98bc6c582a6f50e8 100644
--- a/gcc/testsuite/gcc.target/mips/octeon-exts-7.c
+++ b/gcc/testsuite/gcc.target/mips/octeon-exts-7.c
@@ -8,7 +8,8 @@
 struct bar
 {
   long long a:18;
-  long long b:14;
+  long long b:24;
+  long long c:22;
 };
 
 NOMIPS16 int