1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 19:52:54 +01:00

Add assertion for scale verification.

llvm-svn: 12120
This commit is contained in:
Alkis Evlogimenos 2004-03-04 18:05:02 +00:00
parent 64aa7f3708
commit e8ebdcc780

View File

@ -54,6 +54,7 @@ inline const MachineInstrBuilder &addFullAddress(const MachineInstrBuilder &MIB,
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);
}