aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/X86/X86AsmBackend.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Target/X86/X86AsmBackend.cpp')
-rw-r--r--lib/Target/X86/X86AsmBackend.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Target/X86/X86AsmBackend.cpp b/lib/Target/X86/X86AsmBackend.cpp
index 853d3ed..83fca51 100644
--- a/lib/Target/X86/X86AsmBackend.cpp
+++ b/lib/Target/X86/X86AsmBackend.cpp
@@ -72,6 +72,11 @@ static unsigned getRelaxedOpcode(unsigned Op) {
default:
return Op;
+ // This is used on i386 with things like addl $foo, %ebx
+ // FIXME: Should the other *i8 instructions be here too? If not, it might
+ // be better to just select X86::ADD32ri instead of X86::ADD32ri8.
+ case X86::ADD32ri8: return X86::ADD32ri;
+
case X86::JAE_1: return X86::JAE_4;
case X86::JA_1: return X86::JA_4;
case X86::JBE_1: return X86::JBE_4;