summaryrefslogtreecommitdiff
path: root/reference/fragProg1/fragProg1-16.asm
blob: 9bf4264d691db62488f145d2019a10f8b10ec45c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
; options:
; FRAG: new compiler
@in(r0.x)	in0
@in(r0.y)	in1
@out(r1.x)	out0
@out(r1.y)	out1
@out(r1.z)	out2
@out(r1.w)	out3
@const(c1.x)	0x00000000, 0x3f800000, 0x43000000, 0x00000000
(sy)(ss)bary.f r0.z, 0, r0.x
bary.f r0.w, 1, r0.x
bary.f (ei)r0.x, 2, r0.x
nop
mul.f r0.y, c0.x, r0.z
nop
mad.f32 r0.y, c0.y, r0.w, r0.y
(rpt2)nop
mov.f32f32 r0.z, r0.y
mad.f32 r1.x, c0.z, r0.x, r0.y
mad.f32 r1.w, c0.z, r0.x, r0.z
mad.f32 r1.z, c0.z, r0.x, r0.z
mad.f32 r1.y, c0.z, r0.x, r0.z
end
nop
nop
; FRAG: outputs: r1.x (1:0)
; FRAG: inputs: r0.x (1:0,cm=f,il=8,b=1)
; FRAG: 16 instructions, 0 half, 2 full