Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a C function for the following assembly unknown1: %xmm1, %xmm0 subss ret 2. unknown2: %xmm1, %xmm0 subsd ret unknown3: movaps %xmm0, cvtsd2ss addss %xmm0,

Write a C function for the following assembly

image text in transcribed

unknown1: %xmm1, %xmm0 subss ret 2. unknown2: %xmm1, %xmm0 subsd ret unknown3: movaps %xmm0, cvtsd2ss addss %xmm0, cvtss2sd movsd %xmm2, ret %xmm1 %xmm@ (%rdi), %xmm1 (Ardi) unknown4: movsd movapd subsd movsd movapd ret (Nrdi), %xmm1 %xmm1, %xmm2 %xmm0,%xmm2 %xmm2, (Ardi) %xmm1 , %xmm0 unknown5 pxor movl %xmm0,%xmm0 $0,%eax ?13 L14: %xmm1 %xmm1 movss mulss addss addq (%rdx, %rax,4), (Arsi,Srax,4), %xmm1, %xmm0 $1,%rax L13: cmpq %rdi, %rax jb rep ret ?14 unknown6: pxor movl %xmm0,%xmm0 $0,%eax ?10 L11 : %xmm1 %xmm1 movsd mulsd addsd addq (Ardx,Arax,8), (Arsi,Srax,8), %xmm1, %xmm0 $1,%rax L10: cmpq %rdi, %rax jb rep ret ?11

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Securing SQL Server Protecting Your Database From Attackers

Authors: Denny Cherry

1st Edition

1597496251, 978-1597496254

More Books

Students also viewed these Databases questions