OLD | NEW |
---|---|
(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.
| |
OLD | NEW |