reference icon indicating copy to clipboard operation
reference copied to clipboard

'.inst' in inline-assembly changed to '.insn'

Open CyoeeA9e opened this issue 1 year ago • 5 comments

The correct directive name should be .insn. Here is the issue in rust repository.

CyoeeA9e avatar Jan 24 '24 01:01 CyoeeA9e

I'm a bit confused, as I believe .inst is a valid directive still. What is the difference between them? Is there some more information about this change?

@Amanieu Can you provide some information here?

ehuss avatar Jan 25 '24 20:01 ehuss

Both are correct: .inst is used on ARM, .insn is used in RISC-V.

Amanieu avatar Jan 25 '24 20:01 Amanieu

@joshtriplett Do you want to add .insn to the guaranteed directive list? (Not what this PR does, it should be added not replaced.)

Looks like .insn was added to gnu-as in 2018 in https://github.com/bminor/binutils-gdb/commit/0e35537d754f1c687850d1caccb2d78d2e418391 and in llvm in llvm-14 in https://github.com/llvm/llvm-project/commit/283879793dc787225992496587581ec77b6b0610 (I think, from some quick googling).

ehuss avatar Apr 30 '24 21:04 ehuss

I'm happy to add it in addition to .inst.

Amanieu avatar Apr 30 '24 21:04 Amanieu

@ehuss Yeah, that seems reasonable.

joshtriplett avatar Apr 30 '24 21:04 joshtriplett