Displaying 2 results from an estimated 2 matches for "scaleamt".
2018 Jun 26
2
MachineFunction Instructions Pass using Segment Registers
...:
> /* 1 mov (%gs), %r14 */
> MachineInstrBuilder e1 =
> BuildMI(MBB,MBB.end(),DL,TII->get(X86::MOV64rm),X86::R14)
> .addReg(X86::GS);
> /* 2 mov %r15, %gs:0x0(%r14) */
> MachineOperand baseReg = MachineOperand::CreateReg(X86::GS,false);
> MachineOperand scaleAmt = MachineOperand::CreateImm(0x1);
> MachineOperand indexReg = MachineOperand::CreateReg(X86::R14,false);
> MachineOperand disp = MachineOperand::CreateImm(0x0);
>
> BuildMI(MBB, MBB.end(), DL, TII->get(X86::MOV64mr))
> .add(baseReg)
> .add(scaleAmt)
>...
2018 Jun 24
2
MachineFunction Instructions Pass using Segment Registers
The size suffix thing is a weird quirk in our assembler I should look into
fixing. Instructions in at&t syntax usually have a size suffix that is
often optional
For example:
add %ax, %bx
and
addw %ax, %bx
Are equivalent because the register name indicates the size.
but for an instruction like this
addw $1, (%ax)
There is nothing to infer the size from so an explicit suffix is