[PATCH] D35647: [lld] [COFF] Support 128 bit SIMD/FP ldr/str in IMAGE_REL_ARM64_PAGEOFFSET_12L

Rui Ueyama via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 19 14:56:30 PDT 2017


ruiu added a comment.

Where is this behavior documented?



================
Comment at: COFF/Chunks.cpp:190
+  // the third bit in Size.
+  if (((Orig >> 26) & 1) != 0) // SIMD/FP
+    Size |= ((Orig >> 23) & 0x01) << 2;
----------------
This is probably more straightforward:

  if (Orig & 0x280000)
    Size += 4;


https://reviews.llvm.org/D35647





More information about the llvm-commits mailing list