[llvm-commits] CVS: llvm/lib/Target/X86/X86InstrBuilder.h

Alkis Evlogimenos alkis at cs.uiuc.edu
Thu Mar 4 12:07:02 PST 2004


Changes in directory llvm/lib/Target/X86:

X86InstrBuilder.h updated: 1.10 -> 1.11

---
Log message:

Add assertion for scale verification.


---
Diffs of the changes:  (+1 -0)

Index: llvm/lib/Target/X86/X86InstrBuilder.h
diff -u llvm/lib/Target/X86/X86InstrBuilder.h:1.10 llvm/lib/Target/X86/X86InstrBuilder.h:1.11
--- llvm/lib/Target/X86/X86InstrBuilder.h:1.10	Wed Feb 25 00:01:07 2004
+++ llvm/lib/Target/X86/X86InstrBuilder.h	Thu Mar  4 12:05:02 2004
@@ -54,6 +54,7 @@
                                                  unsigned Scale,
                                                  unsigned IndexReg,
                                                  unsigned Disp) {
+  assert (Scale == 1 || Scale == 2 || Scale == 4 || Scale == 8);
   return MIB.addReg(BaseReg).addZImm(Scale).addReg(IndexReg).addSImm(Disp);
 }
 





More information about the llvm-commits mailing list