mirror of
https://github.com/boostorg/smart_ptr.git
synced 2025-08-01 21:54:28 +02:00
Merge pull request #47 from wzssyqa/mips-r6-no-set-mips2
disable .set mips2 for mips release r6
This commit is contained in:
@@ -38,7 +38,9 @@ inline void atomic_increment( int * pw )
|
|||||||
(
|
(
|
||||||
"0:\n\t"
|
"0:\n\t"
|
||||||
".set push\n\t"
|
".set push\n\t"
|
||||||
|
#if !defined(__mips_isa_rev) || (__mips_isa_rev < 6)
|
||||||
".set mips2\n\t"
|
".set mips2\n\t"
|
||||||
|
#endif
|
||||||
"ll %0, %1\n\t"
|
"ll %0, %1\n\t"
|
||||||
"addiu %0, 1\n\t"
|
"addiu %0, 1\n\t"
|
||||||
"sc %0, %1\n\t"
|
"sc %0, %1\n\t"
|
||||||
@@ -59,7 +61,9 @@ inline int atomic_decrement( int * pw )
|
|||||||
(
|
(
|
||||||
"0:\n\t"
|
"0:\n\t"
|
||||||
".set push\n\t"
|
".set push\n\t"
|
||||||
|
#if !defined(__mips_isa_rev) || (__mips_isa_rev < 6)
|
||||||
".set mips2\n\t"
|
".set mips2\n\t"
|
||||||
|
#endif
|
||||||
"ll %1, %2\n\t"
|
"ll %1, %2\n\t"
|
||||||
"addiu %0, %1, -1\n\t"
|
"addiu %0, %1, -1\n\t"
|
||||||
"sc %0, %2\n\t"
|
"sc %0, %2\n\t"
|
||||||
@@ -85,7 +89,9 @@ inline int atomic_conditional_increment( int * pw )
|
|||||||
(
|
(
|
||||||
"0:\n\t"
|
"0:\n\t"
|
||||||
".set push\n\t"
|
".set push\n\t"
|
||||||
|
#if !defined(__mips_isa_rev) || (__mips_isa_rev < 6)
|
||||||
".set mips2\n\t"
|
".set mips2\n\t"
|
||||||
|
#endif
|
||||||
"ll %0, %2\n\t"
|
"ll %0, %2\n\t"
|
||||||
"beqz %0, 1f\n\t"
|
"beqz %0, 1f\n\t"
|
||||||
"addiu %1, %0, 1\n\t"
|
"addiu %1, %0, 1\n\t"
|
||||||
|
Reference in New Issue
Block a user