Simplify the code a lot - don't try to be too clever and handle chips with
[dragonfly.git] / test / cpuperf / cpu_ladd.S
blobffcaa27fc1ff026ac2d43df2a35dfe1ea02064ac
1 /* $DragonFly: src/test/cpuperf/cpu_ladd.S,v 1.1 2004/02/09 18:15:35 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         nop
12         nop
13         movl    %ebx,%edx
14         ret
16         .p2align 5
17 test_load:
18         movl    4(%esp),%ecx
19         addl    %ebx,%edx
20         lock; addl      $1,(%ecx)       /* instruction under test */
21         movl    %ebx,%edx
22         ret
24         .p2align 5
25 test_str:
26         .asciz  "3 x addl $1,%eax in pipeline"