File size: 278 Bytes
dffe123
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include <stdio.h>
#include <lsxintrin.h>

int test()
{
    const float src[] = { 0.0f, 1.0f, 2.0f, 3.0f};
    v4f32 val = (v4f32)__lsx_vld((const float*)(src), 0);
    return __lsx_vpickve2gr_w(__lsx_vftint_w_s(val), 3);
}

int main()
{
  printf("%d\n", test());
  return 0;
}