bitwise test for -1 index