ds_read_offset

This commit is contained in:
Jing Zhang
2019-04-26 15:55:26 -05:00
parent 3ce77700b6
commit 49d5af1002
2 changed files with 393 additions and 137 deletions

12
script/ds_read_offset.sh Executable file
View File

@@ -0,0 +1,12 @@
for((i=0;i<=4096;i=i+64))
do
OFFSET=$i
echo "if(offset == $OFFSET)"
echo "{"
echo " asm volatile(\"\\n \\"
echo " ds_read_b128 %0, %1 offset:$OFFSET\n \\"
echo " \""
echo " : \"=v\"(r)"
echo " : \"v\"(__to_local(lds)));"
echo "}"
done