diff options
author | Chad Rosier <mcrosier@apple.com> | 2013-02-19 23:50:45 +0000 |
---|---|---|
committer | Chad Rosier <mcrosier@apple.com> | 2013-02-19 23:50:45 +0000 |
commit | b86f1e5e557f8a00209eef1c6ecb4532b33d7738 (patch) | |
tree | 4e5f4b2ded8e1ddb4ee6091f1e7473f6a845627f /test/CodeGen/X86 | |
parent | 2f87fed2479017589051a5a99277e4278f6372e3 (diff) | |
download | external_llvm-b86f1e5e557f8a00209eef1c6ecb4532b33d7738.zip external_llvm-b86f1e5e557f8a00209eef1c6ecb4532b33d7738.tar.gz external_llvm-b86f1e5e557f8a00209eef1c6ecb4532b33d7738.tar.bz2 |
[ms-inline asm] Force the use of a base pointer if the MachineFunction includes
MS-style inline assembly.
This is a follow-on to r175334. Forcing a FP to be emitted doesn't ensure it
will be used. Therefore, force the base pointer as well. We now treat MS
inline assembly in the same way we treat functions with dynamic stack
realignment and VLAs. This guarantees the BP will be used to reference
parameters and locals.
rdar://13218191
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@175576 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86')
-rw-r--r-- | test/CodeGen/X86/ms-inline-asm.ll | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/CodeGen/X86/ms-inline-asm.ll b/test/CodeGen/X86/ms-inline-asm.ll index eca1746..5048a93 100644 --- a/test/CodeGen/X86/ms-inline-asm.ll +++ b/test/CodeGen/X86/ms-inline-asm.ll @@ -103,8 +103,8 @@ entry: ; CHECK: {{## InlineAsm End|#NO_APP}} ; CHECK: {{## InlineAsm Start|#APP}} ; CHECK: .intel_syntax -; CHECK: mov dword ptr [ebp - 8], edi +; CHECK: mov dword ptr [esi], edi ; CHECK: .att_syntax ; CHECK: {{## InlineAsm End|#NO_APP}} -; CHECK: movl -8(%ebp), %eax +; CHECK: movl (%esi), %eax } |