Intrinsics: tests for TMC+Control Divergence

This commit is contained in:
felsabbagh3
2019-11-01 21:53:37 -04:00
parent 2b9f6f3d0b
commit bbb2373919
14 changed files with 588 additions and 260 deletions

View File

@@ -22,3 +22,13 @@ unsigned vx_threadID(void);
// Get hardware warp ID
unsigned vx_warpID(void);
#define __if(b) vx_split(b); \
if (b) \
#define __else else
#define __endif vx_join();

View File

@@ -27,6 +27,7 @@ vx_barrier:
.global vx_split
vx_split:
.word 0x0005206b # split a0
ret
.type vx_join, @function
.global vx_join