about summary refs log tree commit diff
path: root/sysdeps/sparc/sparc64/strcmp.S
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/sparc/sparc64/strcmp.S')
-rw-r--r--sysdeps/sparc/sparc64/strcmp.S5
1 files changed, 5 insertions, 0 deletions
diff --git a/sysdeps/sparc/sparc64/strcmp.S b/sysdeps/sparc/sparc64/strcmp.S
index 1288688c0c..428eb9ccaf 100644
--- a/sysdeps/sparc/sparc64/strcmp.S
+++ b/sysdeps/sparc/sparc64/strcmp.S
@@ -22,6 +22,11 @@
 
 #include <sysdep.h>
 #include <asm/asi.h>
+#ifndef XCC
+	.register	%g2, #scratch
+	.register	%g3, #scratch
+	.register	%g7, #scratch
+#endif
 
 	/* Normally, this uses
 	   ((xword - 0x0101010101010101) & 0x8080808080808080) test