Function funct3 has the following prototype: double funct3(int *ap, double b, long c, float *dp); For this
Question:
Function funct3 has the following prototype:
double funct3(int *ap, double b, long c, float *dp);
For this function, gcc generates the following code:
Transcribed Image Text:
1 2 3 4 لیا 5 6 7 8 9 10 11 12 13 14 15 16 17 double funct3(int *ap, double b, long c, float *dp) ap in %rdi, b in %xmmo, c in %rsi, dp in %rdx funct3: vmovss (%rdx), %xmm1 vcvtsi2sd vucomisd jbe vunpcklps vcvtps2pd ret .L8 vcvtsi2ssq vmulss %xmm1, %xmm0, %xmm1 .L8: (%rdi), %xmm2, %xmm2 %xmm2, %xmmo %rsi, %xmm0, %xmmo vunpcklps vcvtps2pd ret vaddss %xmm1, %xmm1, %xmm 1 %xmm1, %xmm1, %xmm1 %xmm1, %xmmo vcvtsi2ssq vaddss %xmm1, %xmm0, %xmmo %rsi, %xmm0, %xmmo %xmm0, %xmmo, %zmmo %xmmo, %xmmo Write a C version of funct3.
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Answer rating: 50% (2 reviews)
Again we annotate the code including dealing with the con...View the full answer
Answered By
Stephen ouma
I have worked with different academic writing companies such as wriredom, writerbay, and Upwork. While working with these companies, I have helped thousands of students achieve their academic dreams. This is what I also intend to do here in SolutionInn
4.90+
19+ Reviews
63+ Question Solved
Related Book For
Computer Systems A Programmers Perspective
ISBN: 9781292101767
3rd Global Edition
Authors: Randal E. Bryant, David R. O'Hallaron
Question Posted:
Students also viewed these Computer science questions
-
This assignment reviews object-oriented programming concepts such as classes, methods, constructors, accessor methods, and access modifiers. It makes use of an array of objects as a class data...
-
Can you help me change this in c++ update your payroll program to use a C++ class. Each employee class object should hold the master file information for one employee. You can assume that the company...
-
Assignment 5: Hash Table implementation andconcordance There are three parts to this assignment. In the first two parts,you will complete the implementation of a hash map and aconcordance program. In...
-
Onefifth of a hive of bees flew to the Kadamba flower; one-third flew to the Silandhara; three times the difference of these two numbers flew to an arbor, and one bee continued flying about,...
-
The following issues are related to the accuracy and reliability of financial plans. Explain the process/issues related to each. Top-down versus bottom-up planning Plans as statements of goals...
-
What is a futures contract? What are the key differences between forward and futures contracts?
-
Using rules of thumb for a \(200 \mathrm{~m}^{2}\) floor area Denver residence, determine (a) the auxiliary heating energy required, (b) the solar projected area, (c) the concrete storage mass needed...
-
Boyne University offers an extensive continuing education program in many cities throughout the state. For the convenience of its faculty and administrative staff and to save costs, the university...
-
Prepare the closing entries and perform the Post-closing trial balance . Trial adjusted balance Account Balance Accounts receivable 119,000 Prepaid insurance 25,000 Materials (supplies) 3,850 Cash...
-
Determine the byte encoding of the Y86-64 instruction sequence that follows. The line .pos 0x100 indicates that the starting address of the object code should be 0x100. .pos 0x100 # Start code at...
-
Consider the following program: A. How many output lines does this program generate? B. What is one possible ordering of these output lines? 1 int main() 2 { WN 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17...
-
Many Bober has a homeowner insurance policy with a value of $500,000. His masonry home is located in zone 2. Use the rates in Table 19 - 4 to compare the cost of this annual premium based on which...
-
Develop a short service quality improvement plan for the police department as a set of instructions from improving its service quality.
-
Why and should companies and/or organizations encourage union membership ? How does this proactive measurepresent them in a favorable light?
-
What are the 3 basic components of every nucleotide? a. Write the complementary base sequence for the above sequence of DNA. b. Write the m RNA sequence for the original sequence of DNA.
-
What was a result of passing Bill 88, the Electronic Commerce Act, in Ontario? 1. It allowed the outsourcing of payroll 2. It limited the ability of employers to take deductions of employees 3. It...
-
Provide examples of how you would approach multiple means of expression to show mastery.
-
A 16.0-g sample of methane (CH 4 ) reacts with 64.0 g of oxygen gas in a container fitted with a piston (at 1.00 atm and 425 K). Methane can react with oxygen to form carbon dioxide and water vapor...
-
Which one of the following anhydrous chloride is not obtained on direct heating of its hydrated chloride? (A) BaCl2 (B) CaClz (C) MgCl2 (D) SrCl2
-
Assume 151 and 214 are signed 8-bit decimal integers stored in twos complement format. Calculate 151 + 214 using saturating arithmetic. The result should be written in decimal. Show your work.
-
Using a table similar to that shown in Figure 3.6, calculate the product of the octal unsigned 6-bit integers 62 and 12 using the hardware described in Figure 3.3. You should show the contents of...
-
Using a table similar to that shown in Figure 3.6, calculate the product of the hexadecimal unsigned 8-bit integers 62 and 12 using the hardware described in Figure 3.5. You should show the contents...
-
All techniques in Java are dynamic polymorphic as a plan decision. Talk about the benefits and disservices of making dynamic polymorphism discretionary for Java techniques. Segment C 5 Numerical...
-
Why is there a risk of data and control hazards in a pipelined processor? For modern RISC instruction set architectures like RISC-V, why are control hazards not exposed in the programming model? [4...
-
Assume that you have an algorithm that can fill 3D triangles with a constant colour. Explain what additional information and additions to the algorithm are required to Gouraud shade the triangles....
Study smarter with the SolutionInn App