Merge pull request #2776 from yebblies/issue11508

Issue 11508 - [REG 2.064] Wrong code with -O on x86_64 for char comparisons