Question

Assume the following code is executed on the PIPE machine that does forwarding: 0x000: . pos 0x000: 30f65800000000000000 irmo

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Answer: c irmovq $0, %rax

Explanation:

The values in %rsi and %rdi are 0c00.... and 0800.... Respectively

The result for subq %rsi, %rdi will be positive will not update the negative flag

Therefore jl less is not executed, in which PC points to next instruction

So the next instruction that is executed after jl less is

irmovq $0, %rax.

Add a comment
Know the answer?
Add Answer to:
Assume the following code is executed on the PIPE machine that does forwarding: 0x000: . pos...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Assume the following code is executed on the PIPE machine that does forwarding: Охо00: pos irmovq num1,%rsi 0x000: 30f6...

    Assume the following code is executed on the PIPE machine that does forwarding: Охо00: pos irmovq num1,%rsi 0x000: 30f65800000000000000 | irmovq num2, *rdi mrmovq (%rsi), %rsi mrmovq (rdi), %rdi subq rdi, rsi j less 0x00a: 30f76000000000000000 0x014: 50660000000000000000 I 0x01e: 50770000000000000000 0x028: 6176 rsi rdi 0x02a: 724600000000000000 0x033: 30f00000000000000000 I irmovq s0, rax jmp done irmovq $1,rax 0x03d: 705000000000000000 0x046: 30f00100000000000000 | less: done: 0x050: 00 halt 0x058 .align 8 0x058: 0c00000000000000 num1: .quad 12 0x060: 0800000000000000 num2 8 penb...

  • Assume the following code is executed on the PIPE machine that does forwarding: 0x000: -pos 0x000:...

    Assume the following code is executed on the PIPE machine that does forwarding: 0x000: -pos 0x000: 30f65800000000000000 irmovg numi, prsi 0x00a: 30f76000000000000000 irmovq num2, Ardi ex014: 50660000000000000000 mrmova (%rsi), frsi exøle: 50770000000000000000 mrmova (rdi), Srdi 0x028: 6176 subq rdi, Ersi #*rsi - %rdi 0x02a: 724600000000000000 jl less 0x033: 30f00000000000000000 irmova $0, %rax 8x03d: 705000000000000000 jmp done 8x946: 30f00100000000000000 | less: irmovq $1, *rax 0x050: 00 | done: halt 0x058: .align 8 0x058: 00000000000000 num1: quad 12 0x060: 0800000000000000 num2: quad...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT