6. Suppose x<sub>s</sub>, the address of integer(int type) array S(4 byte), and long integer index i are stored in register %rdx and %rcx,
respectively. For each of the following expressions, give its type, a formula for its value, and an assembly-code
implementation. The result should be stored in register %rax if it is a pointer and register element %eax if it has data type
int. 12 Points (one point for each)
Fill-in with blue color
Expression
S+2
S[4]
&S[i]
S[2*i+2]
Type
Value
Assembly code