From b98c92e142918700d8c8413aed6d640b4e47c677 Mon Sep 17 00:00:00 2001 From: Michael Munday Date: Thu, 8 Dec 2016 13:59:05 -0500 Subject: [PATCH] Delete unused branch_type function. --- dynasm/dasm_s390x.lua | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/dynasm/dasm_s390x.lua b/dynasm/dasm_s390x.lua index 6c2a904b..3fa4c13a 100644 --- a/dynasm/dasm_s390x.lua +++ b/dynasm/dasm_s390x.lua @@ -460,19 +460,6 @@ local function parse_label(label, def) werror("bad label `"..label.."'") end -local function branch_type(op) - if band(op, 0x7c000000) == 0x14000000 then return 0 -- B, BL - elseif shr(op, 24) == 0x54 or band(op, 0x7e000000) == 0x34000000 or - band(op, 0x3b000000) == 0x18000000 then - return 0x800 -- B.cond, CBZ, CBNZ, LDR* literal - elseif band(op, 0x7e000000) == 0x36000000 then return 0x1000 -- TBZ, TBNZ - elseif band(op, 0x9f000000) == 0x10000000 then return 0x2000 -- ADR - elseif band(op, 0x9f000000) == band(0x90000000) then return 0x3000 -- ADRP - else - assert(false, "unknown branch type") - end -end - ------------------------------------------------------------------------------ local map_op, op_template