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:
parent
64aa7f3708
commit
e8ebdcc780
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user