1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
; options: --half-precision
; FRAG: new compiler
@in(r0.x) in0
@in(r0.y) in1
@out(hr0.w) out0
@out(hr1.x) out1
@out(hr1.y) out2
@out(hr1.z) out3
@const(c0.x) 0x00000000, 0x00000000, 0x00000000, 0x00000000
(sy)(ss)bary.f r1.w, 0, r0.x
bary.f (ei)r2.x, 1, r0.x
(rpt5)nop
sam (f16)(xyzw)hr0.w, r1.w, s#0, t#0
end
nop
nop
nop
; FRAG: outputs: r0.w (1:0)
; FRAG: inputs: r0.x (19:0,cm=f,il=8,b=1)
; FRAG: 10 instructions, 2 half, 3 full
|