Difference between "fnop" and "nop" assembly instructions

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Difference between "fnop" and "nop" assembly instructions

ソリューションへジャンプ
7,274件の閲覧回数
xuedongyang
Contributor II

Hi, experts,

I am wondering what is the difference between "fnop" and "nop" assembly instructions. I am referring the document "VSPA-16SP ISA-v3.0 Instruction Set Manual for LA1224, Rev. A 10/2019". I see "fnop" and "nop" instructions in the document, but do not know the difference between them. 

I tried both instructions in an assembly function I am working on. It seems to me both instructions work.

xuedongyang_0-1642090367436.png

xuedongyang_1-1642090430844.png

Thanks,

Xuedong Yang

 

0 件の賞賛
返信
1 解決策
7,230件の閲覧回数
yipingwang
NXP TechSupport
NXP TechSupport

Please refer to the attached document.

元の投稿で解決策を見る

0 件の賞賛
返信
4 返答(返信)
7,248件の閲覧回数
yipingwang
NXP TechSupport
NXP TechSupport

The fnop is always a full 64-bit instruction. It can be useful for aligning code.

With nop the compiler can choose either a 32-bit instruction or a 64-bit instruction.

 

The VSPA ISM revision that you are referring to (RevA) is quite old. In the later revisions of the ISM it was decided to replace all fnop to nop, and publish only nop in the document so as to give more flexibility to the compiler.

 

I believe Rev 0 is the VSPA  ISM latest revision available for LA1224. Do you have access to the latest rev?

0 件の賞賛
返信
7,243件の閲覧回数
xuedongyang
Contributor II

Thanks, Yiping, for the helpful answer.

No, I don't have latest version of LA1224 ISM, and don't know how to get it.

It would be great if you could guide me how to get the latest version of the document.

 

0 件の賞賛
返信
7,231件の閲覧回数
yipingwang
NXP TechSupport
NXP TechSupport

Please refer to the attached document.

0 件の賞賛
返信
7,224件の閲覧回数
xuedongyang
Contributor II

Thank you very much for providing the latest document.

0 件の賞賛
返信