about summary refs log tree commit diff
path: root/sysdeps/ia64/htons.S
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/ia64/htons.S')
-rw-r--r--sysdeps/ia64/htons.S10
1 files changed, 4 insertions, 6 deletions
diff --git a/sysdeps/ia64/htons.S b/sysdeps/ia64/htons.S
index fb5e66e458..74c9951f3b 100644
--- a/sysdeps/ia64/htons.S
+++ b/sysdeps/ia64/htons.S
@@ -1,5 +1,5 @@
 /* Change byte order in 16-bit value.  ia64 version.
-   Copyright (C) 2000 Free Software Foundation, Inc.
+   Copyright (C) 2000, 2001 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Dan Pop <Dan.Pop@cern.ch>
 
@@ -20,14 +20,12 @@
 
 
 #include <sysdep.h>
-#undef ret
 
 ENTRY(htons)
-	alloc	ret0 = ar.pfs, 1, 0, 0, 0
-	shl	in0 = in0, 48
+	shl	ret0 = r32, 48
 	;;
-	mux1	ret0 = in0, @rev
-	br.ret.sptk.many b0
+	mux1	ret0 = ret0, @rev
+	ret
 END(htons)
 
 weak_alias (htons, ntohs)