Displaying 2 results from an estimated 2 matches for "v4f".
Did you mean:
14f
2009 Dec 17
2
[LLVMdev] AVX Shuffles & PatLeaf Help Needed
...In isSHUFPMask all we have is the SDNode of the shufflevector index vector.
Unfortunately, this tells us nothing about the type of the result vector.
If we have two operands, we obviously have a v2i/f64 vector. For eight
operands, we have a v8i/f32 vector. But for four operands we could have
a v4f/i32 or a v4f/i64. So we can't know the vector element size and thus
we can't map shufflevector indices valid ranges for output vector elements.
If I change isSHUFPMask to take an extra argument which is the result
vector type (or element type, or something similar), how would I express
th...
2009 Mar 05
1
[LLVMdev] Getting llvm-gcc to generate vectors
I wrote the following program:
#include <stdio.h>
int main() {
float a=1, b=2, c=3, d=4;
float e=1, f=2, g=3, h=4;
for (int i=0; i<1000000000; ++i) {
a += e;
b += f;
c += g;
d += h;
e /= a;
f /= b;
g /= c;
h /= d;
}
printf("%f %f %f %f\n", a, b, c, d);
return 0;
}
and compiled it with:
llvm-gcc -std=c99 -O3 -msse3 vector.c -o