search for: as_short2

Displaying 1 result from an estimated 1 matches for "as_short2".

2009 Sep 04
3
[LLVMdev] TOT opt does not terminate!
...nutes) If I generate the bit code (clang-cc -emit-llvmbc) and then run: opt -O3 foo.bc it does not terminate. //foo.c int get_id(int); typedef short short2 __attribute__ ((vector_size (2))); union _X { short2 s; int i; }; typedef union _X X; inline short2 as_short2(int x) { X result; result.i = x; return result.s; } inline int as_int(short2 x) { X result; result.s = x; return result.i; } void short2_int_swap( short2* b, int* c) { int gidx = get_id(0); short2 bval = b[gidx]; int cval = c[gi...