Merge pull request #2389 from WalterBright/fix10715

fix Issue 10715 - negated bit test (bt) not recognized by optimizer