From c7c193e4c72e9efabd528e5ef1117bbea22e5eea Mon Sep 17 00:00:00 2001 From: David Chisnall Date: Mon, 28 Dec 2015 23:12:08 +0100 Subject: [PATCH] Use the correct compare instruction. --- objc_msgSend.aarch64.S | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/objc_msgSend.aarch64.S b/objc_msgSend.aarch64.S index 31fc92b..a571bba 100644 --- a/objc_msgSend.aarch64.S +++ b/objc_msgSend.aarch64.S @@ -12,9 +12,9 @@ ldr w10, [\sel] // selector->index -> x10 ldr w11, [x9, #SHIFT_OFFSET] // dtable->shift -> x11 - tst x11, #8 // If this is a small dtable, jump to the + cmp x11, #8 // If this is a small dtable, jump to the // small dtable handlers - b.ne 2f + b.eq 2f cbz x11, 3f ubfx x11, x10, #16, #8 // Put byte 3 of the sel id in x12