summaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
authorDoug Rabson <dfr@FreeBSD.org>2001-09-22 18:22:53 +0000
committerDoug Rabson <dfr@FreeBSD.org>2001-09-22 18:22:53 +0000
commitf422e65a5d44bde91f21f59988af664f9e32efab (patch)
tree016b03b66aa56c190c444755df79683d1e4f47f6 /lib/libc
parenteba8393e91f7b6965ac29b170c0356812871bb99 (diff)
Notes
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/ia64/net/byte_swap_2.S5
-rw-r--r--lib/libc/ia64/net/byte_swap_4.S6
2 files changed, 6 insertions, 5 deletions
diff --git a/lib/libc/ia64/net/byte_swap_2.S b/lib/libc/ia64/net/byte_swap_2.S
index c7581846b83d..26073afb95c0 100644
--- a/lib/libc/ia64/net/byte_swap_2.S
+++ b/lib/libc/ia64/net/byte_swap_2.S
@@ -40,8 +40,9 @@
* Argument is an unsigned 2-byte integer (u_int16_t).
*/
ENTRY(NAME, 1) /* in0 = 0x0123 */
- extr.u ret0=in0,8,8 /* ret0 = 0x 01 */
+ extr.u r2=in0,8,8 /* r2 = 0x 01 */
+ dep r3=in0,r0,8,8 /* r3 = 0x23 */
;;
- dep ret0=ret0,in0,8,8 /* ret0 = 0x2301 */
+ or ret0=r2,r3 /* ret0 = 0x2301 */
br.ret.sptk.few rp
END(NAME)
diff --git a/lib/libc/ia64/net/byte_swap_4.S b/lib/libc/ia64/net/byte_swap_4.S
index b96f3e8fcf4b..4f4068d91a2a 100644
--- a/lib/libc/ia64/net/byte_swap_4.S
+++ b/lib/libc/ia64/net/byte_swap_4.S
@@ -45,10 +45,10 @@ ENTRY(NAME, 1) /* in0 = 0x01234567 */
extr.u r18=in0,16,8 /* r18 = 0x 23 */
extr.u ret0=in0,24,8 /* ret0 = 0x 01 */
;;
- dep ret0=ret0,r16,24,8 /* ret0 = 0x67 01 */
+ dep ret0=r16,ret0,24,8 /* ret0 = 0x67 01 */
;;
- dep ret0=ret0,r17,16,8 /* ret0 = 0x6745 01 */
+ dep ret0=r17,ret0,16,8 /* ret0 = 0x6745 01 */
;;
- dep ret0=ret0,r16,8,8 /* ret0 = 0x67452301 */
+ dep ret0=r18,ret0,8,8 /* ret0 = 0x67452301 */
br.ret.sptk.few rp
END(NAME)