Lines Matching refs:imm

320 local function parse_imm(imm, bits, shift, scale, signed)
321 imm = match(imm, "^#(.*)$")
322 if not imm then werror("expected immediate operand") end
323 local n = parse_number(imm)
335 werror("out of range immediate `"..imm.."'")
337 waction("IMM", (signed and 32768 or 0)+scale*1024+bits*32+shift, imm)
342 local function parse_imm12(imm)
343 imm = match(imm, "^#(.*)$")
344 if not imm then werror("expected immediate operand") end
345 local n = parse_number(imm)
352 werror("out of range immediate `"..imm.."'")
354 waction("IMM12", 0, imm)
359 local function parse_imm13(imm)
360 imm = match(imm, "^#(.*)$")
361 if not imm then werror("expected immediate operand") end
362 local n = parse_number(imm)
384 werror("out of range immediate `"..imm.."'")
386 waction("IMM13X", 0, format("(unsigned int)(%s)", imm))
387 actargs[#actargs+1] = format("(unsigned int)((unsigned long long)(%s)>>32)", imm)
390 waction("IMM13W", 0, imm)
395 local function parse_imm6(imm)
396 imm = match(imm, "^#(.*)$")
397 if not imm then werror("expected immediate operand") end
398 local n = parse_number(imm)
403 werror("out of range immediate `"..imm.."'")
405 waction("IMM6", 0, imm)
410 local function parse_imm_load(imm, scale)
411 local n = parse_number(imm)
419 werror("out of range immediate `"..imm.."'")
421 waction("IMML", scale, imm)
426 local function parse_fpimm(imm)
427 imm = match(imm, "^#(.*)$")
428 if not imm then werror("expected immediate operand") end
429 local n = parse_number(imm)
438 werror("out of range immediate `"..imm.."'")
507 local imm = match(p2a, "^,%s*#(.*)$")
508 if imm then
509 op = op + parse_imm_load(imm, scale)
1076 local imm = parse_number(p)
1077 if imm then
1078 local n = tobit(imm)
1079 if n == imm or (n < 0 and n + 2^32 == imm) then
1082 wputw(imm < 0 and 0xffffffff or 0)
1087 imm = nil
1090 if not imm then