summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormskvortsov <mikhael.skvortsov@gmail.com>2016-12-20 12:48:38 +0300
committerJan Vorlicek <janvorli@microsoft.com>2016-12-20 10:48:38 +0100
commite99e79f336b4c796a37b939a84f57bf9bd358789 (patch)
treeed46451d4d64535db13c245a47782fe65308ceaf /src
parent6d5074546d40d1fc7e2f60033cd127e3e31462d5 (diff)
downloadcoreclr-e99e79f336b4c796a37b939a84f57bf9bd358789.tar.gz
coreclr-e99e79f336b4c796a37b939a84f57bf9bd358789.tar.bz2
coreclr-e99e79f336b4c796a37b939a84f57bf9bd358789.zip
ARM: do not use unpredictable sub.w sp, rN, #imm (#8636)
Diffstat (limited to 'src')
-rw-r--r--src/pal/inc/unixasmmacrosarm.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pal/inc/unixasmmacrosarm.inc b/src/pal/inc/unixasmmacrosarm.inc
index 14b0b4160e..76ea5eb93c 100644
--- a/src/pal/inc/unixasmmacrosarm.inc
+++ b/src/pal/inc/unixasmmacrosarm.inc
@@ -229,7 +229,8 @@ C_FUNC(\Name\()_End):
.endm
.macro EPILOG_STACK_RESTORE_OFFSET Register, Offset
- sub sp, \Register, \Offset
+ sub \Register, \Offset
+ mov sp, \Register
.endm
.macro EPILOG_BRANCH Target