No ACL setup yet! Denying access to everyone.
en:edu:zmitac:s1:apl:lab:lab4
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| en:edu:zmitac:s1:apl:lab:lab4 [2024/12/05 12:27] – ktokarz | en:edu:zmitac:s1:apl:lab:lab4 [2024/12/05 12:39] (current) – [Tasks to be done during laboratory] ktokarz | ||
|---|---|---|---|
| Line 111: | Line 111: | ||
| .code | .code | ||
| - | ; | + | ; |
| - | ; This function | + | ; Function to calculate the sum of two vectors |
| + | ; | ||
| ; | ; | ||
| Sum_of_vectors PROC | Sum_of_vectors PROC | ||
| Line 131: | Line 132: | ||
| ===== Tasks to be done during laboratory ===== | ===== Tasks to be done during laboratory ===== | ||
| - | - Compile the examples and observe their behaviour. Set the breakpoint at the beginning of the code and see how the contents of the registers change | + | - Compile the examples and observe their behaviour. Set the breakpoint at the beginning of the code and see how the contents of the registers change. Observe XMM registers as calculations are performed there. |
| - | - Write additional functions | + | - Write additional functions |
| + | - Write the program which calculates the average of the values in the table using vector (SIMD) instructions. Program assumptions: | ||
| + | * Table contains 64 float values and is defined in C++ file. | ||
| + | * And address of the table is passed to the function as the first argument. | ||
| + | * A size of the table is passed as a second argument (you can assume that the size of the table is a multiply of 4). | ||
| + | * Function uses SIMD instructions. | ||
| + | * Function returns the value as the scalar, traditionally by XMM0. | ||
| + | |||
| + | =====For the report===== | ||
| + | - Include the code of additional functions. | ||
| + | - Include the code of the average program (both C++ and asm files). | ||
| + | - The above programs must contain comments. | ||
en/edu/zmitac/s1/apl/lab/lab4.1733398064.txt.gz · Last modified: by ktokarz
