Pre-2.0 release, MFC firewire disk changes to properly detach SIMs.
[dragonfly.git] / test / cpuperf / cpu_cmpadd.S
blob36f2be30c18c4022eda9557f0af597c7329c45c5
1 /* $DragonFly: src/test/cpuperf/cpu_cmpadd.S,v 1.1 2004/02/09 18:08:54 dillon Exp $ */
3         .globl  test_dummy
4         .globl  test_load
5         .globl  test_str
7         .p2align 5
8 test_dummy:
9         movl    4(%esp),%ecx
10         addl    %ebx,%edx
11         movl    %ebx,%edx
12         ret
14         .p2align 5
15 test_load:
16         movl    4(%esp),%ecx
17         addl    %ebx,%edx
18         cmpl    $0,%ecx
19         jz      1f              /* instruction under test */
20         nop                     /* instruction under test */
22         addl    $1,(%ecx)       /* instruction under test */
23         movl    %ebx,%edx
24         ret
26         .p2align 5
27 test_str:
28         .asciz  "cmp/jz/add (compare fails) in pipeline"