wasmer/lib/emscripten/emtests/test_simd14.c

24 lines
503 B
C
Raw Normal View History

2018-12-27 07:46:41 +00:00
/*
* Copyright 2015 The Emscripten Authors. All rights reserved.
* Emscripten is available under two separate licenses, the MIT license and the
* University of Illinois/NCSA Open Source License. Both these licenses can be
* found in the LICENSE file.
*/
#include <stdio.h>
#include <xmmintrin.h>
void __attribute__((noinline)) foo(__m128 vec, __m128 &outLength)
{
outLength = vec;
}
int main()
{
puts("before");
__m128 x;
foo(_mm_set1_ps(1.f), x);
printf("%.2f", x[0]);
}