From ed187aa442b1045fb0ff3b49e44965e9c0b31d4a Mon Sep 17 00:00:00 2001
From: "Maciej W. Rozycki" <macro@linux-mips.org>
Date: Thu, 14 Feb 2013 23:48:18 +0000
Subject: [PATCH] 	* binutils-all/mips/mixed-mips16.s: Add missing stack
 adjustment. 	* binutils-all/mips/mixed-mips16.d: Update accordingly.

---
 binutils/testsuite/ChangeLog                        | 5 +++++
 binutils/testsuite/binutils-all/mips/mixed-mips16.d | 2 +-
 binutils/testsuite/binutils-all/mips/mixed-mips16.s | 1 +
 3 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/binutils/testsuite/ChangeLog b/binutils/testsuite/ChangeLog
index 524f48990cd..b8daec6ef39 100644
--- a/binutils/testsuite/ChangeLog
+++ b/binutils/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2013-02-14  Maciej W. Rozycki  <macro@codesourcery.com>
+
+	* binutils-all/mips/mixed-mips16.s: Add missing stack adjustment.
+	* binutils-all/mips/mixed-mips16.d: Update accordingly.
+
 2013-02-13  Maciej W. Rozycki  <macro@codesourcery.com>
 
 	* binutils-all/mips/mixed-micromips.d: New test.
diff --git a/binutils/testsuite/binutils-all/mips/mixed-mips16.d b/binutils/testsuite/binutils-all/mips/mixed-mips16.d
index 1f76c5218dc..09e1821adf9 100644
--- a/binutils/testsuite/binutils-all/mips/mixed-mips16.d
+++ b/binutils/testsuite/binutils-all/mips/mixed-mips16.d
@@ -26,5 +26,5 @@ Disassembly of section \.text\.bar:
 [0-9a-f]+ <[^>]*> 6500      	nop
 [0-9a-f]+ <[^>]*> 9707      	lw	a3,28\(sp\)
 [0-9a-f]+ <[^>]*> ef00      	jr	a3
-[0-9a-f]+ <[^>]*> 6500      	nop
+[0-9a-f]+ <[^>]*> 6304      	addiu	sp,32
 	\.\.\.
diff --git a/binutils/testsuite/binutils-all/mips/mixed-mips16.s b/binutils/testsuite/binutils-all/mips/mixed-mips16.s
index 189f4ae806a..338022c1b55 100644
--- a/binutils/testsuite/binutils-all/mips/mixed-mips16.s
+++ b/binutils/testsuite/binutils-all/mips/mixed-mips16.s
@@ -25,6 +25,7 @@ bar:
 	sw	$ra, 28($sp)
 	jal	baz
 	lw	$a3, 28($sp)
+	addiu	$sp, 32
 	jr	$a3
 	.end	bar