5.86 · exercise

Predict: ARMv8 assembly

Predict the register values and flags these AArch64 snippets leave behind.

0 of 4 correct

Predict the result

// sp holds 0x8000 on entry to main
stp x29, x30, [sp, -32]!
mov x29, sp

Predict the result

mov w1, 14
mov w2, 3
sdiv w0, w1, w2

Predict the result

mov x22, 10
mov x23, 0
udiv x21, x22, x23

Predict the result

mov x1, 7
mov x2, 7
cmp x1, x2
b.eq top