Displaying 4 results from an estimated 4 matches for "modrmbyt".
Did you mean:
modrmbyte
2013 Dec 12
3
[LLVMdev] [RFC PATCH 1/2] x86: Fix ModR/M byte output in 16-bit addressing mode
...--git a/lib/Target/X86/MCTargetDesc/X86MCCodeEmitter.cpp b/lib/Target/X86/MCTargetDesc/X86MCCodeEmitter.cpp
index 7952607..12a30cf 100644
--- a/lib/Target/X86/MCTargetDesc/X86MCCodeEmitter.cpp
+++ b/lib/Target/X86/MCTargetDesc/X86MCCodeEmitter.cpp
@@ -402,6 +402,56 @@ void X86MCCodeEmitter::EmitMemModRMByte(const MCInst &MI, unsigned Op,
unsigned BaseRegNo = BaseReg ? GetX86RegNum(Base) : -1U;
+ // 16-bit addressing forms of the ModR/M byte have a different encoding for
+ // the R/M field and are far more limited in which registers can be used.
+ if (Is16BitMemOperand(MI, Op)) {
+ if...
2013 Dec 16
0
[LLVMdev] [RFC PATCH 1/2] x86: Fix ModR/M byte output in 16-bit addressing mode
...CTargetDesc/X86MCCodeEmitter.cpp
> b/lib/Target/X86/MCTargetDesc/X86MCCodeEmitter.cpp
> index 7952607..12a30cf 100644
> --- a/lib/Target/X86/MCTargetDesc/X86MCCodeEmitter.cpp
> +++ b/lib/Target/X86/MCTargetDesc/X86MCCodeEmitter.cpp
> @@ -402,6 +402,56 @@ void X86MCCodeEmitter::EmitMemModRMByte(const MCInst
> &MI, unsigned Op,
>
> unsigned BaseRegNo = BaseReg ? GetX86RegNum(Base) : -1U;
>
> + // 16-bit addressing forms of the ModR/M byte have a different encoding
> for
> + // the R/M field and are far more limited in which registers can be
> used.
> +...
2006 Sep 14
1
[LLVMdev] Hello World crashes!
Hi,
Sorry for the newbie question. I downloaded llvm 1.8a and llvm-gcc3.4, tried
out the
simple "Hello, World" program but got the following error. My system is
RedHat 9
$ ./hello
lli: /home//llvm/lib/Target/X86/X86CodeEmitter.cpp:208:
unsigned char ModRMByte(unsigned int, unsigned int, unsigned int):
Assertion `Mod < 4 && RegOpcode < 8 && RM < 8 && "ModRM Fields out of
range!"' failed.
lli((anonymous namespace)::PrintStackTrace()+0x15)[0x84ab499]
/lib/tls/libc.so.6[0x3d7ec8]
/lib/tls/libc.so.6(abort+0x15)...
2006 Jul 14
2
[LLVMdev] Hello World crashes!
...loaded llvm and tried out the
simple "Hello, World" program but got the following error. What am I
missing? I am running RHAS 3 Update 4 with GCC 3.2.3.
Thanks,
Bharadwaj
$ ./hello
lli: /home/proj/skokomish/syadaval/ia32/Sandbox/llvm/lib/Target/X86/X86CodeEmitter.cpp:208:
unsigned char ModRMByte(unsigned int, unsigned int, unsigned int):
Assertion `Mod < 4 && RegOpcode < 8 && RM < 8 && "ModRM Fields out of
range!"' failed.
lli((anonymous namespace)::PrintStackTrace()+0x15)[0x84ab499]
/lib/tls/libc.so.6[0x3d7ec8]
/lib/tls/libc.so.6(abort+0x15)...