google / ruy

Apache License 2.0
303 stars 83 forks source link

Use .inst instead of .word in arm64 assembly #350

Open benbarsdell opened 11 months ago

benbarsdell commented 11 months ago

This ensures the instructions are marked as code instead of data, which is important when using tools like llvm-bolt.

cc @cliffwoolley

bjacob commented 10 months ago

i'm no longer working at Google. @talumbau ?

Note, the usage of .word directives to encode ARM dot-product instructions is for historical purposes: back in 2018 this was bleeding-edge and not supported on the then-current Android NDK toolchain. This could all be dropped now. The normal asm instruction to replace the .word directive should always be in the comment on the same line.