Update compiler tests for tag number changes
parent
dbc1a8e1a3
commit
7f766ab355
|
@ -92,7 +92,7 @@ sequences ;
|
||||||
T{ ##load-reference f V int-regs 1 + }
|
T{ ##load-reference f V int-regs 1 + }
|
||||||
T{ ##peek f V int-regs 2 D 0 }
|
T{ ##peek f V int-regs 2 D 0 }
|
||||||
T{ ##compare f V int-regs 4 V int-regs 2 V int-regs 1 cc> }
|
T{ ##compare f V int-regs 4 V int-regs 2 V int-regs 1 cc> }
|
||||||
T{ ##compare-imm f V int-regs 6 V int-regs 4 7 cc/= }
|
T{ ##compare-imm f V int-regs 6 V int-regs 4 5 cc/= }
|
||||||
T{ ##replace f V int-regs 6 D 0 }
|
T{ ##replace f V int-regs 6 D 0 }
|
||||||
} value-numbering trim-temps
|
} value-numbering trim-temps
|
||||||
] unit-test
|
] unit-test
|
||||||
|
@ -110,7 +110,7 @@ sequences ;
|
||||||
T{ ##load-reference f V int-regs 1 + }
|
T{ ##load-reference f V int-regs 1 + }
|
||||||
T{ ##peek f V int-regs 2 D 0 }
|
T{ ##peek f V int-regs 2 D 0 }
|
||||||
T{ ##compare f V int-regs 4 V int-regs 2 V int-regs 1 cc<= }
|
T{ ##compare f V int-regs 4 V int-regs 2 V int-regs 1 cc<= }
|
||||||
T{ ##compare-imm f V int-regs 6 V int-regs 4 7 cc= }
|
T{ ##compare-imm f V int-regs 6 V int-regs 4 5 cc= }
|
||||||
T{ ##replace f V int-regs 6 D 0 }
|
T{ ##replace f V int-regs 6 D 0 }
|
||||||
} value-numbering trim-temps
|
} value-numbering trim-temps
|
||||||
] unit-test
|
] unit-test
|
||||||
|
@ -132,7 +132,7 @@ sequences ;
|
||||||
T{ ##unbox-float f V double-float-regs 10 V int-regs 8 }
|
T{ ##unbox-float f V double-float-regs 10 V int-regs 8 }
|
||||||
T{ ##unbox-float f V double-float-regs 11 V int-regs 9 }
|
T{ ##unbox-float f V double-float-regs 11 V int-regs 9 }
|
||||||
T{ ##compare-float f V int-regs 12 V double-float-regs 10 V double-float-regs 11 cc< }
|
T{ ##compare-float f V int-regs 12 V double-float-regs 10 V double-float-regs 11 cc< }
|
||||||
T{ ##compare-imm f V int-regs 14 V int-regs 12 7 cc= }
|
T{ ##compare-imm f V int-regs 14 V int-regs 12 5 cc= }
|
||||||
T{ ##replace f V int-regs 14 D 0 }
|
T{ ##replace f V int-regs 14 D 0 }
|
||||||
} value-numbering trim-temps
|
} value-numbering trim-temps
|
||||||
] unit-test
|
] unit-test
|
||||||
|
@ -149,6 +149,6 @@ sequences ;
|
||||||
T{ ##peek f V int-regs 29 D -1 }
|
T{ ##peek f V int-regs 29 D -1 }
|
||||||
T{ ##peek f V int-regs 30 D -2 }
|
T{ ##peek f V int-regs 30 D -2 }
|
||||||
T{ ##compare f V int-regs 33 V int-regs 29 V int-regs 30 cc<= }
|
T{ ##compare f V int-regs 33 V int-regs 29 V int-regs 30 cc<= }
|
||||||
T{ ##compare-imm-branch f V int-regs 33 7 cc/= }
|
T{ ##compare-imm-branch f V int-regs 33 5 cc/= }
|
||||||
} value-numbering trim-temps
|
} value-numbering trim-temps
|
||||||
] unit-test
|
] unit-test
|
||||||
|
|
|
@ -26,7 +26,7 @@ IN: compiler.tests.codegen
|
||||||
|
|
||||||
[ 2 3 4 ] [ 3 [ 2 swap 4 ] compile-call ] unit-test
|
[ 2 3 4 ] [ 3 [ 2 swap 4 ] compile-call ] unit-test
|
||||||
|
|
||||||
[ { 1 2 3 } { 1 4 3 } 3 3 ]
|
[ { 1 2 3 } { 1 4 3 } 6 6 ]
|
||||||
[ { 1 2 3 } { 1 4 3 } [ over tag over tag ] compile-call ]
|
[ { 1 2 3 } { 1 4 3 } [ over tag over tag ] compile-call ]
|
||||||
unit-test
|
unit-test
|
||||||
|
|
||||||
|
@ -37,7 +37,7 @@ unit-test
|
||||||
|
|
||||||
: foo ( -- ) ;
|
: foo ( -- ) ;
|
||||||
|
|
||||||
[ 5 5 ]
|
[ 3 3 ]
|
||||||
[ 1.2 [ tag [ foo ] keep ] compile-call ]
|
[ 1.2 [ tag [ foo ] keep ] compile-call ]
|
||||||
unit-test
|
unit-test
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,7 @@ math.private tools.test math.floats.private ;
|
||||||
|
|
||||||
[ 3.0 1 2 3 ] [ 1.0 2.0 [ float+ 1 2 3 ] compile-call ] unit-test
|
[ 3.0 1 2 3 ] [ 1.0 2.0 [ float+ 1 2 3 ] compile-call ] unit-test
|
||||||
|
|
||||||
[ 5 ] [ 1.0 [ 2.0 float+ tag ] compile-call ] unit-test
|
[ 3 ] [ 1.0 [ 2.0 float+ tag ] compile-call ] unit-test
|
||||||
|
|
||||||
[ 3.0 ] [ 1.0 [ 2.0 float+ ] compile-call ] unit-test
|
[ 3.0 ] [ 1.0 [ 2.0 float+ ] compile-call ] unit-test
|
||||||
[ 3.0 ] [ 1.0 [ 2.0 swap float+ ] compile-call ] unit-test
|
[ 3.0 ] [ 1.0 [ 2.0 swap float+ ] compile-call ] unit-test
|
||||||
|
|
|
@ -10,7 +10,7 @@ IN: compiler.tests.optimizer
|
||||||
GENERIC: xyz ( obj -- obj )
|
GENERIC: xyz ( obj -- obj )
|
||||||
M: array xyz xyz ;
|
M: array xyz xyz ;
|
||||||
|
|
||||||
[ t ] [ \ xyz optimized? ] unit-test
|
[ t ] [ M\ array xyz optimized? ] unit-test
|
||||||
|
|
||||||
! Test predicate inlining
|
! Test predicate inlining
|
||||||
: pred-test-1 ( a -- b c )
|
: pred-test-1 ( a -- b c )
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
! optimization, which would batch generic word updates at the
|
! optimization, which would batch generic word updates at the
|
||||||
! end of a compilation unit.
|
! end of a compilation unit.
|
||||||
|
|
||||||
USING: kernel accessors peg.ebnf ;
|
USING: kernel accessors peg.ebnf words ;
|
||||||
IN: compiler.tests.peg-regression
|
IN: compiler.tests.peg-regression
|
||||||
|
|
||||||
TUPLE: pipeline-expr background ;
|
TUPLE: pipeline-expr background ;
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
USING: math.private kernel combinators accessors arrays
|
USING: math.private kernel combinators accessors arrays
|
||||||
generalizations tools.test ;
|
generalizations tools.test words ;
|
||||||
IN: compiler.tests.spilling
|
IN: compiler.tests.spilling
|
||||||
|
|
||||||
: float-spill-bug ( a -- b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b )
|
: float-spill-bug ( a -- b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b )
|
||||||
|
|
Loading…
Reference in New Issue