diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2018-12-16 23:02:22 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2018-12-16 23:02:22 +0100 |
commit | de24e9d3669e43a5419c7990ad13368ae51ced96 (patch) | |
tree | 0d94b4feb8d90ff0b7627511714d2e8adf3ea885 /testsuite | |
parent | 06ade77002eaa28bb3f19480f68ad270b22bd48e (diff) | |
download | busybox-w32-de24e9d3669e43a5419c7990ad13368ae51ced96.tar.gz busybox-w32-de24e9d3669e43a5419c7990ad13368ae51ced96.tar.bz2 busybox-w32-de24e9d3669e43a5419c7990ad13368ae51ced96.zip |
bc: remove redundant JUMP generation when parsing 'while'
function old new delta
zbc_parse_stmt_possibly_auto 2065 2025 -40
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/1 up/down: 0/-40) Total: -40 bytes
text data bss dec hex filename
982035 485 7296 989816 f1a78 busybox_old
981995 485 7296 989776 f1a50 busybox_unstripped
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'testsuite')
-rwxr-xr-x | testsuite/bc.tests | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/testsuite/bc.tests b/testsuite/bc.tests index 987461ebb..0690e9c6f 100755 --- a/testsuite/bc.tests +++ b/testsuite/bc.tests | |||
@@ -107,6 +107,33 @@ if(1) { | |||
107 | 99 | 107 | 99 |
108 | " | 108 | " |
109 | 109 | ||
110 | testing "bc continue in if" \ | ||
111 | "bc" \ | ||
112 | "\ | ||
113 | 11 | ||
114 | 21 | ||
115 | 11 | ||
116 | 31 | ||
117 | 99 | ||
118 | " \ | ||
119 | "" "\ | ||
120 | i=2 | ||
121 | while(i--) { | ||
122 | 11 | ||
123 | if(i) { | ||
124 | 21 | ||
125 | continue | ||
126 | 22 | ||
127 | } else { | ||
128 | 31 | ||
129 | continue | ||
130 | 32 | ||
131 | } | ||
132 | 12 | ||
133 | } | ||
134 | 99 | ||
135 | " | ||
136 | |||
110 | tar xJf bc_large.tar.xz | 137 | tar xJf bc_large.tar.xz |
111 | 138 | ||
112 | for f in bc*.bc; do | 139 | for f in bc*.bc; do |