2011-03-08 10:42:25 +08:00
|
|
|
; Without list-burr scheduling we may not see the difference in codegen here.
|
2012-04-24 05:39:35 +08:00
|
|
|
; Use a subtarget that has post-RA scheduling enabled because the anti-dependency
|
|
|
|
; breaker requires liveness information to be kept.
|
2017-08-02 08:28:10 +08:00
|
|
|
; RUN: llc < %s -mtriple=x86_64-- -mcpu=atom -enable-misched=false -post-RA-scheduler -pre-RA-sched=list-burr -break-anti-dependencies=none > %t
|
Convert all tests using TCL-style quoting to use shell-style quoting.
This was done through the aid of a terrible Perl creation. I will not
paste any of the horrors here. Suffice to say, it require multiple
staged rounds of replacements, state carried between, and a few
nested-construct-parsing hacks that I'm not proud of. It happens, by
luck, to be able to deal with all the TCL-quoting patterns in evidence
in the LLVM test suite.
If anyone is maintaining large out-of-tree test trees, feel free to poke
me and I'll send you the steps I used to convert things, as well as
answer any painful questions etc. IRC works best for this type of thing
I find.
Once converted, switch the LLVM lit config to use ShTests the same as
Clang. In addition to being able to delete large amounts of Python code
from 'lit', this will also simplify the entire test suite and some of
lit's architecture.
Finally, the test suite runs 33% faster on Linux now. ;]
For my 16-hardware-thread (2x 4-core xeon e5520): 36s -> 24s
llvm-svn: 159525
2012-07-02 20:47:22 +08:00
|
|
|
; RUN: grep "%xmm0" %t | count 14
|
|
|
|
; RUN: not grep "%xmm1" %t
|
2017-08-02 08:28:10 +08:00
|
|
|
; RUN: llc < %s -mtriple=x86_64-- -mcpu=atom -post-RA-scheduler -break-anti-dependencies=critical > %t
|
Convert all tests using TCL-style quoting to use shell-style quoting.
This was done through the aid of a terrible Perl creation. I will not
paste any of the horrors here. Suffice to say, it require multiple
staged rounds of replacements, state carried between, and a few
nested-construct-parsing hacks that I'm not proud of. It happens, by
luck, to be able to deal with all the TCL-quoting patterns in evidence
in the LLVM test suite.
If anyone is maintaining large out-of-tree test trees, feel free to poke
me and I'll send you the steps I used to convert things, as well as
answer any painful questions etc. IRC works best for this type of thing
I find.
Once converted, switch the LLVM lit config to use ShTests the same as
Clang. In addition to being able to delete large amounts of Python code
from 'lit', this will also simplify the entire test suite and some of
lit's architecture.
Finally, the test suite runs 33% faster on Linux now. ;]
For my 16-hardware-thread (2x 4-core xeon e5520): 36s -> 24s
llvm-svn: 159525
2012-07-02 20:47:22 +08:00
|
|
|
; RUN: grep "%xmm0" %t | count 7
|
|
|
|
; RUN: grep "%xmm1" %t | count 7
|
2009-10-02 05:46:35 +08:00
|
|
|
|
|
|
|
define void @goo(double* %r, double* %p, double* %q) nounwind {
|
|
|
|
entry:
|
2015-02-28 05:17:42 +08:00
|
|
|
%0 = load double, double* %p, align 8
|
2009-10-02 05:46:35 +08:00
|
|
|
%1 = fadd double %0, 1.100000e+00
|
|
|
|
%2 = fmul double %1, 1.200000e+00
|
|
|
|
%3 = fadd double %2, 1.300000e+00
|
|
|
|
%4 = fmul double %3, 1.400000e+00
|
|
|
|
%5 = fadd double %4, 1.500000e+00
|
|
|
|
%6 = fptosi double %5 to i32
|
2015-02-28 05:17:42 +08:00
|
|
|
%7 = load double, double* %r, align 8
|
2009-10-02 05:46:35 +08:00
|
|
|
%8 = fadd double %7, 7.100000e+00
|
|
|
|
%9 = fmul double %8, 7.200000e+00
|
|
|
|
%10 = fadd double %9, 7.300000e+00
|
|
|
|
%11 = fmul double %10, 7.400000e+00
|
|
|
|
%12 = fadd double %11, 7.500000e+00
|
|
|
|
%13 = fptosi double %12 to i32
|
|
|
|
%14 = icmp slt i32 %6, %13
|
|
|
|
br i1 %14, label %bb, label %return
|
|
|
|
|
|
|
|
bb:
|
|
|
|
store double 9.300000e+00, double* %q, align 8
|
|
|
|
ret void
|
|
|
|
|
|
|
|
return:
|
|
|
|
ret void
|
|
|
|
}
|