Add some tests for optimization of booleans
authorAndy Ayers <andya@microsoft.com>
Wed, 4 May 2016 00:16:28 +0000 (17:16 -0700)
committerAndy Ayers <andya@microsoft.com>
Wed, 4 May 2016 00:16:28 +0000 (17:16 -0700)
commit356b7e190f4974419b090b1bbb17e74f62c07290
tree61ad56b6b995310a1cbb8f542a5005492523ca29
parent9a51a7efa645c96f3d8f7b24b8e711b258b5c606
Add some tests for optimization of booleans

Test case to stress inlining, expression opts, and control flow
simplification for booleans.

Test case has 100 methods named Idxx. All 100 should generate identical
code. On x64 windows we expect to get the 4 byte sequence
```
       0FB6C1               movzx    rax, cl
       C3                   ret
```

Only 22 of the variants get this codegen; there are at least 12 other
sequences ranging in size from 9 to 32 bytes of code.

Likely touches on the same issues raised in dotnet/coreclr#914.

Commit migrated from https://github.com/dotnet/coreclr/commit/8354d2b9b4c2b5dd6f3b111a93f05322007bb239
src/coreclr/tests/src/JIT/Methodical/inlining/boolean/InlineBool.cs [new file with mode: 0644]
src/coreclr/tests/src/JIT/Methodical/inlining/boolean/app.config [new file with mode: 0644]
src/coreclr/tests/src/JIT/Methodical/inlining/boolean/test.csproj [new file with mode: 0644]