| Index: tests_lit/llvm2ice_tests/simple-loop.ll
|
| diff --git a/tests_lit/llvm2ice_tests/simple-loop.ll b/tests_lit/llvm2ice_tests/simple-loop.ll
|
| index ded4a2826edd64e82ea4d8172f5e5f8a2f0abdfd..f747906d51570151e00a494efa9c74dc2da739d9 100644
|
| --- a/tests_lit/llvm2ice_tests/simple-loop.ll
|
| +++ b/tests_lit/llvm2ice_tests/simple-loop.ll
|
| @@ -1,12 +1,9 @@
|
| ; This tests a simple loop that sums the elements of an input array.
|
| ; The O2 check patterns represent the best code currently achieved.
|
|
|
| -; RUN: %p2i -i %s --args -O2 --verbose none \
|
| -; RUN: | llvm-mc -triple=i686-none-nacl -filetype=obj \
|
| -; RUN: | llvm-objdump -d -symbolize -x86-asm-syntax=intel - | FileCheck %s
|
| -; RUN: %p2i -i %s --args -Om1 --verbose none \
|
| -; RUN: | llvm-mc -triple=i686-none-nacl -filetype=obj \
|
| -; RUN: | llvm-objdump -d -symbolize -x86-asm-syntax=intel - \
|
| +; RUN: %p2i -i %s --assemble --disassemble --args -O2 --verbose none \
|
| +; RUN: | FileCheck %s
|
| +; RUN: %p2i -i %s --assemble --disassemble --args -Om1 --verbose none \
|
| ; RUN: | FileCheck --check-prefix=OPTM1 %s
|
|
|
| define i32 @simple_loop(i32 %a, i32 %n) {
|
| @@ -32,13 +29,13 @@ for.end:
|
| }
|
|
|
| ; CHECK-LABEL: simple_loop
|
| -; CHECK: mov ecx, dword ptr [esp{{.*}}+{{.*}}{{[0-9]+}}]
|
| +; CHECK: mov ecx,DWORD ptr [esp{{.*}}+{{.*}}{{[0-9]+}}]
|
| ; CHECK: cmp ecx, 0
|
| ; CHECK-NEXT: j{{le|g}} {{[0-9]}}
|
|
|
| ; Check for the combination of address mode inference, register
|
| ; allocation, and load/arithmetic fusing.
|
| -; CHECK: add e{{..}}, dword ptr [e{{..}} + 4*[[IREG:e..]]]
|
| +; CHECK: add e{{..}}, DWORD PTR [e{{..}}+4*[[IREG:e..]]]
|
| ; Check for incrementing of the register-allocated induction variable.
|
| ; CHECK-NEXT: add [[IREG]], 1
|
| ; Check for comparing the induction variable against the loop size.
|
|
|