Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Support ldelem.u8, ldelem.u opcode aliases
  • Loading branch information
brianrourkeboll committed Nov 28, 2024
commit 23eb581165845289986e6978edf7dce8f8504536
4 changes: 2 additions & 2 deletions src/Compiler/AbstractIL/ilwrite.fs
Original file line number Diff line number Diff line change
Expand Up @@ -2026,11 +2026,11 @@ module Codebuf =
| I_ldelem dt ->
emitInstrCode codebuf
(match dt with
| DT_I -> i_ldelem_i
| DT_I | DT_U -> i_ldelem_i
| DT_I1 -> i_ldelem_i1
| DT_I2 -> i_ldelem_i2
| DT_I4 -> i_ldelem_i4
| DT_I8 -> i_ldelem_i8
| DT_I8 | DT_U8 -> i_ldelem_i8
| DT_U1 -> i_ldelem_u1
| DT_U2 -> i_ldelem_u2
| DT_U4 -> i_ldelem_u4
Expand Down
6 changes: 4 additions & 2 deletions src/Compiler/Optimize/LowerComputedCollections.fs
Original file line number Diff line number Diff line change
Expand Up @@ -359,9 +359,11 @@ module List =
module Array =
let private mkIlInstr (g: TcGlobals) specific any ilTy =
if ilTy = g.ilg.typ_Int32 then specific DT_I4
elif ilTy = g.ilg.typ_Int64 || ilTy = g.ilg.typ_UInt64 then specific DT_I8
elif ilTy = g.ilg.typ_Int64 then specific DT_I8
elif ilTy = g.ilg.typ_UInt64 then specific DT_U8
elif ilTy = g.ilg.typ_UInt32 then specific DT_U4
elif ilTy = g.ilg.typ_IntPtr || ilTy = g.ilg.typ_UIntPtr then specific DT_I
elif ilTy = g.ilg.typ_IntPtr then specific DT_I
elif ilTy = g.ilg.typ_UIntPtr then specific DT_U
elif ilTy = g.ilg.typ_Int16 then specific DT_I2
elif ilTy = g.ilg.typ_UInt16 then specific DT_U2
elif ilTy = g.ilg.typ_SByte then specific DT_I1
Expand Down