Difference between "fnop" and "nop" assembly instructions

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Difference between "fnop" and "nop" assembly instructions

跳至解决方案
7,281 次查看
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,237 次查看
yipingwang
NXP TechSupport
NXP TechSupport

Please refer to the attached document.

在原帖中查看解决方案

0 项奖励
回复
4 回复数
7,255 次查看
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,250 次查看
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,238 次查看
yipingwang
NXP TechSupport
NXP TechSupport

Please refer to the attached document.

0 项奖励
回复
7,231 次查看
xuedongyang
Contributor II

Thank you very much for providing the latest document.

0 项奖励
回复