Displaying 2 results from an estimated 2 matches for "r1_0".
Did you mean:
r10
2005 Jul 27
3
[LLVMdev] How to define complicated instruction in TableGen (Direct3D shader instruction)
...class SourceModifier : Operand<i8> {}
def SM: SourceModifier ;
def ADD<0x01, (ops
GPR:$dest, ops WM:$wm, IM:$im,
GPR:$src0, SW:$sw0, SM:$sm0,
GPR:$src1, SW:$sw1 SM:$sm1 ), ... >
2. add llvm intrinsics:
; add_sat r0.a, r1_bias.xxyy, r3_x2.zzzz
r1_1 = llvm.bias( r1_0 )
r1_2 = llvm.shuffle( xxyy )
r3_1 = llvm.x2( r3_0 )
r3_2 = llvm.shuffle( zzzz )
r0_0 = add r1_2, r3_2
r0_1 = llvm.sature( r0_0 )
r0_2 = llvm.select( a )
but it makes the implementing the instruction selector very diffifult.
in this example, llvm.select() and llvm.sature() are encounte...
2005 Jul 29
0
[LLVMdev] How to define complicated instruction in TableGen (Direct3D shader instruction)
...f SM: SourceModifier ;
>
> def ADD<0x01, (ops
> GPR:$dest, ops WM:$wm, IM:$im,
> GPR:$src0, SW:$sw0, SM:$sm0,
> GPR:$src1, SW:$sw1 SM:$sm1 ), ... >
>
> 2. add llvm intrinsics:
>
> ; add_sat r0.a, r1_bias.xxyy, r3_x2.zzzz
> r1_1 = llvm.bias( r1_0 )
> r1_2 = llvm.shuffle( xxyy )
> r3_1 = llvm.x2( r3_0 )
> r3_2 = llvm.shuffle( zzzz )
> r0_0 = add r1_2, r3_2
> r0_1 = llvm.sature( r0_0 )
> r0_2 = llvm.select( a )
>
> but it makes the implementing the instruction selector very diffifult.
> in this example,...