Displaying 3 results from an estimated 3 matches for "fk_data_2".
2013 Dec 12
3
[LLVMdev] [RFC PATCH 1/2] x86: Fix ModR/M byte output in 16-bit addressing mode
...aseReg
+ EmitByte(ModRMByte(0, RegOpcodeField, 6), CurByte, OS);
+ }
+
+ // FIXME: Yes we can!
+ assert(Disp.isImm() && "cannot emit 16-bit relocation");
+ // Emit 16-bit displacement for plain disp16 or [REG]+disp16 cases.
+ EmitImmediate(Disp, MI.getLoc(), 2, FK_Data_2, CurByte, OS, Fixups);
+ return;
+ }
+
// Determine whether a SIB byte is needed.
// If no BaseReg, issue a RIP relative instruction only if the MCE can
// resolve addresses on-the-fly, otherwise use SIB (Intel Manual 2A, table
diff --git a/test/MC/X86/address-size.s b/test/MC/X86/addr...
2013 Dec 16
0
[LLVMdev] [RFC PATCH 1/2] x86: Fix ModR/M byte output in 16-bit addressing mode
...te(0, RegOpcodeField, 6), CurByte, OS);
> + }
> +
> + // FIXME: Yes we can!
> + assert(Disp.isImm() && "cannot emit 16-bit relocation");
> + // Emit 16-bit displacement for plain disp16 or [REG]+disp16 cases.
> + EmitImmediate(Disp, MI.getLoc(), 2, FK_Data_2, CurByte, OS, Fixups);
> + return;
> + }
> +
> // Determine whether a SIB byte is needed.
> // If no BaseReg, issue a RIP relative instruction only if the MCE can
> // resolve addresses on-the-fly, otherwise use SIB (Intel Manual 2A,
> table
> diff --git a/test/...
2013 Sep 25
1
[LLVMdev] arm64 / iOS support
...unsigned &Log2Size) {
+ RelocType = unsigned(MachO::ARM64_RELOC_UNSIGNED);
+ Log2Size = ~0U;
+
+ AArch64::Fixups realKind = (AArch64::Fixups)Kind;
+ switch (Kind) {
+ default:
+ return false;
+
+ case FK_Data_1:
+ Log2Size = llvm::Log2_32(1);
+ return true;
+ case FK_Data_2:
+ Log2Size = llvm::Log2_32(2);
+ return true;
+ case FK_Data_4:
+ Log2Size = llvm::Log2_32(4);
+ return true;
+ case FK_Data_8:
+ Log2Size = llvm::Log2_32(8);
+ return true;
+ case AArch64::fixup_a64_adr_prel_page:
+ RelocType = unsigned(MachO::ARM64_RELOC_PAGE21);
+ Log...