#include <stdio.h>
#include <c7x.h>
#include <c7x_scalable.h>
#include<iostream>

int main() {

     int32_t x;
     int32_t width =128;
    __bool64 predicateVar=bool64(1);
    __char64 vout_result_pu8;
    __short32 in0 = __short32(10, 20, 30, 40, 50, 60, 70, 80,90, 100, 110, 120, 130, 140, 150, 160,170, 180, 190, 200, 210, 220, 230, 240,250, 260, 270, 280, 290, 300, 310, 320);
    __short32 in1 = __short32(1, 2, 3, 4, 5, 6, 7, 8,9, 10, 11, 12, 13, 14, 15, 16,17, 18, 19, 20, 21, 22, 23, 24,25, 26, 27, 28, 29, 30, 31, 32);
    
#pragma UNROLL(1)
#pragma MUST_ITERATE(8, 64, 4)

    for (x=0; x < width; x += 64)
     {
        __vstore_packl_2src( &vout_result_pu8, in0, in1);
        ++vout_result_pu8;
     }
     
    for(x=0;x<64;x++){
     std::cout<<(int)vout_result_pu8.s[x]<<std::endl;
     }
     
    return 0;
 
}