]> granicus.if.org Git - llvm/commit
[X86] Add an extra instruction to TruncAssertSext.ll to prevent the 'or' from being...
authorCraig Topper <craig.topper@intel.com>
Tue, 12 Sep 2017 03:50:44 +0000 (03:50 +0000)
committerCraig Topper <craig.topper@intel.com>
Tue, 12 Sep 2017 03:50:44 +0000 (03:50 +0000)
commit2f8aabcbb03f69ee4449fc54eee949ef4f9bbf6b
tree717d4594aabb4c0162c91d44b3cb17fff0eccb5e
parent9022eeaa24764e8bf5eccf9137af8d89323a8355
[X86] Add an extra instruction to TruncAssertSext.ll to prevent the 'or' from being narrowed so that the movl is really required to avoid a miscompile.

If we allow the OR to be narrowed then the upper bits really are zero and we can't tell if the zeroing movl was removed on purpose.

While here regenerate the test with update_llc_test_checks.py

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@312995 91177308-0d34-0410-b5e6-96231b3b80d8
test/CodeGen/X86/TruncAssertSext.ll