Tweak s390x dispatcher. Using CG elminates two load insns.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12037 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/coregrind/m_dispatch/dispatch-s390x-linux.S b/coregrind/m_dispatch/dispatch-s390x-linux.S
index b04d4fe..a3fbab4 100644
--- a/coregrind/m_dispatch/dispatch-s390x-linux.S
+++ b/coregrind/m_dispatch/dispatch-s390x-linux.S
@@ -173,10 +173,8 @@
ahi S390_REGNO_DISPATCH_CTR,-1
jz counter_is_zero
-
- lg %r10, 0(%r8,%r7) /* .guest */
lg %r11, 8(%r8,%r7) /* .host */
- cgr %r2, %r10
+ cg %r2, 0(%r8,%r7) /* next guest address == .guest ? */
jne fast_lookup_failed
/* Found a match. Call .host.
@@ -230,9 +228,8 @@
ahi S390_REGNO_DISPATCH_CTR,-1
jz counter_is_zero
- lg %r10, 0(%r8,%r7) /* .guest */
lg %r11, 8(%r8,%r7) /* .host */
- cgr %r2, %r10
+ cg %r2, 0(%r8,%r7) /* next guest address == .guest ? */
jne fast_lookup_failed
/* sizeof(FastCacheEntry) == 16, sizeof(*UInt)==8 */