search for: blendv

Displaying 4 results from an estimated 4 matches for "blendv".

Did you mean: blend
2011 Jun 01
4
[LLVMdev] AVX Status?
...lt;8 x float> @test1(<8 x float> %a, <8 x float> %b, <8 x i32> %m) nounwind readnone { entry: %cmp = tail call <8 x float> @llvm.x86.avx.cmp.ps.256(<8 x float> %a, <8 x float> %b, i8 1) nounwind readnone %res = tail call <8 x float> @llvm.x86.avx.blendv.ps.256(<8 x float> %a, <8 x float> %b, <8 x float> %cmp) nounwind readnone ret <8 x float> %res } This works fine and produces the expected assembly (VCMPLTPS + VBLENDVPS). On the other hand, this does not work: define <8 x float> @test2(<8 x float> %a, &l...
2011 Jun 02
0
[LLVMdev] AVX Status?
...(<8 x float> %a, <8 x float> %b, <8 x i32> %m) > nounwind readnone { > entry: >   %cmp = tail call <8 x float> @llvm.x86.avx.cmp.ps.256(<8 x float> %a, > <8 x float> %b, i8 1) nounwind readnone >   %res = tail call <8 x float> @llvm.x86.avx.blendv.ps.256(<8 x float> > %a, <8 x float> %b, <8 x float> %cmp) nounwind readnone >   ret <8 x float> %res > } > > This works fine and produces the expected assembly (VCMPLTPS + VBLENDVPS). > > On the other hand, this does not work: > > define <8 x...
2011 Jun 03
1
[LLVMdev] AVX Status?
...t;8 x float> %b,<8 x i32> %m) >> nounwind readnone { >> entry: >> %cmp = tail call<8 x float> @llvm.x86.avx.cmp.ps.256(<8 x float> %a, >> <8 x float> %b, i8 1) nounwind readnone >> %res = tail call<8 x float> @llvm.x86.avx.blendv.ps.256(<8 x float> >> %a,<8 x float> %b,<8 x float> %cmp) nounwind readnone >> ret<8 x float> %res >> } >> >> This works fine and produces the expected assembly (VCMPLTPS + VBLENDVPS). >> >> On the other hand, this does not wo...
2011 Jun 03
2
[LLVMdev] AVX Status?
...8 x float> %b, i8 1) nounwind readnone >>   %cast = bitcast <8 x float> %cmp to <8 x i32> >>   %mask = and <8 x i32> %cast, %m >>   %blend_cond = bitcast <8 x i32> %mask to <8 x float> >>   %res = tail call <8 x float> @llvm.x86.avx.blendv.ps.256(<8 x float> >> %a, <8 x float> %b, <8 x float> %blend_cond) nounwind readnone >>   ret <8 x float> %res >> } >> >> llc (latest trunk) bails out with: >> >> LLVM ERROR: Cannot select: 0x2510540: v8f32 = bitcast 0x2532270 [ID=1...