OLD | NEW |
1 ; This test originally exhibited a bug in ebp-based stack slots. The | 1 ; This test originally exhibited a bug in ebp-based stack slots. The |
2 ; problem was that during a function call push sequence, the esp | 2 ; problem was that during a function call push sequence, the esp |
3 ; adjustment was incorrectly added to the stack/frame offset for | 3 ; adjustment was incorrectly added to the stack/frame offset for |
4 ; ebp-based frames. | 4 ; ebp-based frames. |
5 | 5 |
6 ; TODO(kschimpf) Find out why lc2i is needed. | 6 ; TODO(kschimpf) Find out why lc2i is needed. |
7 ; REQUIRES: allow_llvm_ir_as_input | 7 ; REQUIRES: allow_llvm_ir_as_input |
8 ; RUN: %lc2i -i %s --args -Om1 --target=x8632 --verbose none \ | 8 ; RUN: %lc2i -i %s --args -Om1 --target=x8632 --verbose none \ |
9 ; RUN: | llvm-mc -triple=i686-none-nacl -filetype=obj \ | 9 ; RUN: | llvm-mc -triple=i686-none-nacl -filetype=obj \ |
10 ; RUN: | llvm-objdump -d --symbolize -x86-asm-syntax=intel - | FileCheck %s | 10 ; RUN: | llvm-objdump -d --symbolize -x86-asm-syntax=intel - | FileCheck %s |
(...skipping 26 matching lines...) Expand all Loading... |
37 ; CHECK: mov dword ptr [ebp - 12], eax | 37 ; CHECK: mov dword ptr [ebp - 12], eax |
38 ; CHECK: movzx eax, byte ptr [ebp - 4] | 38 ; CHECK: movzx eax, byte ptr [ebp - 4] |
39 ; CHECK: mov dword ptr [ebp - 16], eax | 39 ; CHECK: mov dword ptr [ebp - 16], eax |
40 ; CHECK: sub esp, 16 | 40 ; CHECK: sub esp, 16 |
41 ; CHECK: mov eax, dword ptr [ebp + 8] | 41 ; CHECK: mov eax, dword ptr [ebp + 8] |
42 ; CHECK: mov dword ptr [esp], eax | 42 ; CHECK: mov dword ptr [esp], eax |
43 ; CHECK: mov eax, dword ptr [ebp - 12] | 43 ; CHECK: mov eax, dword ptr [ebp - 12] |
44 ; CHECK: mov dword ptr [esp + 4], eax | 44 ; CHECK: mov dword ptr [esp + 4], eax |
45 ; CHECK: mov eax, dword ptr [ebp - 16] | 45 ; CHECK: mov eax, dword ptr [ebp - 16] |
46 ; CHECK: mov dword ptr [esp + 8], eax | 46 ; CHECK: mov dword ptr [esp + 8], eax |
47 ; CHECK: call -4 | 47 ; CHECK: call memcpy_helper2 |
OLD | NEW |