Blame SOURCES/runtime-76916-mono-s390x-opcheckthis.patch
|
|
c51fa4 |
From 7b46eae144e3a6a430155e824fc33e3f38fab427 Mon Sep 17 00:00:00 2001
|
|
|
c51fa4 |
From: Ulrich Weigand <ulrich.weigand@de.ibm.com>
|
|
|
c51fa4 |
Date: Wed, 12 Oct 2022 09:53:09 +0200
|
|
|
c51fa4 |
Subject: [PATCH] [mono][s390x] Fix wrong implementation of OP_CHECK_THIS
|
|
|
c51fa4 |
|
|
|
c51fa4 |
* Only access a single byte in memory for OP_CHECK_THIS
|
|
|
c51fa4 |
|
|
|
c51fa4 |
* Remove unnecessary ltgr instruction
|
|
|
c51fa4 |
|
|
|
c51fa4 |
* Fixes https://github.com/dotnet/runtime/issues/76915
|
|
|
c51fa4 |
---
|
|
|
c51fa4 |
src/mono/mono/mini/mini-s390x.c | 3 +--
|
|
|
c51fa4 |
1 file changed, 1 insertion(+), 2 deletions(-)
|
|
|
c51fa4 |
|
|
|
c51fa4 |
diff --git a/src/runtime/src/mono/mono/mini/mini-s390x.c b/src/runtime/src/mono/mono/mini/mini-s390x.c
|
|
|
c51fa4 |
index 7c7a936ed9701..26e6ba1d32a3b 100644
|
|
|
c51fa4 |
--- a/src/runtime/src/mono/mono/mini/mini-s390x.c
|
|
|
c51fa4 |
+++ b/src/runtime/src/mono/mono/mini/mini-s390x.c
|
|
|
c51fa4 |
@@ -3594,8 +3594,7 @@ mono_arch_output_basic_block (MonoCompile *cfg, MonoBasicBlock *bb)
|
|
|
c51fa4 |
break;
|
|
|
c51fa4 |
case OP_CHECK_THIS: {
|
|
|
c51fa4 |
/* ensure ins->sreg1 is not NULL */
|
|
|
c51fa4 |
- s390_lg (code, s390_r0, 0, ins->sreg1, 0);
|
|
|
c51fa4 |
- s390_ltgr (code, s390_r0, s390_r0);
|
|
|
c51fa4 |
+ s390_llgc (code, s390_r0, 0, ins->sreg1, 0);
|
|
|
c51fa4 |
}
|
|
|
c51fa4 |
break;
|
|
|
c51fa4 |
case OP_ARGLIST: {
|