diff mbox

[AArch64] Fix REG_CFA_RESTORE mode.

Message ID 5397038A.8030606@arm.com
State New
Headers show

Commit Message

Marcus Shawcroft June 10, 2014, 1:09 p.m. UTC
Looks like a copy n paste error originally.

Committed.

/Marcus
diff mbox

Patch

commit f6a9bafb21d26b2e7d767b392bea0f60c31701d5
Author: Marcus Shawcroft <marcus.shawcroft@arm.com>
Date:   Fri Jun 6 14:26:50 2014 +0100

    [AArch64] Fix REG_CFA_RESTORE mode.

diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index bf68f34..c510f44 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@ 
+2014-06-10  Marcus Shawcroft  <marcus.shawcroft@arm.com>
+
+	* config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
+	REG_CFA_RESTORE mode.
+
 2014-06-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
 
 	* doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
diff --git a/gcc/config/aarch64/aarch64.c b/gcc/config/aarch64/aarch64.c
index a8b1523..e7f455b 100644
--- a/gcc/config/aarch64/aarch64.c
+++ b/gcc/config/aarch64/aarch64.c
@@ -1980,7 +1980,7 @@  aarch64_save_or_restore_fprs (int start_offset, int increment,
 		{
 		  insn = emit_move_insn (gen_rtx_REG (DFmode, regno), mem);
 		  add_reg_note (insn, REG_CFA_RESTORE,
-				gen_rtx_REG (DImode, regno));
+				gen_rtx_REG (DFmode, regno));
 		}
 	      start_offset += increment;
 	    }