mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 19:52:54 +01:00
Thumb add sp, #imm requires the immediate value be multiple of 4. For now,
change preferred alignment of short, byte, bool to 4. llvm-svn: 33722
This commit is contained in:
parent
476cd5c2d1
commit
41bee13a0e
@ -35,8 +35,12 @@ namespace {
|
||||
ARMTargetMachine::ARMTargetMachine(const Module &M, const std::string &FS)
|
||||
: Subtarget(M, FS),
|
||||
DataLayout(Subtarget.isTargetDarwin() ?
|
||||
std::string("e-p:32:32-d:32:32-l:32:32") :
|
||||
std::string("e-p:32:32-d:32:64-l:32:64")),
|
||||
(Subtarget.isThumb() ?
|
||||
std::string("e-p:32:32-d:32:32-l:32:32-s:16:32-b:8:32-B:8:32") :
|
||||
std::string("e-p:32:32-d:32:32-l:32:32")) :
|
||||
(Subtarget.isThumb() ?
|
||||
std::string("e-p:32:32-d:32:64-l:32:64-s:16:32-b:8:32-B:8:32") :
|
||||
std::string("e-p:32:32-d:32:64-l:32:64"))),
|
||||
InstrInfo(Subtarget),
|
||||
FrameInfo(Subtarget) {}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user