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

Side by Side Diff: tests_lit/llvm2ice_tests/local-cse.ll

Issue 1997443002: Subzero: Initial implementation of BB Local CSE (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Modify test for x8632 and 64 to check with and without local-cse Created 4 years, 7 months 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
« src/IceCfg.cpp ('K') | « src/IceTimerTree.def ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 ;Tests local-cse on x8632 and x8664
2 ; RUN: %p2i -i %s --filetype=asm --target x8632 --args -threads=0 \
Jim Stichnoth 2016/05/23 16:52:57 1. Instead of "--filetype=asm", use "--filetype=ob
manasijm 2016/05/23 23:13:30 Done.
3 ; RUN: -O2 -enable-experimental | FileCheck --check-prefix X8632EXP %s
4
5 ; RUN: %p2i -i %s --filetype=asm --target x8632 --args -threads=0 \
6 ; RUN: -O2 | FileCheck --check-prefix X8632 %s
7
8 ; RUN: %p2i -i %s --filetype=asm --target x8664 --args -threads=0 \
9 ; RUN: -O2 -enable-experimental | FileCheck --check-prefix X8664EXP %s
10
11 ; RUN: %p2i -i %s --filetype=asm --target x8664 --args -threads=0 \
12 ; RUN: -O2 | FileCheck --check-prefix X8664 %s
13
14
15 define internal i32 @local_cse_test(i32 %a, i32 %b) {
16 entry:
17 %add1 = add i32 %b, %a
18 %add2 = add i32 %b, %a
19 %add3 = add i32 %add1, %add2
20 ret i32 %add3
21 }
22 ; X8632: addl
Jim Stichnoth 2016/05/23 16:52:57 There is a lot of repetition of fixed patterns in
manasijm 2016/05/23 23:13:30 Done.
23 ; X8632: addl
24 ; X8632: addl
25 ; X8632: ret
26
27 ; X8632EXP: addl
28 ; X8632EXP: addl
29 ; X8632EXP-NOT: addl
30 ; X8632EXP: ret
31
32 ; X8664: addl
33 ; X8664: addl
34 ; X8664: addl
35 ; X8664: ret
36
37 ; X8664EXP: addl
38 ; X8664EXP: addl
39 ; X8664EXP-NOT: addl
40 ; X8664EXP: ret
41
Jim Stichnoth 2016/05/23 16:52:57 Remove trailing whitespace (i.e. blank line at the
manasijm 2016/05/23 23:13:30 Done.
OLDNEW
« src/IceCfg.cpp ('K') | « src/IceTimerTree.def ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698