diff options
author | Chad Rosier <mcrosier@apple.com> | 2012-07-31 18:29:21 +0000 |
---|---|---|
committer | Chad Rosier <mcrosier@apple.com> | 2012-07-31 18:29:21 +0000 |
commit | d97f3a5ab084485fe4931b6e7d8fa40ae4caa3c1 (patch) | |
tree | e9ae413e4e8c9db42d4b7487eefb3dfa87a9428a /test | |
parent | 521ed460e9a2c4821987cdfd62f68720d2c40ccd (diff) |
[x86 frame lowering] In 32-bit mode, use ESI as the base pointer.
Previously, we were using EBX, but PIC requires the GOT to be in EBX before
function calls via PLT GOT pointer.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@161066 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/CodeGen/X86/force-align-stack-alloca.ll | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/CodeGen/X86/force-align-stack-alloca.ll b/test/CodeGen/X86/force-align-stack-alloca.ll index 4ab906797a..2ada194f89 100644 --- a/test/CodeGen/X86/force-align-stack-alloca.ll +++ b/test/CodeGen/X86/force-align-stack-alloca.ll @@ -24,8 +24,8 @@ define i64 @g(i32 %i) nounwind { ; CHECK-NEXT: andl $-32, %esp ; CHECK-NEXT: subl $32, %esp ; -; Now setup the base pointer (%ebx). -; CHECK-NEXT: movl %esp, %ebx +; Now setup the base pointer (%esi). +; CHECK-NEXT: movl %esp, %esi ; CHECK-NOT: {{[^ ,]*}}, %esp ; ; The next adjustment of the stack is due to the alloca. |