diff options
| author | Reid Kleckner <rnk@google.com> | 2017-11-30 22:41:21 +0000 |
|---|---|---|
| committer | Reid Kleckner <rnk@google.com> | 2017-11-30 22:41:21 +0000 |
| commit | ba4014e9dce96618ab4d8f820447df2a86023b74 (patch) | |
| tree | 378fd33b9c4ff2742645fa7f05fb1f2f8da439a3 /llvm/test/CodeGen/X86/stack-protector-weight.ll | |
| parent | 669cae1f28fee3b02ca536181279cf4bbf2314d2 (diff) | |
| download | bcm5719-llvm-ba4014e9dce96618ab4d8f820447df2a86023b74.tar.gz bcm5719-llvm-ba4014e9dce96618ab4d8f820447df2a86023b74.zip | |
XOR the frame pointer with the stack cookie when protecting the stack
Summary: This strengthens the guard and matches MSVC.
Reviewers: hans, etienneb
Subscribers: hiraditya, JDevlieghere, vlad.tsyrklevich, llvm-commits
Differential Revision: https://reviews.llvm.org/D40622
llvm-svn: 319490
Diffstat (limited to 'llvm/test/CodeGen/X86/stack-protector-weight.ll')
| -rw-r--r-- | llvm/test/CodeGen/X86/stack-protector-weight.ll | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/test/CodeGen/X86/stack-protector-weight.ll b/llvm/test/CodeGen/X86/stack-protector-weight.ll index d5a65ffb890..c547012d79c 100644 --- a/llvm/test/CodeGen/X86/stack-protector-weight.ll +++ b/llvm/test/CodeGen/X86/stack-protector-weight.ll @@ -21,10 +21,11 @@ ; MSVC-SELDAG: LD4[FixedStack0] ; MSVC-SELDAG: CALLpcrel32 <ga:@__security_check_cookie> +; MSVC always uses selection DAG now. ; MSVC-IR: # Machine code for function test_branch_weights: ; MSVC-IR: mem:Volatile LD4[@__security_cookie] ; MSVC-IR: ST4[FixedStack0] -; MSVC-IR: LD4[%StackGuardSlot] +; MSVC-IR: LD4[FixedStack0] ; MSVC-IR: CALLpcrel32 <ga:@__security_check_cookie> define i32 @test_branch_weights(i32 %n) #0 { |

