summaryrefslogtreecommitdiff
path: root/reference/face.asm
blob: d7e2e1c513f4e01de082e6dcb1ee9d60cb57c136 (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(hr0.x)	in0
@out(r1.x)	out0
@out(r1.y)	out1
@out(r1.z)	out2
@out(r1.w)	out3
@const(c0.x)	0x3f000000, 0x00000000, 0x00000000, 0x00000000
@const(c1.x)	0x3f800000, 0x00000000, 0x00000000, 0x00000000
(sy)(ss)mul.s r0.x, hr0.x, 2
(rpt2)nop
add.s r0.x, r0.x, 1
(rpt2)nop
cov.s32f32 r0.x, r0.x
(rpt2)nop
max.f r0.x, r0.x, c0.y
(rpt2)nop
min.f r0.x, r0.x, c1.x
(rpt2)nop
mul.f r1.x, c0.x, r0.x
(rpt2)nop
mov.f32f32 r1.w, r1.x
mov.f32f32 r1.z, r1.x
mov.f32f32 r1.y, r1.x
end
; FRAG: outputs: r1.x (1:0)
; FRAG: inputs: r63.y (7:0,cm=f,il=8,b=0)
; FRAG: 28 instructions, 1 half, 2 full