Skip to content

Commit 075e74e

Browse files
[mono][s390x] Fix wrong implementation of OP_CHECK_THIS (#76920)
* Only access a single byte in memory for OP_CHECK_THIS * Remove unnecessary ltgr instruction * Fixes #76915 Co-authored-by: Ulrich Weigand <[email protected]>
1 parent aacc243 commit 075e74e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/mono/mono/mini/mini-s390x.c

+1-2
Original file line numberDiff line numberDiff line change
@@ -3594,8 +3594,7 @@ mono_arch_output_basic_block (MonoCompile *cfg, MonoBasicBlock *bb)
35943594
break;
35953595
case OP_CHECK_THIS: {
35963596
/* ensure ins->sreg1 is not NULL */
3597-
s390_lg (code, s390_r0, 0, ins->sreg1, 0);
3598-
s390_ltgr (code, s390_r0, s390_r0);
3597+
s390_llgc (code, s390_r0, 0, ins->sreg1, 0);
35993598
}
36003599
break;
36013600
case OP_ARGLIST: {

0 commit comments

Comments
 (0)