Skip to content
Commit d7572fb2 authored by Evan Cheng's avatar Evan Cheng
Browse files

Encode pc-relative conditional branch offset as pc+(num of bytes / 4). The

asm printer will print it as offset*4. e.g. bne cr0, $+8.

The PPC code emitter was expecting the offset to be number of instructions, not
number of bytes. This fixes a whole bunch of JIT failures.

llvm-svn: 29885
parent 50eac3b8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment