[x86/SLH] Add a test covering indirect forms of control flow. NFC.
commit83164ba143f48109b0c730a3bb5ba0fa1c0a7a6b
authorChandler Carruth <chandlerc@gmail.com>
Mon, 23 Jul 2018 07:51:51 +0000 (23 07:51 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Mon, 23 Jul 2018 07:51:51 +0000 (23 07:51 +0000)
tree94007fa62bcb4520759b286697ec253bc1a9aa8e
parentd063cfe5ccb6c9c42bb352d7213ddbfa880af953
[x86/SLH] Add a test covering indirect forms of control flow. NFC.

This specifically covers different ways of making indirect calls and
jumps. There are some bugs in SLH that I will be fixing in subsequent
patches where the diff in the generated instructions makes the bug fix
much more clear, so just checking in a baseline of this test to start.

I'm also going to be adding direct mitigation for variant 1.2 which this
file very specifically tests in the various forms it can arise on x86.
Again, the diff to the generated instructions should make the change for
that much more clear, so having the test as a baseline seems useful.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@337672 91177308-0d34-0410-b5e6-96231b3b80d8
test/CodeGen/X86/speculative-load-hardening-indirect.ll [new file with mode: 0644]