1
1

- Delete the compiler-generated comments APP/NO_APP, as some

assemblers do not understand them (SunOS 5.10)

This commit was SVN r9307.
Этот коммит содержится в:
Rainer Keller 2006-03-16 15:14:00 +00:00
родитель 820548a84a
Коммит d5d552c97b
3 изменённых файлов: 0 добавлений и 30 удалений

Просмотреть файл

@ -31,11 +31,9 @@ START_FUNC(opal_atomic_cmpset_32)
movl 8(%ebp), %edx
movl 16(%ebp), %ecx
movl 12(%ebp), %eax
#APP
lock; cmpxchgl %ecx,(%edx)
sete %dl
#NO_APP
movzbl %dl, %eax
leave
ret
@ -63,14 +61,12 @@ START_FUNC(opal_atomic_cmpset_64)
movl -32(%ebp), %esi
movl -28(%ebp), %ecx
movl %ebx, %eax
#APP
push %ebx
movl %esi, %ebx
lock; cmpxchg8b (%edi)
sete %dl
pop %ebx
#NO_APP
movzbl %dl, %eax
movl -12(%ebp), %ebx
movl -8(%ebp), %esi
@ -86,9 +82,7 @@ START_FUNC(opal_atomic_add_32)
movl %esp, %ebp
movl 8(%ebp), %eax
movl 12(%ebp), %edx
#APP
lock; addl %edx,(%eax)
#NO_APP
movl (%eax), %eax
leave
ret
@ -100,9 +94,7 @@ START_FUNC(opal_atomic_sub_32)
movl %esp, %ebp
movl 8(%ebp), %eax
movl 12(%ebp), %edx
#APP
lock; subl %edx,(%eax)
#NO_APP
movl (%eax), %eax
leave
ret
@ -112,9 +104,7 @@ END_FUNC(opal_atomic_sub_32)
START_FUNC(opal_sys_timer_get_cycles)
pushl %ebp
movl %esp, %ebp
#APP
rdtsc
#NO_APP
popl %ebp
ret
END_FUNC(opal_sys_timer_get_cycles)

Просмотреть файл

@ -103,9 +103,7 @@ opal_atomic_cmpset_rel_64:
opal_sys_timer_get_cycles:
.prologue
.body
#APP
mov r8=ar.itc
#NO_APP
br.ret.sptk.many b0
;;
.endp opal_sys_timer_get_cycles#

Просмотреть файл

@ -7,32 +7,25 @@ START_FILE
ALIGN(8)
LEAF(opal_atomic_mb)
#APP
sync
#NO_APP
j ra
END(opal_atomic_mb)
ALIGN(8)
LEAF(opal_atomic_rmb)
#APP
sync
#NO_APP
j ra
END(opal_atomic_rmb)
LEAF(opal_atomic_wmb)
#APP
sync
#NO_APP
j ra
END(opal_atomic_wmb)
LEAF(opal_atomic_cmpset_32)
#APP
.set noreorder
retry1:
ll $3, 0($4)
@ -43,7 +36,6 @@ retry1:
done1:
.set reorder
#NO_APP
xor $3,$3,$5
j ra
sltu $2,$3,1
@ -51,7 +43,6 @@ END(opal_atomic_cmpset_32)
LEAF(opal_atomic_cmpset_acq_32)
#APP
.set noreorder
retry2:
ll $3, 0($4)
@ -63,7 +54,6 @@ done2:
sync
.set reorder
#NO_APP
xor $3,$3,$5
j ra
sltu $2,$3,1
@ -71,7 +61,6 @@ END(opal_atomic_cmpset_acq_32)
LEAF(opal_atomic_cmpset_rel_32)
#APP
.set noreorder
sync
retry3:
@ -83,7 +72,6 @@ retry3:
done3:
.set reorder
#NO_APP
xor $3,$3,$5
j ra
sltu $2,$3,1
@ -91,7 +79,6 @@ END(opal_atomic_cmpset_rel_32)
LEAF(opal_atomic_cmpset_64)
#APP
.set noreorder
retry4:
lld $3, 0($4)
@ -102,7 +89,6 @@ retry4:
done4:
.set reorder
#NO_APP
xor $4,$3,$5
j ra
sltu $3,$4,1
@ -110,7 +96,6 @@ END(opal_atomic_cmpset_64)
LEAF(opal_atomic_cmpset_acq_64)
#APP
.set noreorder
retry5:
lld $3, 0($4)
@ -121,7 +106,6 @@ retry5:
done5:
.set reorder
sync
#NO_APP
xor $4,$3,$5
j ra
sltu $3,$4,1
@ -129,7 +113,6 @@ END(opal_atomic_cmpset_acq_64)
LEAF(opal_atomic_cmpset_rel_64)
#APP
.set noreorder
sync
retry6:
@ -141,7 +124,6 @@ retry6:
done6:
.set reorder
#NO_APP
xor $4,$3,$5
j ra
sltu $3,$4,1