- May 20, 2011
-
-
-
Cameron Zwarich authored
similarly for stores. Now "make check" passes with the MachineVerifier forced on with the VerifyCoalescing option! llvm-svn: 131705
-
Eli Friedman authored
llvm-svn: 131689
-
Rafael Espindola authored
foo: bar = foo .quad bar Avoid producing it. Fixes PR9951. llvm-svn: 131687
-
- May 19, 2011
-
-
Rafael Espindola authored
* Remove unnecessary arguments now that ForceExpAbs is a method. * Use ForceExpAbs in EmitAbsValue. llvm-svn: 131683
-
Eric Christopher authored
Fixes rdar://9218925 Fixes PR9601 llvm-svn: 131682
-
Charles Davis authored
llvm-svn: 131679
-
Jason W Kim authored
text section. Assume the following bit of annotated assembly: .section .data.rel.ro,"aw",%progbits .align 2 .LAlpha: .long startval(GOTOFF) .text .align 2 .type main,%function .align 4 main: ;;; assume "main" starts at offset 0x20 0x0 push {r11, lr} 0x4 movw r0, :lower16:(.LAlpha-(.LBeta+8)) ;;; ==> (.AddrOf(.LAlpha) - ((.AddrOf(.LBeta) - .AddrOf(".")) + 8) ;;; ==> (??? - ((16-4) + 8) = -20 0x8 movt r0, :upper16:(.LAlpha-(.LBeta+8)) ;;; ==> (.AddrOf(.LAlpha) - ((.AddrOf(.LBeta) - .AddrOf(".")) + 8) ;;; ==> (??? - ((16-8) + 8) = -16 0xc ... blah .LBeta: 0x10 add r0, pc, r0 0x14 ... blah .LGamma: 0x18 add r1, pc, r1 Above snippet results in the following relocs in the .o file for the first pair of movw/movt instructions 00000024 R_ARM_MOVW_PREL_NC .LAlpha 00000028 R_ARM_MOVT_PREL .LAlpha And the encoded instructions in the .o file for main: must be 00000020 <main>: 20: e92d4800 push {fp, lr} 24: e30f0fec movw r0, #65516 ; 0xffec i.e. -20 28: e34f0ff0 movt r0, #65520 ; 0xfff0 i.e. -16 However, llc (prior to this commit) generates the following sequence 00000020 <main>: 20: e92d4800 push {fp, lr} 24: e30f0fec movw r0, #65516 ; 0xffec - i.e. -20 28: e34f0fff movt r0, #65535 ; 0xffff - i.e. -1 What has to happen in the ArmAsmBackend is that if the relocation is PC relative, the 16 bits encoded as part of movw and movt must be both addends, not addresses. It makes sense to encode addresses by right shifting the value by 16, but the result is incorrect for PIC. i.e., the right shift by 16 for movt is ONLY valid for the NON-PCRel case. This change agrees with what GNU as does, and makes the PIC code run. MC/ARM/elf-movt.s covers this case. llvm-svn: 131674
-
Devang Patel authored
Reapply r131605. This time with a fix, which is to use NoFolder. llvm-svn: 131673
-
Rafael Espindola authored
Fixes PR9934. We really need to start tblgening the relocation info :-( llvm-svn: 131669
-
Akira Hatanaka authored
llvm-svn: 131668
-
Charles Davis authored
I had to change the API slightly to avoid overloading issues. llvm-svn: 131666
-
-
Stuart Hastings authored
llvm-svn: 131663
-
Akira Hatanaka authored
llvm-svn: 131660
-
Evan Cheng authored
llvm-svn: 131659
-
Akira Hatanaka authored
llvm-svn: 131657
-
Joerg Sonnenberger authored
Introduce -fatal-assembler-warnings for the obvious purpose llvm-svn: 131655
-
Stuart Hastings authored
llvm-svn: 131654
-
Eli Friedman authored
llvm-svn: 131653
-
Charles Davis authored
ours compatible with GAS. In retrospect, I should have emailed binutils about this earlier. Thanks to Kai Tietz for pointing out that GAS already had SEH directives. llvm-svn: 131652
-
Jim Grosbach authored
llvm-svn: 131649
-
Joerg Sonnenberger authored
llvm-svn: 131644
-
Akira Hatanaka authored
llvm-svn: 131642
-
Stuart Hastings authored
pseudos. rdar://problem/8614450 llvm-svn: 131641
-
Cameron Zwarich authored
verifier failures in the CodeGen/CellSPU tests. llvm-svn: 131631
-
Mon P Wang authored
llvm-svn: 131630
-
Charles Davis authored
llvm-svn: 131629
-
Cameron Zwarich authored
llvm-svn: 131627
-
Cameron Zwarich authored
piclabel operand. The operand in the tablegen definition doesn't actually turn into an MI operand, so it just confuses anything checking the TargetInstrDesc for the number of operands. It suffices to just have an implicit def of LR. llvm-svn: 131626
-
Cameron Zwarich authored
llvm-svn: 131625
-
Charles Davis authored
Based largely on Rafael Espindola's work on CFI. Other methods soon to follow. llvm-svn: 131623
-
Rafael Espindola authored
llvm-svn: 131620
-
Cameron Zwarich authored
add instruction takes an rGPR. This fixes the last of PR8825. llvm-svn: 131619
-
Cameron Zwarich authored
on CodeGen/X86/2007-05-07-InvokeSRet.ll. There is probably a bug here that was fixed by r128961, but since there is no test or reference to a source file I have to revert it. llvm-svn: 131618
-
Eli Friedman authored
I'm not sure this is quite ideal, but I can't really think of any better way to do it. llvm-svn: 131616
-
Jim Grosbach authored
the Twine was used). llvm-svn: 131612
-
Devang Patel authored
llvm-svn: 131609
-
Devang Patel authored
llvm-svn: 131607
-
Rafael Espindola authored
llvm-svn: 131606
-