Skip to content

Very suspicious code in AArch64 NCG

While looking at the AArch64 NCG I noticed the following in mkLoadInstr:

        fmt = case reg of
            RegReal (RealRegSingle n) | n < 32 -> II64
            _                                  -> FF64

Why is one integral and the other floating-point? Why n < 32? The reasoning behind all of this at very least deserves a comment.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information