Created
January 30, 2012 00:55
-
-
Save jacobtolar/1701694 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mov.u32 %r6, 0; | |
setp.eq.s32 %p1, %r5, %r6; ; bc == 0? | |
@%p1 bra $Lt_0_258; | |
mov.u32 %r7, 1; | |
setp.eq.s32 %p2, %r5, %r7; ; bc == 1? | |
@%p2 bra $Lt_0_770; | |
mov.u32 %r8, 2; | |
setp.eq.s32 %p3, %r5, %r8; ; bc == 2? | |
@%p3 bra $Lt_0_1026; | |
mov.u32 %r9, 3; | |
setp.eq.s32 %p4, %r5, %r9; ; bc == 3? | |
@%p4 bra $Lt_0_1282; | |
mov.s32 %r10, %r11; | |
mov.s32 %r12, %r13; | |
bra.uni $Lt_0_514; ; default case | |
$Lt_0_258: | |
.loc 16 10 0 | |
mov.u32 %r14, %ctaid.x; | |
mul.lo.u32 %r12, %r14, 2; ; mbw = blkIdx.x*2 | |
.loc 16 11 0 | |
mov.u32 %r15, %ctaid.y; | |
mul.lo.u32 %r10, %r15, 2; ; mbh = blkIdx.y*2 | |
.loc 16 12 0 | |
bra.uni $Lt_0_514; ; branch to end | |
$Lt_0_770: | |
.loc 16 14 0 | |
mov.u32 %r16, %ctaid.x; ; etc, etc, etc | |
mul.lo.u32 %r17, %r16, 2; | |
add.s32 %r12, %r17, 1; | |
.loc 16 15 0 | |
mov.u32 %r18, %ctaid.y; ; I can't figure out how to make | |
mul.lo.u32 %r10, %r18, 2; ; gists scrollable :-( | |
.loc 16 16 0 | |
bra.uni $Lt_0_514; | |
$Lt_0_1026: | |
.loc 16 18 0 | |
mov.u32 %r19, %ctaid.x; | |
mul.lo.u32 %r12, %r19, 2; | |
.loc 16 19 0 | |
mov.u32 %r20, %ctaid.y; | |
mul.lo.u32 %r 21, %r20, 2; | |
add.s32 %r10, %r21, 1; | |
.loc 16 20 0 | |
bra.uni $Lt_0_514; | |
$Lt_0_1282: | |
.loc 16 22 0 | |
mov.u32 %r22, %ctaid.x; | |
mul.lo.u32 %r23, %r22, 2; | |
add.s32 %r12, %r23, 1; | |
.loc 16 23 0 | |
mov.u32 %r24, %ctaid.y; | |
mul.lo.u32 %r25, %r24, 2; | |
add.s32 %r10, %r25, 1; | |
$Lt_0_514: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment