os/kernelhwsrv/kerneltest/e32test/mmu/t_btb.cia
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     1 // Copyright (c) 1995-2009 Nokia Corporation and/or its subsidiary(-ies).
     2 // All rights reserved.
     3 // This component and the accompanying materials are made available
     4 // under the terms of the License "Eclipse Public License v1.0"
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 //
     8 // Initial Contributors:
     9 // Nokia Corporation - initial contribution.
    10 //
    11 // Contributors:
    12 //
    13 // Description:
    14 // e32test\mmu\t_imb.cia
    15 // 
    16 //
    17 
    18 #include <e32test.h>
    19 #include <u32std.h>
    20 
    21 #ifdef __CPU_ARM
    22 
    23 __NAKED__ TInt BranchTest1()
    24 	{
    25 	asm("			movs  r0, #0 "); // return status KErrNone
    26 	asm("			mov   r3, #1 "); // this is process 1
    27 	asm("			mov   r1, lr "); // save return address
    28 	asm("			mov   r2, #0xff00 "); // iterations
    29 	asm("loop1:	");
    30 	asm("			cmp   r1, r1 "); // reset cond flags
    31 	asm("			moveq   lr, pc ");
    32 	asm("			beq poison1 "); // start test!
    33 	asm("			cmp   r3, #1 "); 
    34 	asm("			moveq   lr, pc ");
    35 	asm("			beq poison1 "); 
    36 	asm("			cmp   r3, #1 ");
    37 	asm("			moveq   lr, pc ");
    38 	asm("			beq poison1 ");
    39 	asm("			cmp   r3, #1 ");
    40 	asm("			moveq   lr, pc ");
    41 	asm("			beq poison1 ");
    42 	asm("			cmp   r3, #1 ");
    43 	asm("			moveq   lr, pc ");
    44 	asm("			beq poison1 ");
    45 	asm("			cmp   r3, #1 ");
    46 	asm("			moveq   lr, pc ");
    47 	asm("			beq poison1 ");
    48 	asm("			cmp   r3, #1 ");
    49 	asm("			moveq   lr, pc ");
    50 	asm("			beq poison1 ");
    51 	asm("			cmp   r3, #1 ");
    52 	asm("			moveq   lr, pc ");
    53 	asm("			beq poison1 ");
    54 	asm("			cmp   r3, #1 ");
    55 	asm("			moveq   lr, pc ");
    56 	asm("			beq poison1 ");
    57 	asm("			cmp   r3, #1 ");
    58 	asm("			moveq   lr, pc ");
    59 	asm("			beq poison1 ");
    60 	asm("			cmp   r3, #1 ");
    61 	asm("			moveq   lr, pc ");
    62 	asm("			beq poison1 ");
    63 	asm("			cmp   r3, #1 ");
    64 	asm("			moveq   lr, pc ");
    65 	asm("			beq poison1 ");
    66 	asm("			cmp   r3, #1 ");
    67 	asm("			moveq   lr, pc ");
    68 	asm("			beq poison1 ");
    69 	asm("			cmp   r3, #1 ");
    70 	asm("			moveq   lr, pc ");
    71 	asm("			beq poison1 ");
    72 	asm("			cmp   r3, #1 ");
    73 	asm("			moveq   lr, pc ");
    74 	asm("			beq poison1 ");
    75 	asm("			cmp   r3, #1 ");
    76 	asm("			moveq   lr, pc ");
    77 	asm("			beq poison1 ");
    78 	asm("			cmp   r3, #1 ");
    79 	asm("			moveq   lr, pc ");
    80 	asm("			beq poison1 ");
    81 	asm("			cmp   r3, #1 ");
    82 	asm("			moveq   lr, pc ");
    83 	asm("			beq poison1 ");
    84 	asm("			cmp   r3, #1 ");
    85 	asm("			moveq   lr, pc ");
    86 	asm("			beq poison1 ");
    87 	asm("			cmp   r3, #1 ");
    88 	asm("			moveq   lr, pc ");
    89 	asm("			beq poison1 ");
    90 	asm("			cmp   r3, #1 ");
    91 	asm("			moveq   lr, pc ");
    92 	asm("			beq poison1 ");
    93 	asm("			cmp   r3, #1 ");
    94 	asm("			moveq   lr, pc ");
    95 	asm("			beq poison1 ");
    96 	asm("			cmp   r3, #1 ");
    97 	asm("			moveq   lr, pc ");
    98 	asm("			beq poison1 ");
    99 	asm("			cmp   r3, #1 ");
   100 	asm("			moveq   lr, pc ");
   101 	asm("			beq poison1 ");
   102 	asm("			cmp   r3, #1 ");
   103 	asm("			moveq   lr, pc ");
   104 	asm("			beq poison1 ");
   105 	asm("			cmp   r3, #1 ");
   106 	asm("			moveq   lr, pc ");
   107 	asm("			beq poison1 ");
   108 	asm("			cmp   r3, #1 ");
   109 	asm("			moveq   lr, pc ");
   110 	asm("			beq poison1 ");
   111 	asm("			cmp   r3, #1 ");
   112 	asm("			moveq   lr, pc ");
   113 	asm("			beq poison1 ");
   114 	asm("			cmp   r3, #1 ");
   115 	asm("			moveq   lr, pc ");
   116 	asm("			beq poison1 ");
   117 	asm("			cmp   r3, #1 ");
   118 	asm("			moveq   lr, pc ");
   119 	asm("			beq poison1 ");
   120 	asm("			cmp   r3, #1 ");
   121 	asm("			moveq   lr, pc ");
   122 	asm("			beq poison1 ");
   123 	asm("			cmp   r3, #1 ");
   124 	asm("			moveq   lr, pc ");
   125 	asm("			beq poison1 ");
   126 	asm("			cmp   r3, #1 ");
   127 	asm("			moveq   lr, pc ");
   128 	asm("			beq poison1 ");
   129 	asm("			cmp   r3, #1 ");
   130 	asm("			moveq   lr, pc ");
   131 	asm("			beq poison1 ");
   132 	asm("			cmp   r3, #1 ");
   133 	asm("			moveq   lr, pc ");
   134 	asm("			beq poison1 ");
   135 	asm("			cmp   r3, #1 ");
   136 	asm("			moveq   lr, pc ");
   137 	asm("			beq poison1 ");
   138 	asm("			cmp   r3, #1 ");
   139 	asm("			moveq   lr, pc ");
   140 	asm("			beq poison1 ");
   141 	asm("			cmp   r3, #1 ");
   142 	asm("			moveq   lr, pc ");
   143 	asm("			beq poison1 ");
   144 	asm("			cmp   r3, #1 ");
   145 	asm("			moveq   lr, pc ");
   146 	asm("			beq poison1 ");
   147 	asm("			cmp   r3, #1 ");
   148 	asm("			moveq   lr, pc ");
   149 	asm("			beq poison1 ");
   150 	asm("			cmp   r3, #1 ");
   151 	asm("			moveq   lr, pc ");
   152 	asm("			beq poison1 ");
   153 	asm("			cmp   r3, #1 ");
   154 	asm("			moveq   lr, pc ");
   155 	asm("			beq poison1 ");
   156 	asm("			cmp   r3, #1 ");
   157 	asm("			moveq   lr, pc ");
   158 	asm("			beq poison1 ");
   159 	asm("			cmp   r3, #1 ");
   160 	asm("			moveq   lr, pc ");
   161 	asm("			beq poison1 ");
   162 	asm("			cmp   r3, #1 ");
   163 	asm("			moveq   lr, pc ");
   164 	asm("			beq poison1 ");
   165 	asm("			cmp   r3, #1 ");
   166 	asm("			moveq   lr, pc ");
   167 	asm("			beq poison1 ");
   168 	asm("			cmp   r3, #1 ");
   169 	asm("			moveq   lr, pc ");
   170 	asm("			beq poison1 ");
   171 	asm("			cmp   r3, #1 ");
   172 	asm("			moveq   lr, pc ");
   173 	asm("			beq poison1 ");
   174 	asm("			cmp   r3, #1 ");
   175 	asm("			moveq   lr, pc ");
   176 	asm("			beq poison1 ");
   177 	asm("			cmp   r3, #1 ");
   178 	asm("			moveq   lr, pc ");
   179 	asm("			beq poison1 ");
   180 	asm("			cmp   r3, #1 ");
   181 	asm("			moveq   lr, pc ");
   182 	asm("			beq poison1 ");
   183 	asm("			cmp   r3, #1 ");
   184 	asm("			moveq   lr, pc ");
   185 	asm("			beq poison1 ");
   186 	asm("			cmp   r3, #1 ");
   187 	asm("			moveq   lr, pc ");
   188 	asm("			beq poison1 ");
   189 	asm("			cmp   r3, #1 ");
   190 	asm("			moveq   lr, pc ");
   191 	asm("			beq poison1 ");
   192 	asm("			cmp   r3, #1 ");
   193 	asm("			moveq   lr, pc ");
   194 	asm("			beq poison1 ");
   195 	asm("			cmp   r3, #1 ");
   196 	asm("			moveq   lr, pc ");
   197 	asm("			beq poison1 ");
   198 	asm("			cmp   r3, #1 ");
   199 	asm("			moveq   lr, pc ");
   200 	asm("			beq poison1 ");
   201 	asm("			cmp   r3, #1 ");
   202 	asm("			moveq   lr, pc ");
   203 	asm("			beq poison1 ");
   204 	asm("			cmp   r3, #1 ");
   205 	asm("			moveq   lr, pc ");
   206 	asm("			beq poison1 ");
   207 	asm("			cmp   r3, #1 ");
   208 	asm("			moveq   lr, pc ");
   209 	asm("			beq poison1 ");
   210 	asm("			cmp   r3, #1 ");
   211 	asm("			moveq   lr, pc ");
   212 	asm("			beq poison1 ");
   213 	asm("			cmp   r3, #1 ");
   214 	asm("			moveq   lr, pc ");
   215 	asm("			beq poison1 ");
   216 	asm("			cmp   r3, #1 ");
   217 	asm("			moveq   lr, pc ");
   218 	asm("			beq poison1 ");
   219 	asm("			cmp   r3, #1 ");
   220 	asm("			moveq   lr, pc ");
   221 	asm("			beq poison1 "); 
   222 	asm("			cmp   r3, #1 ");
   223 	asm("			moveq   lr, pc ");
   224 	asm("			beq poison1 ");
   225 	asm("			cmp   r3, #1 ");
   226 	asm("			moveq   lr, pc ");
   227 	asm("			beq poison1 ");
   228 	asm("			cmp   r3, #1 ");
   229 	asm("			moveq   lr, pc ");
   230 	asm("			beq poison1 ");
   231 	asm("			cmp   r3, #1 ");
   232 	asm("			moveq   lr, pc ");
   233 	asm("			beq poison1 ");
   234 	asm("			cmp   r3, #1 ");
   235 	asm("			moveq   lr, pc ");
   236 	asm("			beq poison1 ");
   237 	asm("			cmp   r3, #1 ");
   238 	asm("			moveq   lr, pc ");
   239 	asm("			beq poison1 ");
   240 	asm("			cmp   r3, #1 ");
   241 	asm("			moveq   lr, pc ");
   242 	asm("			beq poison1 ");
   243 	asm("			cmp   r3, #1 ");
   244 	asm("			moveq   lr, pc ");
   245 	asm("			beq poison1 ");
   246 	asm("			cmp   r3, #1 ");
   247 	asm("			moveq   lr, pc ");
   248 	asm("			beq poison1 ");
   249 	asm("			cmp   r3, #1 ");
   250 	asm("			moveq   lr, pc ");
   251 	asm("			beq poison1 ");
   252 	asm("			cmp   r3, #1 ");
   253 	asm("			moveq   lr, pc ");
   254 	asm("			beq poison1 ");
   255 	asm("			cmp   r3, #1 ");
   256 	asm("			moveq   lr, pc ");
   257 	asm("			beq poison1 ");
   258 	asm("			cmp   r3, #1 ");
   259 	asm("			moveq   lr, pc ");
   260 	asm("			beq poison1 ");
   261 	asm("			cmp   r3, #1 ");
   262 	asm("			moveq   lr, pc ");
   263 	asm("			beq poison1 ");
   264 	asm("			cmp   r3, #1 ");
   265 	asm("			moveq   lr, pc ");
   266 	asm("			beq poison1 ");
   267 	asm("			cmp   r3, #1 ");
   268 	asm("			moveq   lr, pc ");
   269 	asm("			beq poison1 ");
   270 	asm("			cmp   r3, #1 ");
   271 	asm("			moveq   lr, pc ");
   272 	asm("			beq poison1 ");
   273 	asm("			cmp   r3, #1 ");
   274 	asm("			moveq   lr, pc ");
   275 	asm("			beq poison1 ");
   276 	asm("			cmp   r3, #1 ");
   277 	asm("			moveq   lr, pc ");
   278 	asm("			beq poison1 ");
   279 	asm("			cmp   r3, #1 ");
   280 	asm("			moveq   lr, pc ");
   281 	asm("			beq poison1 ");
   282 	asm("			cmp   r3, #1 ");
   283 	asm("			moveq   lr, pc ");
   284 	asm("			beq poison1 ");
   285 	asm("			cmp   r3, #1 ");
   286 	asm("			moveq   lr, pc ");
   287 	asm("			beq poison1 ");
   288 	asm("			cmp   r3, #1 ");
   289 	asm("			moveq   lr, pc ");
   290 	asm("			beq poison1 ");
   291 	asm("			cmp   r3, #1 ");
   292 	asm("			moveq   lr, pc ");
   293 	asm("			beq poison1 ");
   294 	asm("			cmp   r3, #1 ");
   295 	asm("			moveq   lr, pc ");
   296 	asm("			beq poison1 ");
   297 	asm("			cmp   r3, #1 ");
   298 	asm("			moveq   lr, pc ");
   299 	asm("			beq poison1 ");
   300 	asm("			cmp   r3, #1 ");
   301 	asm("			moveq   lr, pc ");
   302 	asm("			beq poison1 ");
   303 	asm("			cmp   r3, #1 ");
   304 	asm("			moveq   lr, pc ");
   305 	asm("			beq poison1 ");
   306 	asm("			cmp   r3, #1 ");
   307 	asm("			moveq   lr, pc ");
   308 	asm("			beq poison1 ");
   309 	asm("			cmp   r3, #1 ");
   310 	asm("			moveq   lr, pc ");
   311 	asm("			beq poison1 ");
   312 	asm("			cmp   r3, #1 ");
   313 	asm("			moveq   lr, pc ");
   314 	asm("			beq poison1 ");
   315 	asm("			cmp   r3, #1 ");
   316 	asm("			moveq   lr, pc ");
   317 	asm("			beq poison1 ");
   318 	asm("			cmp   r3, #1 ");
   319 	asm("			moveq   lr, pc ");
   320 	asm("			beq poison1 ");
   321 	asm("			cmp   r3, #1 ");
   322 	asm("			moveq   lr, pc ");
   323 	asm("			beq poison1 ");
   324 	asm("			cmp   r3, #1 ");
   325 	asm("			moveq   lr, pc ");
   326 	asm("			beq poison1 ");
   327 	asm("			cmp   r3, #1 ");
   328 	asm("			moveq   lr, pc ");
   329 	asm("			beq poison1 ");
   330 	asm("			cmp   r3, #1 ");
   331 	asm("			moveq   lr, pc ");
   332 	asm("			beq poison1 ");
   333 	asm("			cmp   r3, #1 ");
   334 	asm("			moveq   lr, pc ");
   335 	asm("			beq poison1 ");
   336 	asm("			cmp   r3, #1 ");
   337 	asm("			moveq   lr, pc ");
   338 	asm("			beq poison1 ");
   339 	asm("			cmp   r3, #1 ");
   340 	asm("			moveq   lr, pc ");
   341 	asm("			beq poison1 ");
   342 	asm("			cmp   r3, #1 ");
   343 	asm("			moveq   lr, pc ");
   344 	asm("			beq poison1 ");
   345 	asm("			cmp   r3, #1 ");
   346 	asm("			moveq   lr, pc ");
   347 	asm("			beq poison1 ");
   348 	asm("			cmp   r3, #1 ");
   349 	asm("			moveq   lr, pc ");
   350 	asm("			beq poison1 ");
   351 	asm("			cmp   r3, #1 ");
   352 	asm("			moveq   lr, pc ");
   353 	asm("			beq poison1 ");
   354 	asm("			cmp   r3, #1 ");
   355 	asm("			moveq   lr, pc ");
   356 	asm("			beq poison1 ");
   357 	asm("			cmp   r3, #1 ");
   358 	asm("			moveq   lr, pc ");
   359 	asm("			beq poison1 ");
   360 	asm("			cmp   r3, #1 ");
   361 	asm("			moveq   lr, pc ");
   362 	asm("			beq poison1 ");
   363 	asm("			cmp   r3, #1 ");
   364 	asm("			moveq   lr, pc ");
   365 	asm("			beq poison1 ");
   366 	asm("			cmp   r3, #1 ");
   367 	asm("			moveq   lr, pc ");
   368 	asm("			beq poison1 ");
   369 	asm("			cmp   r3, #1 ");
   370 	asm("			moveq   lr, pc ");
   371 	asm("			beq poison1 ");
   372 	asm("			cmp   r3, #1 ");
   373 	asm("			moveq   lr, pc ");
   374 	asm("			beq poison1 ");
   375 	asm("			cmp   r3, #1 ");
   376 	asm("			moveq   lr, pc ");
   377 	asm("			beq poison1 ");
   378 	asm("			cmp   r3, #1 ");
   379 	asm("			moveq   lr, pc ");
   380 	asm("			beq poison1 ");
   381 	asm("			cmp   r3, #1 ");
   382 	asm("			moveq   lr, pc ");
   383 	asm("			beq poison1 ");
   384 	asm("			cmp   r3, #1 ");
   385 	asm("			moveq   lr, pc ");
   386 	asm("			beq poison1 ");
   387 	asm("			cmp   r3, #1 ");
   388 	asm("			moveq   lr, pc ");
   389 	asm("			beq poison1 ");
   390 	asm("			cmp   r3, #1 ");
   391 	asm("			moveq   lr, pc ");
   392 	asm("			beq poison1 ");
   393 	asm("			cmp   r3, #1 ");
   394 	asm("			moveq   lr, pc ");
   395 	asm("			beq poison1 ");
   396 	asm("			cmp   r3, #1 ");
   397 	asm("			moveq   lr, pc ");
   398 	asm("			beq poison1 ");
   399 	asm("			cmp   r3, #1 ");
   400 	asm("			moveq   lr, pc ");
   401 	asm("			beq poison1 ");
   402 	asm("			cmp   r3, #1 ");
   403 	asm("			moveq   lr, pc ");
   404 	asm("			beq poison1 ");
   405 	asm("			cmp   r3, #1 ");
   406 	asm("			moveq   lr, pc ");
   407 	asm("			beq poison1 ");
   408 	asm("			teq   r3, #1 ");		// did we fall through?
   409 	asm("			movne r0, #-1 ");		// yes we did!
   410 	__JUMP(ne,r1);							// return
   411 	asm("			subs r2, r2, #1 ");	// no, decrement the counter and go again
   412 	asm("			bne  loop1 ");			// if there are iters left and we didn't fall through
   413 
   414 	__JUMP(,r1); // the end!
   415 	asm("poison1: ");
   416 	asm("			mov   r3, #1 ");  // we're ok
   417 	__JUMP(,lr);
   418 	asm("poison2: ");
   419 	asm("			mov   r3, #2 ");  // woops!
   420 	__JUMP(,lr);
   421 	}
   422 
   423 __NAKED__ void BranchTest1End()
   424 {
   425 	__JUMP(,lr);
   426 }
   427 
   428 __NAKED__ TInt BranchTest2()
   429 	{
   430 	asm("			movs  r0, #0 ");		// return status KErrNone
   431 	asm("			mov   r3, #2 ");		// this is process 2
   432 	asm("			mov   r1, lr");		// save return address
   433 	asm("			mov   r2, #0xff00"); // iterations
   434 	asm("loop2:	");
   435 	asm("			cmp   r1, r1 ");	// reset flags
   436 	asm("			moveq   lr, pc ");
   437 	asm("			beq poison3 ");	// start test!
   438 	asm("			cmp   r3, #2 "); 
   439 	asm("			moveq   lr, pc ");
   440 	asm("			beq poison3 "); 
   441 	asm("			cmp   r3, #2 ");
   442 	asm("			moveq   lr, pc ");
   443 	asm("			beq poison3 ");
   444 	asm("			cmp   r3, #2 ");
   445 	asm("			moveq   lr, pc ");
   446 	asm("			beq poison3 ");
   447 	asm("			cmp   r3, #2 ");
   448 	asm("			moveq   lr, pc ");
   449 	asm("			beq poison3 ");
   450 	asm("			cmp   r3, #2 ");
   451 	asm("			moveq   lr, pc ");
   452 	asm("			beq poison3 ");
   453 	asm("			cmp   r3, #2 ");
   454 	asm("			moveq   lr, pc ");
   455 	asm("			beq poison3 ");
   456 	asm("			cmp   r3, #2 ");
   457 	asm("			moveq   lr, pc ");
   458 	asm("			beq poison3 ");
   459 	asm("			cmp   r3, #2 ");
   460 	asm("			moveq   lr, pc ");
   461 	asm("			beq poison3 ");
   462 	asm("			cmp   r3, #2 ");
   463 	asm("			moveq   lr, pc ");
   464 	asm("			beq poison3 ");
   465 	asm("			cmp   r3, #2 ");
   466 	asm("			moveq   lr, pc ");
   467 	asm("			beq poison3 ");
   468 	asm("			cmp   r3, #2 ");
   469 	asm("			moveq   lr, pc ");
   470 	asm("			beq poison3 ");
   471 	asm("			cmp   r3, #2 ");
   472 	asm("			moveq   lr, pc ");
   473 	asm("			beq poison3 ");
   474 	asm("			cmp   r3, #2 ");
   475 	asm("			moveq   lr, pc ");
   476 	asm("			beq poison3 ");
   477 	asm("			cmp   r3, #2 ");
   478 	asm("			moveq   lr, pc ");
   479 	asm("			beq poison3 ");
   480 	asm("			cmp   r3, #2 ");
   481 	asm("			moveq   lr, pc ");
   482 	asm("			beq poison3 ");
   483 	asm("			cmp   r3, #2 ");
   484 	asm("			moveq   lr, pc ");
   485 	asm("			beq poison3 ");
   486 	asm("			cmp   r3, #2 ");
   487 	asm("			moveq   lr, pc ");
   488 	asm("			beq poison3 ");
   489 	asm("			cmp   r3, #2 ");
   490 	asm("			moveq   lr, pc ");
   491 	asm("			beq poison3 ");
   492 	asm("			cmp   r3, #2 ");
   493 	asm("			moveq   lr, pc ");
   494 	asm("			beq poison3 ");
   495 	asm("			cmp   r3, #2 ");
   496 	asm("			moveq   lr, pc ");
   497 	asm("			beq poison3 ");
   498 	asm("			cmp   r3, #2 ");
   499 	asm("			moveq   lr, pc ");
   500 	asm("			beq poison3 ");
   501 	asm("			cmp   r3, #2 ");
   502 	asm("			moveq   lr, pc ");
   503 	asm("			beq poison3 ");
   504 	asm("			cmp   r3, #2 ");
   505 	asm("			moveq   lr, pc ");
   506 	asm("			beq poison3 ");
   507 	asm("			cmp   r3, #2 ");
   508 	asm("			moveq   lr, pc ");
   509 	asm("			beq poison3 ");
   510 	asm("			cmp   r3, #2 ");
   511 	asm("			moveq   lr, pc ");
   512 	asm("			beq poison3 ");
   513 	asm("			cmp   r3, #2 ");
   514 	asm("			moveq   lr, pc ");
   515 	asm("			beq poison3 ");
   516 	asm("			cmp   r3, #2 ");
   517 	asm("			moveq   lr, pc ");
   518 	asm("			beq poison3 ");
   519 	asm("			cmp   r3, #2 ");
   520 	asm("			moveq   lr, pc ");
   521 	asm("			beq poison3 ");
   522 	asm("			cmp   r3, #2 ");
   523 	asm("			moveq   lr, pc ");
   524 	asm("			beq poison3 ");
   525 	asm("			cmp   r3, #2 ");
   526 	asm("			moveq   lr, pc ");
   527 	asm("			beq poison3 ");
   528 	asm("			cmp   r3, #2 ");
   529 	asm("			moveq   lr, pc ");
   530 	asm("			beq poison3 ");
   531 	asm("			cmp   r3, #2 ");
   532 	asm("			moveq   lr, pc ");
   533 	asm("			beq poison3 ");
   534 	asm("			cmp   r3, #2 ");
   535 	asm("			moveq   lr, pc ");
   536 	asm("			beq poison3 ");
   537 	asm("			cmp   r3, #2 ");
   538 	asm("			moveq   lr, pc ");
   539 	asm("			beq poison3 ");
   540 	asm("			cmp   r3, #2 ");
   541 	asm("			moveq   lr, pc ");
   542 	asm("			beq poison3 ");
   543 	asm("			cmp   r3, #2 ");
   544 	asm("			moveq   lr, pc ");
   545 	asm("			beq poison3 ");
   546 	asm("			cmp   r3, #2 ");
   547 	asm("			moveq   lr, pc ");
   548 	asm("			beq poison3 ");
   549 	asm("			cmp   r3, #2 ");
   550 	asm("			moveq   lr, pc ");
   551 	asm("			beq poison3 ");
   552 	asm("			cmp   r3, #2 ");
   553 	asm("			moveq   lr, pc ");
   554 	asm("			beq poison3 ");
   555 	asm("			cmp   r3, #2 ");
   556 	asm("			moveq   lr, pc ");
   557 	asm("			beq poison3 ");
   558 	asm("			cmp   r3, #2 ");
   559 	asm("			moveq   lr, pc ");
   560 	asm("			beq poison3 ");
   561 	asm("			cmp   r3, #2 ");
   562 	asm("			moveq   lr, pc ");
   563 	asm("			beq poison3 ");
   564 	asm("			cmp   r3, #2 ");
   565 	asm("			moveq   lr, pc ");
   566 	asm("			beq poison3 ");
   567 	asm("			cmp   r3, #2 ");
   568 	asm("			moveq   lr, pc ");
   569 	asm("			beq poison3 ");
   570 	asm("			cmp   r3, #2 ");
   571 	asm("			moveq   lr, pc ");
   572 	asm("			beq poison3 ");
   573 	asm("			cmp   r3, #2 ");
   574 	asm("			moveq   lr, pc ");
   575 	asm("			beq poison3 ");
   576 	asm("			cmp   r3, #2 ");
   577 	asm("			moveq   lr, pc ");
   578 	asm("			beq poison3 ");
   579 	asm("			cmp   r3, #2 ");
   580 	asm("			moveq   lr, pc ");
   581 	asm("			beq poison3 ");
   582 	asm("			cmp   r3, #2 ");
   583 	asm("			moveq   lr, pc ");
   584 	asm("			beq poison3 ");
   585 	asm("			cmp   r3, #2 ");
   586 	asm("			moveq   lr, pc ");
   587 	asm("			beq poison3 ");
   588 	asm("			cmp   r3, #2 ");
   589 	asm("			moveq   lr, pc ");
   590 	asm("			beq poison3 ");
   591 	asm("			cmp   r3, #2 ");
   592 	asm("			moveq   lr, pc ");
   593 	asm("			beq poison3 ");
   594 	asm("			cmp   r3, #2 ");
   595 	asm("			moveq   lr, pc ");
   596 	asm("			beq poison3 ");
   597 	asm("			cmp   r3, #2 ");
   598 	asm("			moveq   lr, pc ");
   599 	asm("			beq poison3 ");
   600 	asm("			cmp   r3, #2 ");
   601 	asm("			moveq   lr, pc ");
   602 	asm("			beq poison3 ");
   603 	asm("			cmp   r3, #2 ");
   604 	asm("			moveq   lr, pc ");
   605 	asm("			beq poison3 ");
   606 	asm("			cmp   r3, #2 ");
   607 	asm("			moveq   lr, pc ");
   608 	asm("			beq poison3 ");
   609 	asm("			cmp   r3, #2 ");
   610 	asm("			moveq   lr, pc ");
   611 	asm("			beq poison3 ");
   612 	asm("			cmp   r3, #2 ");
   613 	asm("			moveq   lr, pc ");
   614 	asm("			beq poison3 ");
   615 	asm("			cmp   r3, #2 ");
   616 	asm("			moveq   lr, pc ");
   617 	asm("			beq poison3 ");
   618 	asm("			cmp   r3, #2 ");
   619 	asm("			moveq   lr, pc ");
   620 	asm("			beq poison3 ");
   621 	asm("			cmp   r3, #2 ");
   622 	asm("			moveq   lr, pc ");
   623 	asm("			beq poison3 ");
   624 	asm("			cmp   r3, #2 ");
   625 	asm("			moveq   lr, pc ");
   626 	asm("			beq poison3 "); 
   627 	asm("			cmp   r3, #2 ");
   628 	asm("			moveq   lr, pc ");
   629 	asm("			beq poison3 ");
   630 	asm("			cmp   r3, #2 ");
   631 	asm("			moveq   lr, pc ");
   632 	asm("			beq poison3 ");
   633 	asm("			cmp   r3, #2 ");
   634 	asm("			moveq   lr, pc ");
   635 	asm("			beq poison3 ");
   636 	asm("			cmp   r3, #2 ");
   637 	asm("			moveq   lr, pc ");
   638 	asm("			beq poison3 ");
   639 	asm("			cmp   r3, #2 ");
   640 	asm("			moveq   lr, pc ");
   641 	asm("			beq poison3 ");
   642 	asm("			cmp   r3, #2 ");
   643 	asm("			moveq   lr, pc ");
   644 	asm("			beq poison3 ");
   645 	asm("			cmp   r3, #2 ");
   646 	asm("			moveq   lr, pc ");
   647 	asm("			beq poison3 ");
   648 	asm("			cmp   r3, #2 ");
   649 	asm("			moveq   lr, pc ");
   650 	asm("			beq poison3 ");
   651 	asm("			cmp   r3, #2 ");
   652 	asm("			moveq   lr, pc ");
   653 	asm("			beq poison3 ");
   654 	asm("			cmp   r3, #2 ");
   655 	asm("			moveq   lr, pc ");
   656 	asm("			beq poison3 ");
   657 	asm("			cmp   r3, #2 ");
   658 	asm("			moveq   lr, pc ");
   659 	asm("			beq poison3 ");
   660 	asm("			cmp   r3, #2 ");
   661 	asm("			moveq   lr, pc ");
   662 	asm("			beq poison3 ");
   663 	asm("			cmp   r3, #2 ");
   664 	asm("			moveq   lr, pc ");
   665 	asm("			beq poison3 ");
   666 	asm("			cmp   r3, #2 ");
   667 	asm("			moveq   lr, pc ");
   668 	asm("			beq poison3 ");
   669 	asm("			cmp   r3, #2 ");
   670 	asm("			moveq   lr, pc ");
   671 	asm("			beq poison3 ");
   672 	asm("			cmp   r3, #2 ");
   673 	asm("			moveq   lr, pc ");
   674 	asm("			beq poison3 ");
   675 	asm("			cmp   r3, #2 ");
   676 	asm("			moveq   lr, pc ");
   677 	asm("			beq poison3 ");
   678 	asm("			cmp   r3, #2 ");
   679 	asm("			moveq   lr, pc ");
   680 	asm("			beq poison3 ");
   681 	asm("			cmp   r3, #2 ");
   682 	asm("			moveq   lr, pc ");
   683 	asm("			beq poison3 ");
   684 	asm("			cmp   r3, #2 ");
   685 	asm("			moveq   lr, pc ");
   686 	asm("			beq poison3 ");
   687 	asm("			cmp   r3, #2 ");
   688 	asm("			moveq   lr, pc ");
   689 	asm("			beq poison3 ");
   690 	asm("			cmp   r3, #2 ");
   691 	asm("			moveq   lr, pc ");
   692 	asm("			beq poison3 ");
   693 	asm("			cmp   r3, #2 ");
   694 	asm("			moveq   lr, pc ");
   695 	asm("			beq poison3 ");
   696 	asm("			cmp   r3, #2 ");
   697 	asm("			moveq   lr, pc ");
   698 	asm("			beq poison3 ");
   699 	asm("			cmp   r3, #2 ");
   700 	asm("			moveq   lr, pc ");
   701 	asm("			beq poison3 ");
   702 	asm("			cmp   r3, #2 ");
   703 	asm("			moveq   lr, pc ");
   704 	asm("			beq poison3 ");
   705 	asm("			cmp   r3, #2 ");
   706 	asm("			moveq   lr, pc ");
   707 	asm("			beq poison3 ");
   708 	asm("			cmp   r3, #2 ");
   709 	asm("			moveq   lr, pc ");
   710 	asm("			beq poison3 ");
   711 	asm("			cmp   r3, #2 ");
   712 	asm("			moveq   lr, pc ");
   713 	asm("			beq poison3 ");
   714 	asm("			cmp   r3, #2 ");
   715 	asm("			moveq   lr, pc ");
   716 	asm("			beq poison3 ");
   717 	asm("			cmp   r3, #2 ");
   718 	asm("			moveq   lr, pc ");
   719 	asm("			beq poison3 ");
   720 	asm("			cmp   r3, #2 ");
   721 	asm("			moveq   lr, pc ");
   722 	asm("			beq poison3 ");
   723 	asm("			cmp   r3, #2 ");
   724 	asm("			moveq   lr, pc ");
   725 	asm("			beq poison3 ");
   726 	asm("			cmp   r3, #2 ");
   727 	asm("			moveq   lr, pc ");
   728 	asm("			beq poison3 ");
   729 	asm("			cmp   r3, #2 ");
   730 	asm("			moveq   lr, pc ");
   731 	asm("			beq poison3 ");
   732 	asm("			cmp   r3, #2 ");
   733 	asm("			moveq   lr, pc ");
   734 	asm("			beq poison3 ");
   735 	asm("			cmp   r3, #2 ");
   736 	asm("			moveq   lr, pc ");
   737 	asm("			beq poison3 ");
   738 	asm("			cmp   r3, #2 ");
   739 	asm("			moveq   lr, pc ");
   740 	asm("			beq poison3 ");
   741 	asm("			cmp   r3, #2 ");
   742 	asm("			moveq   lr, pc ");
   743 	asm("			beq poison3 ");
   744 	asm("			cmp   r3, #2 ");
   745 	asm("			moveq   lr, pc ");
   746 	asm("			beq poison3 ");
   747 	asm("			cmp   r3, #2 ");
   748 	asm("			moveq   lr, pc ");
   749 	asm("			beq poison3 ");
   750 	asm("			cmp   r3, #2 ");
   751 	asm("			moveq   lr, pc ");
   752 	asm("			beq poison3 ");
   753 	asm("			cmp   r3, #2 ");
   754 	asm("			moveq   lr, pc ");
   755 	asm("			beq poison3 ");
   756 	asm("			cmp   r3, #2 ");
   757 	asm("			moveq   lr, pc ");
   758 	asm("			beq poison3 ");
   759 	asm("			cmp   r3, #2 ");
   760 	asm("			moveq   lr, pc ");
   761 	asm("			beq poison3 ");
   762 	asm("			cmp   r3, #2 ");
   763 	asm("			moveq   lr, pc ");
   764 	asm("			beq poison3 ");
   765 	asm("			cmp   r3, #2 ");
   766 	asm("			moveq   lr, pc ");
   767 	asm("			beq poison3 ");
   768 	asm("			cmp   r3, #2 ");
   769 	asm("			moveq   lr, pc ");
   770 	asm("			beq poison3 ");
   771 	asm("			cmp   r3, #2 ");
   772 	asm("			moveq   lr, pc ");
   773 	asm("			beq poison3 ");
   774 	asm("			cmp   r3, #2 ");
   775 	asm("			moveq   lr, pc ");
   776 	asm("			beq poison3 ");
   777 	asm("			cmp   r3, #2 ");
   778 	asm("			moveq   lr, pc ");
   779 	asm("			beq poison3 ");
   780 	asm("			cmp   r3, #2 ");
   781 	asm("			moveq   lr, pc ");
   782 	asm("			beq poison3 ");
   783 	asm("			cmp   r3, #2 ");
   784 	asm("			moveq   lr, pc ");
   785 	asm("			beq poison3 ");
   786 	asm("			cmp   r3, #2 ");
   787 	asm("			moveq   lr, pc ");
   788 	asm("			beq poison3 ");
   789 	asm("			cmp   r3, #2 ");
   790 	asm("			moveq   lr, pc ");
   791 	asm("			beq poison3 ");
   792 	asm("			cmp   r3, #2 ");
   793 	asm("			moveq   lr, pc ");
   794 	asm("			beq poison3 ");
   795 	asm("			cmp   r3, #2 ");
   796 	asm("			moveq   lr, pc ");
   797 	asm("			beq poison3 ");
   798 	asm("			cmp   r3, #2 ");
   799 	asm("			moveq   lr, pc ");
   800 	asm("			beq poison3 ");
   801 	asm("			cmp   r3, #2 ");
   802 	asm("			moveq   lr, pc ");
   803 	asm("			beq poison3 ");
   804 	asm("			cmp   r3, #2 ");
   805 	asm("			moveq   lr, pc ");
   806 	asm("			beq poison3 ");
   807 	asm("			cmp   r3, #2 ");
   808 	asm("			moveq   lr, pc ");
   809 	asm("			beq poison3 ");
   810 	asm("			cmp   r3, #2 ");
   811 	asm("			moveq   lr, pc ");
   812 	asm("			beq poison3 ");
   813 	asm("			teq   r3, #2 ");		// did we fall through?
   814 	asm("			movne r0, #-1 ");		// yes we did!
   815 	__JUMP(ne,r1);							// return
   816 	asm("			subs r2, r2, #1 ");	// no, decrement the counter and go again
   817 	asm("			bne  loop2 ");			// if there are iters left and we didn't fall through
   818 	__JUMP(,r1); // the end!
   819 	asm("poison4: ");
   820 	asm("			mov   r3, #1 ");  // woops!
   821 	__JUMP(,lr);
   822 	asm("poison3: ");
   823 	asm("			mov   r3, #2 ");  // we're ok
   824 	__JUMP(,lr);
   825 	}
   826 	
   827 __NAKED__ void BranchTest2End()
   828 {
   829 	__JUMP(,lr);
   830 }
   831 
   832 
   833 __NAKED__ TInt BranchTest3()
   834 	{
   835 	asm("			b entrage ");		// skip the subroutine
   836 	asm("nontoxic1: ");
   837 	asm("			mov   r3, #3 ");  // we're ok
   838 	__JUMP(,lr);
   839 	asm("entrage: ");
   840 	asm("			movs  r0, #0");		// return status KErrNone
   841 	asm("			mov   r3, #3");		// this is test 3
   842 	asm("			mov   r1, lr");		// save return address
   843 	asm("			mov   r2, #0xff00"); // iterations
   844 	asm("loop3:	");
   845 	asm("			cmp   r1, r1 ");	// reset flags
   846 	asm("			bleq nontoxic1 ");	// start test!
   847 	asm("			cmp   r3, #3 "); 
   848 	asm("			bleq nontoxic1 "); 
   849 	asm("			cmp   r3, #3 ");
   850 	asm("			bleq nontoxic1 ");
   851 	asm("			cmp   r3, #3 ");
   852 	asm("			bleq nontoxic1 ");
   853 	asm("			cmp   r3, #3 ");
   854 	asm("			bleq nontoxic1 ");
   855 	asm("			cmp   r3, #3 ");
   856 	asm("			bleq nontoxic1 ");
   857 	asm("			cmp   r3, #3 ");
   858 	asm("			bleq nontoxic1 ");
   859 	asm("			cmp   r3, #3 ");
   860 	asm("			bleq nontoxic1 ");
   861 	asm("			cmp   r3, #3 ");
   862 	asm("			bleq nontoxic1 ");
   863 	asm("			cmp   r3, #3 ");
   864 	asm("			bleq nontoxic1 ");
   865 	asm("			cmp   r3, #3 ");
   866 	asm("			bleq nontoxic1 ");
   867 	asm("			cmp   r3, #3 ");
   868 	asm("			bleq nontoxic1 ");
   869 	asm("			cmp   r3, #3 ");
   870 	asm("			bleq nontoxic1 ");
   871 	asm("			cmp   r3, #3 ");
   872 	asm("			bleq nontoxic1 ");
   873 	asm("			cmp   r3, #3 ");
   874 	asm("			bleq nontoxic1 ");
   875 	asm("			cmp   r3, #3 ");
   876 	asm("			bleq nontoxic1 ");
   877 	asm("			cmp   r3, #3 ");
   878 	asm("			bleq nontoxic1 ");
   879 	asm("			cmp   r3, #3 ");
   880 	asm("			bleq nontoxic1 ");
   881 	asm("			cmp   r3, #3 ");
   882 	asm("			bleq nontoxic1 ");
   883 	asm("			cmp   r3, #3 ");
   884 	asm("			bleq nontoxic1 ");
   885 	asm("			cmp   r3, #3 ");
   886 	asm("			bleq nontoxic1 ");
   887 	asm("			cmp   r3, #3 ");
   888 	asm("			bleq nontoxic1 ");
   889 	asm("			cmp   r3, #3 ");
   890 	asm("			bleq nontoxic1 ");
   891 	asm("			cmp   r3, #3 ");
   892 	asm("			bleq nontoxic1 ");
   893 	asm("			cmp   r3, #3 ");
   894 	asm("			bleq nontoxic1 ");
   895 	asm("			cmp   r3, #3 ");
   896 	asm("			bleq nontoxic1 ");
   897 	asm("			cmp   r3, #3 ");
   898 	asm("			bleq nontoxic1 ");
   899 	asm("			cmp   r3, #3 ");
   900 	asm("			bleq nontoxic1 ");
   901 	asm("			cmp   r3, #3 ");
   902 	asm("			bleq nontoxic1 ");
   903 	asm("			cmp   r3, #3 ");
   904 	asm("			bleq nontoxic1 ");
   905 	asm("			cmp   r3, #3 ");
   906 	asm("			bleq nontoxic1 ");
   907 	asm("			cmp   r3, #3 ");
   908 	asm("			bleq nontoxic1 ");
   909 	asm("			cmp   r3, #3 ");
   910 	asm("			bleq nontoxic1 ");
   911 	asm("			cmp   r3, #3 ");
   912 	asm("			bleq nontoxic1 ");
   913 	asm("			cmp   r3, #3 ");
   914 	asm("			bleq nontoxic1 ");
   915 	asm("			cmp   r3, #3 ");
   916 	asm("			bleq nontoxic1 ");
   917 	asm("			cmp   r3, #3 ");
   918 	asm("			bleq nontoxic1 ");
   919 	asm("			cmp   r3, #3 ");
   920 	asm("			bleq nontoxic1 ");
   921 	asm("			cmp   r3, #3 ");
   922 	asm("			bleq nontoxic1 ");
   923 	asm("			cmp   r3, #3 ");
   924 	asm("			bleq nontoxic1 ");
   925 	asm("			cmp   r3, #3 ");
   926 	asm("			bleq nontoxic1 ");
   927 	asm("			cmp   r3, #3 ");
   928 	asm("			bleq nontoxic1 ");
   929 	asm("			cmp   r3, #3 ");
   930 	asm("			bleq nontoxic1 ");
   931 	asm("			cmp   r3, #3 ");
   932 	asm("			bleq nontoxic1 ");
   933 	asm("			cmp   r3, #3 ");
   934 	asm("			bleq nontoxic1 ");
   935 	asm("			cmp   r3, #3 ");
   936 	asm("			bleq nontoxic1 ");
   937 	asm("			cmp   r3, #3 ");
   938 	asm("			bleq nontoxic1 ");
   939 	asm("			cmp   r3, #3 ");
   940 	asm("			bleq nontoxic1 ");
   941 	asm("			cmp   r3, #3 ");
   942 	asm("			bleq nontoxic1 ");
   943 	asm("			cmp   r3, #3 ");
   944 	asm("			bleq nontoxic1 ");
   945 	asm("			cmp   r3, #3 ");
   946 	asm("			bleq nontoxic1 ");
   947 	asm("			cmp   r3, #3 ");
   948 	asm("			bleq nontoxic1 ");
   949 	asm("			cmp   r3, #3 ");
   950 	asm("			bleq nontoxic1 ");
   951 	asm("			cmp   r3, #3 ");
   952 	asm("			bleq nontoxic1 ");
   953 	asm("			cmp   r3, #3 ");
   954 	asm("			bleq nontoxic1 ");
   955 	asm("			cmp   r3, #3 ");
   956 	asm("			bleq nontoxic1 ");
   957 	asm("			cmp   r3, #3 ");
   958 	asm("			bleq nontoxic1 ");
   959 	asm("			cmp   r3, #3 ");
   960 	asm("			bleq nontoxic1 ");
   961 	asm("			cmp   r3, #3 ");
   962 	asm("			bleq nontoxic1 ");
   963 	asm("			cmp   r3, #3 ");
   964 	asm("			bleq nontoxic1 ");
   965 	asm("			cmp   r3, #3 ");
   966 	asm("			bleq nontoxic1 ");
   967 	asm("			cmp   r3, #3 ");
   968 	asm("			bleq nontoxic1 ");
   969 	asm("			cmp   r3, #3 ");
   970 	asm("			bleq nontoxic1 ");
   971 	asm("			cmp   r3, #3 ");
   972 	asm("			bleq nontoxic1 "); 
   973 	asm("			cmp   r3, #3 ");
   974 	asm("			bleq nontoxic1 ");
   975 	asm("			cmp   r3, #3 ");
   976 	asm("			bleq nontoxic1 ");
   977 	asm("			cmp   r3, #3 ");
   978 	asm("			bleq nontoxic1 ");
   979 	asm("			cmp   r3, #3 ");
   980 	asm("			bleq nontoxic1 ");
   981 	asm("			cmp   r3, #3 ");
   982 	asm("			bleq nontoxic1 ");
   983 	asm("			cmp   r3, #3 ");
   984 	asm("			bleq nontoxic1 ");
   985 	asm("			cmp   r3, #3 ");
   986 	asm("			bleq nontoxic1 ");
   987 	asm("			cmp   r3, #3 ");
   988 	asm("			bleq nontoxic1 ");
   989 	asm("			cmp   r3, #3 ");
   990 	asm("			bleq nontoxic1 ");
   991 	asm("			cmp   r3, #3 ");
   992 	asm("			bleq nontoxic1 ");
   993 	asm("			cmp   r3, #3 ");
   994 	asm("			bleq nontoxic1 ");
   995 	asm("			cmp   r3, #3 ");
   996 	asm("			bleq nontoxic1 ");
   997 	asm("			cmp   r3, #3 ");
   998 	asm("			bleq nontoxic1 ");
   999 	asm("			cmp   r3, #3 ");
  1000 	asm("			bleq nontoxic1 ");
  1001 	asm("			cmp   r3, #3 ");
  1002 	asm("			bleq nontoxic1 ");
  1003 	asm("			cmp   r3, #3 ");
  1004 	asm("			bleq nontoxic1 ");
  1005 	asm("			cmp   r3, #3 ");
  1006 	asm("			bleq nontoxic1 ");
  1007 	asm("			cmp   r3, #3 ");
  1008 	asm("			bleq nontoxic1 ");
  1009 	asm("			cmp   r3, #3 ");
  1010 	asm("			bleq nontoxic1 ");
  1011 	asm("			cmp   r3, #3 ");
  1012 	asm("			bleq nontoxic1 ");
  1013 	asm("			cmp   r3, #3 ");
  1014 	asm("			bleq nontoxic1 ");
  1015 	asm("			cmp   r3, #3 ");
  1016 	asm("			bleq nontoxic1 ");
  1017 	asm("			cmp   r3, #3 ");
  1018 	asm("			bleq nontoxic1 ");
  1019 	asm("			cmp   r3, #3 ");
  1020 	asm("			bleq nontoxic1 ");
  1021 	asm("			cmp   r3, #3 ");
  1022 	asm("			bleq nontoxic1 ");
  1023 	asm("			cmp   r3, #3 ");
  1024 	asm("			bleq nontoxic1 ");
  1025 	asm("			cmp   r3, #3 ");
  1026 	asm("			bleq nontoxic1 ");
  1027 	asm("			cmp   r3, #3 ");
  1028 	asm("			bleq nontoxic1 ");
  1029 	asm("			cmp   r3, #3 ");
  1030 	asm("			bleq nontoxic1 ");
  1031 	asm("			cmp   r3, #3 ");
  1032 	asm("			bleq nontoxic1 ");
  1033 	asm("			cmp   r3, #3 ");
  1034 	asm("			bleq nontoxic1 ");
  1035 	asm("			cmp   r3, #3 ");
  1036 	asm("			bleq nontoxic1 ");
  1037 	asm("			cmp   r3, #3 ");
  1038 	asm("			bleq nontoxic1 ");
  1039 	asm("			cmp   r3, #3 ");
  1040 	asm("			bleq nontoxic1 ");
  1041 	asm("			cmp   r3, #3 ");
  1042 	asm("			bleq nontoxic1 ");
  1043 	asm("			cmp   r3, #3 ");
  1044 	asm("			bleq nontoxic1 ");
  1045 	asm("			cmp   r3, #3 ");
  1046 	asm("			bleq nontoxic1 ");
  1047 	asm("			cmp   r3, #3 ");
  1048 	asm("			bleq nontoxic1 ");
  1049 	asm("			cmp   r3, #3 ");
  1050 	asm("			bleq nontoxic1 ");
  1051 	asm("			cmp   r3, #3 ");
  1052 	asm("			bleq nontoxic1 ");
  1053 	asm("			cmp   r3, #3 ");
  1054 	asm("			bleq nontoxic1 ");
  1055 	asm("			cmp   r3, #3 ");
  1056 	asm("			bleq nontoxic1 ");
  1057 	asm("			cmp   r3, #3 ");
  1058 	asm("			bleq nontoxic1 ");
  1059 	asm("			cmp   r3, #3 ");
  1060 	asm("			bleq nontoxic1 ");
  1061 	asm("			cmp   r3, #3 ");
  1062 	asm("			bleq nontoxic1 ");
  1063 	asm("			cmp   r3, #3 ");
  1064 	asm("			bleq nontoxic1 ");
  1065 	asm("			cmp   r3, #3 ");
  1066 	asm("			bleq nontoxic1 ");
  1067 	asm("			cmp   r3, #3 ");
  1068 	asm("			bleq nontoxic1 ");
  1069 	asm("			cmp   r3, #3 ");
  1070 	asm("			bleq nontoxic1 ");
  1071 	asm("			cmp   r3, #3 ");
  1072 	asm("			bleq nontoxic1 ");
  1073 	asm("			cmp   r3, #3 ");
  1074 	asm("			bleq nontoxic1 ");
  1075 	asm("			cmp   r3, #3 ");
  1076 	asm("			bleq nontoxic1 ");
  1077 	asm("			cmp   r3, #3 ");
  1078 	asm("			bleq nontoxic1 ");
  1079 	asm("			cmp   r3, #3 ");
  1080 	asm("			bleq nontoxic1 ");
  1081 	asm("			cmp   r3, #3 ");
  1082 	asm("			bleq nontoxic1 ");
  1083 	asm("			cmp   r3, #3 ");
  1084 	asm("			bleq nontoxic1 ");
  1085 	asm("			cmp   r3, #3 ");
  1086 	asm("			bleq nontoxic1 ");
  1087 	asm("			cmp   r3, #3 ");
  1088 	asm("			bleq nontoxic1 ");
  1089 	asm("			cmp   r3, #3 ");
  1090 	asm("			bleq nontoxic1 ");
  1091 	asm("			cmp   r3, #3 ");
  1092 	asm("			bleq nontoxic1 ");
  1093 	asm("			cmp   r3, #3 ");
  1094 	asm("			bleq nontoxic1 ");
  1095 	asm("			cmp   r3, #3 ");
  1096 	asm("			bleq nontoxic1 ");
  1097 	asm("			teq   r3, #3 ");		// did we fall through?
  1098 	asm("			movne r0, #-1 ");		// yes we did!
  1099 	__JUMP(ne,r1);							// return
  1100 	asm("			subs r2, r2, #1 ");		// no, decrement the counter and go again
  1101 	asm("			bne  loop3 ");			// if there are iters left and we didn't fall through
  1102 	__JUMP(,r1); // the end!
  1103 	asm("poison5: ");
  1104 	asm("			mov   r3, #1 ");  // woops!
  1105 	__JUMP(,lr);
  1106 	}
  1107 
  1108 __NAKED__ void BranchTest3End()
  1109 {
  1110 	__JUMP(,lr);
  1111 }
  1112 
  1113 __NAKED__ void BranchTest4(TInt)
  1114 {
  1115 	asm("		mov		r2, #0xff000 "); // big number
  1116 	asm("bloop: ");
  1117 	asm("		cmp		r0, #0 ");
  1118 	asm("		beq		skippy ");
  1119 
  1120 	asm("		and		r4, r4, r4 ");
  1121 	asm("		and 	r5, r5, r5 ");
  1122 	asm("		and 	r6, r6, r6 ");
  1123 	asm("		and 	r7, r7, r7 ");
  1124 	asm("		and 	r8, r8, r8 ");
  1125 
  1126 	asm("skippy: ");
  1127 	asm("		subs	r2, r2, #1 ");
  1128 	asm("		bne		bloop ");
  1129 	__JUMP(,lr);
  1130 }
  1131 __NAKED__ void BranchTest4End()
  1132 {
  1133 	__JUMP(,lr);
  1134 }
  1135 #endif