Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(45)

Side by Side Diff: tests_lit/llvm2ice_tests/simple-loop.ll

Issue 695993004: Subzero: Switch to AT&T asm syntax. I give up. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Add opcode suffix to xchg. Use .L$ prefix for constant pool entries. Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « tests_lit/llvm2ice_tests/shift.ll ('k') | tests_lit/llvm2ice_tests/test_i1.ll » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 ; This tests a simple loop that sums the elements of an input array. 1 ; This tests a simple loop that sums the elements of an input array.
2 ; The O2 check patterns represent the best code currently achieved. 2 ; The O2 check patterns represent the best code currently achieved.
3 3
4 ; RUN: %p2i -i %s --args -O2 --verbose none \ 4 ; RUN: %p2i -i %s --args -O2 --verbose none \
5 ; RUN: | llvm-mc -triple=i686-none-nacl -x86-asm-syntax=intel -filetype=obj \ 5 ; RUN: | llvm-mc -triple=i686-none-nacl -filetype=obj \
6 ; RUN: | llvm-objdump -d -symbolize -x86-asm-syntax=intel - | FileCheck %s 6 ; RUN: | llvm-objdump -d -symbolize -x86-asm-syntax=intel - | FileCheck %s
7 ; RUN: %p2i -i %s --args -Om1 --verbose none \ 7 ; RUN: %p2i -i %s --args -Om1 --verbose none \
8 ; RUN: | llvm-mc -triple=i686-none-nacl -x86-asm-syntax=intel -filetype=obj \ 8 ; RUN: | llvm-mc -triple=i686-none-nacl -filetype=obj \
9 ; RUN: | llvm-objdump -d -symbolize -x86-asm-syntax=intel - \ 9 ; RUN: | llvm-objdump -d -symbolize -x86-asm-syntax=intel - \
10 ; RUN: | FileCheck --check-prefix=OPTM1 %s 10 ; RUN: | FileCheck --check-prefix=OPTM1 %s
11 ; RUN: %p2i -i %s --args --verbose none | FileCheck --check-prefix=ERRORS %s 11 ; RUN: %p2i -i %s --args --verbose none | FileCheck --check-prefix=ERRORS %s
12 12
13 define i32 @simple_loop(i32 %a, i32 %n) { 13 define i32 @simple_loop(i32 %a, i32 %n) {
14 entry: 14 entry:
15 %cmp4 = icmp sgt i32 %n, 0 15 %cmp4 = icmp sgt i32 %n, 0
16 br i1 %cmp4, label %for.body, label %for.end 16 br i1 %cmp4, label %for.body, label %for.end
17 17
18 for.body: 18 for.body:
(...skipping 28 matching lines...) Expand all
47 ; CHECK-NEXT: jl -{{[0-9]}} 47 ; CHECK-NEXT: jl -{{[0-9]}}
48 ; 48 ;
49 ; There's nothing remarkable under Om1 to test for, since Om1 generates 49 ; There's nothing remarkable under Om1 to test for, since Om1 generates
50 ; such atrocious code (by design). 50 ; such atrocious code (by design).
51 ; OPTM1-LABEL: simple_loop 51 ; OPTM1-LABEL: simple_loop
52 ; OPTM1: cmp {{.*}}, 0 52 ; OPTM1: cmp {{.*}}, 0
53 ; OPTM1: jg 53 ; OPTM1: jg
54 ; OPTM1: ret 54 ; OPTM1: ret
55 55
56 ; ERRORS-NOT: ICE translation error 56 ; ERRORS-NOT: ICE translation error
OLDNEW
« no previous file with comments | « tests_lit/llvm2ice_tests/shift.ll ('k') | tests_lit/llvm2ice_tests/test_i1.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698