wasmer/lib/emscripten/emtests/test_simd14.c
2019-01-10 21:38:10 -08:00

24 lines
503 B
C
Vendored

/*
* 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]);
}