Consider the following C program fragment dealing with floating-point values: a[i] = p * q; c =

Question:

Consider the following C program fragment dealing with floating-point values:
a[i] = p * q;
c = a[j];
The compiler cannot establish that I ≠ j, but has reason to believe that it probably is.
a. Write an IA-64 program using an advanced load to implement this C program. The floating-point load and multiply instructions are ldf and fmpy, respectively.
b. Recode the program using predication instead of the advanced load.
c. What are the advantages and disadvantages of the two approaches compared with each other?
Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: