Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.

[ARM/Linux] Honor unaligned prefix for ldobj instruction #11224

Merged
merged 1 commit into from Apr 27, 2017

Conversation

parjong
Copy link

@parjong parjong commented Apr 26, 2017

It seems that importer currently ignores unaligned. prefix when it imports ldobj instruction, which results in #11200.

This commit attempts to (partially) fix #11200 on the following cases (when the object is of primitive type):

  • System.Runtime.CompilerServices.UnsafeTests.ReadUnaligned_ByRef_Double
  • System.Runtime.CompilerServices.UnsafeTests.ReadUnaligned_Ptr_Double

@parjong parjong changed the title [WIP][ARM/Linux] Honor unaligned prefix for ldobj instruction [ARM/Linux] Honor unaligned prefix for ldobj instruction Apr 26, 2017
@parjong
Copy link
Author

parjong commented Apr 26, 2017

@dotnet/jit-contrib @BruceForstall Could you please take a look?

@parjong
Copy link
Author

parjong commented Apr 26, 2017

\CC @hqueue @hseok-oh @jyoungyun

@BruceForstall
Copy link
Member

fyi @dotnet/arm32-contrib : Note that for RyuJIT/arm32, there is no code yet to to handle GTF_IND_UNALIGNED in either LSRA or code generation, such as what exists for LEGACY_BACKEND arm32 in regalloc.cpp/registerfp.cpp.

@BruceForstall BruceForstall merged commit 58b0918 into dotnet:master Apr 27, 2017
@parjong parjong deleted the fix/arm_unaligned_ldobj branch April 27, 2017 22:11
@hqueue
Copy link
Member

hqueue commented Apr 28, 2017

@BruceForstall Thank you for the information. #11284 will track this issue in ryujit/arm32.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
5 participants