summaryrefslogtreecommitdiff
path: root/reference/fragProg1/fragProg1-17.asm
blob: ee3ea368b71ab244f06f6fd13cecf6da9c1b5a3f (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
; options:
; FRAG: new compiler
@out(r1.x)	out0
@out(r1.y)	out1
@out(r1.z)	out2
@out(r1.w)	out3
@const(c1.x)	0x3f000000, 0x00000000, 0x00000000, 0x00000000
@const(c2.x)	0x00000000, 0x3f800000, 0x43000000, 0x00000000
(sy)(ss)mov.f32f32 r0.x, c0.x
mov.f32f32 r0.y, c0.y
mov.f32f32 r0.z, c0.z
nop
mul.f r0.x, r0.x, r0.x
nop
mad.f32 r0.x, r0.y, r0.y, r0.x
nop
mad.f32 r0.x, r0.z, r0.z, r0.x
(rpt2)nop
mul.f r1.w, r0.x, c1.x
mul.f r1.z, r0.x, c1.x
mul.f r1.y, r0.x, c1.x
mul.f r1.x, r0.x, c1.x
end
nop
; FRAG: outputs: r1.x (1:0)
; FRAG: inputs:
; FRAG: 17 instructions, 0 half, 2 full