aboutsummaryrefslogtreecommitdiffhomepage
path: root/ptx/src/test/spirv_run/setp_leu.ptx
blob: be7538ae3033b2c7012247a92fc69cbca6262f23 (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
.version 6.5
.target sm_30
.address_size 64

.visible .entry setp_leu(
	.param .u64 input,
	.param .u64 output
)
{
	.reg .u64 	    in_addr;
    .reg .u64 	    out_addr;
    .reg .f32 	    r1;
    .reg .f32 	    r2;
    .reg .f32 	    r3;
    .reg .pred 	    pred;

	ld.param.u64 	in_addr, [input];
    ld.param.u64 	out_addr, [output];

    ld.f32              r1, [in_addr];
    ld.f32              r2, [in_addr + 4];
	setp.leu.ftz.f32    pred, r1, r2;
    @pred mov.f32       r3, r1;
    @!pred mov.f32      r3, r2;
    st.f32              [out_addr], r3;
	ret;
}