[X86] Add test cases for failures to use narrow test with immediate instructions...
authorCraig Topper <craig.topper@intel.com>
Fri, 28 Sep 2018 19:06:28 +0000 (19:06 +0000)
committerCraig Topper <craig.topper@intel.com>
Fri, 28 Sep 2018 19:06:28 +0000 (19:06 +0000)
commit98aa64342046d70105f031a13daac816f9e55943
tree1ea59b2071cc3facc2c463b40e9ed235c722fc5e
parentfc1852ff1cbdcdb69d82b97a9143a8069668efe0
[X86] Add test cases for failures to use narrow test with immediate instructions when a truncate is beteen the CMP and the AND and the sign flag is used.

The code in X86ISelDAGToDAG only looks through truncates if the sign flag isn't used, but that is overly restrictive. A future patch will improve this.

llvm-svn: 343355
llvm/test/CodeGen/X86/test-shrink.ll