forked from OSchip/llvm-project
Fix undefined code and reenable test case.
I don't think the compact encoding code is right, but at least is has defined behavior now. llvm-svn: 147938
This commit is contained in:
parent
51d3076bbf
commit
6039983755
|
@ -458,7 +458,7 @@ encodeCompactUnwindRegistersWithFrame(unsigned SavedRegs[CU_NUM_SAVED_REGS],
|
|||
// Encode the registers in the order they were saved, 3-bits per register. The
|
||||
// registers are numbered from 1 to 6.
|
||||
uint32_t RegEnc = 0;
|
||||
for (int I = 0; I != 6; --I) {
|
||||
for (int I = 0; I != 6; ++I) {
|
||||
unsigned Reg = SavedRegs[I];
|
||||
if (Reg == 0) break;
|
||||
int CURegNum = getCompactUnwindRegNum(CURegs, Reg);
|
||||
|
@ -470,7 +470,7 @@ encodeCompactUnwindRegistersWithFrame(unsigned SavedRegs[CU_NUM_SAVED_REGS],
|
|||
RegEnc |= (CURegNum & 0x7) << ((5 - I) * 3);
|
||||
}
|
||||
|
||||
assert((RegEnc & 0x7FFF) == RegEnc && "Invalid compact register encoding!");
|
||||
assert((RegEnc & 0x3FFFF) == RegEnc && "Invalid compact register encoding!");
|
||||
return RegEnc;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
; RUN: true
|
||||
; DONT: llc < %s -disable-fp-elim
|
||||
; RUN: llc < %s -disable-fp-elim
|
||||
target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:128:128-n8:16:32-S128"
|
||||
target triple = "i386-apple-macosx10.7"
|
||||
|
||||
|
|
Loading…
Reference in New Issue