Lines Matching refs:imm

305 local function parse_imm(imm, bits, shift, scale, signed)
306 imm = match(imm, "^#(.*)$")
307 if not imm then werror("expected immediate operand") end
308 local n = parse_number(imm)
320 werror("out of range immediate `"..imm.."'")
322 waction("IMM", (signed and 32768 or 0)+scale*1024+bits*32+shift, imm)
327 local function parse_imm12(imm)
328 imm = match(imm, "^#(.*)$")
329 if not imm then werror("expected immediate operand") end
330 local n = parse_number(imm)
337 werror("out of range immediate `"..imm.."'")
339 waction("IMM12", 0, imm)
344 local function parse_imm13(imm)
345 imm = match(imm, "^#(.*)$")
346 if not imm then werror("expected immediate operand") end
347 local n = parse_number(imm)
369 werror("out of range immediate `"..imm.."'")
371 waction("IMM13X", 0, format("(unsigned int)(%s)", imm))
372 actargs[#actargs+1] = format("(unsigned int)((unsigned long long)(%s)>>32)", imm)
375 waction("IMM13W", 0, imm)
380 local function parse_imm6(imm)
381 imm = match(imm, "^#(.*)$")
382 if not imm then werror("expected immediate operand") end
383 local n = parse_number(imm)
388 werror("out of range immediate `"..imm.."'")
390 waction("IMM6", 0, imm)
395 local function parse_imm_load(imm, scale)
396 local n = parse_number(imm)
404 werror("out of range immediate `"..imm.."'")
406 waction("IMML", 0, imm)
411 local function parse_fpimm(imm)
412 imm = match(imm, "^#(.*)$")
413 if not imm then werror("expected immediate operand") end
414 local n = parse_number(imm)
423 werror("out of range immediate `"..imm.."'")
492 local imm = match(p2a, "^,%s*#(.*)$")
493 if imm then
494 op = op + parse_imm_load(imm, scale)