Difference between "fnop" and "nop" assembly instructions

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Difference between "fnop" and "nop" assembly instructions

Jump to solution
7,819 Views
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 Kudos
Reply
1 Solution
7,775 Views
yipingwang
NXP TechSupport
NXP TechSupport

Please refer to the attached document.

View solution in original post

0 Kudos
Reply
4 Replies
7,793 Views
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 Kudos
Reply
7,788 Views
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 Kudos
Reply
7,776 Views
yipingwang
NXP TechSupport
NXP TechSupport

Please refer to the attached document.

0 Kudos
Reply
7,769 Views
xuedongyang
Contributor II

Thank you very much for providing the latest document.

0 Kudos
Reply