summaryrefslogtreecommitdiffstats
path: root/llvm/test
Commit message (Collapse)AuthorAgeFilesLines
* new test caseDevang Patel2009-07-011-0/+3
| | | | llvm-svn: 74633
* Support stand alone metadata syntax.Devang Patel2009-07-011-0/+7
| | | | | | | !0 = constant metadata !{i32 21, i32 22} @llvm.blah = constant metadata !{i32 1000, i16 200, metadata !0} llvm-svn: 74630
* Fix codegen for references to available_externally symbols. This fixesChris Lattner2009-07-011-0/+69
| | | | | | PR4482. llvm-svn: 74613
* Insure that __block_holder_tmp is allocated on the stack when a byrefStuart Hastings2009-07-011-0/+8
| | | | | | variable is present. llvm-svn: 74610
* CommuteChangesDestination() should check if to-be-commuted instruction ↵Evan Cheng2009-07-011-0/+130
| | | | | | defines any register. Also teaches the default commuteInstruction() to commute instruction without definitions (e.g. X86::test / ARM::tsp). llvm-svn: 74602
* Remove special handling of implicit_def. Fix a couple more bugs in ↵Evan Cheng2009-07-011-0/+99
| | | | | | | | liveintervalanalysis and coalescer handling of implicit_def. Note, isUndef marker must be placed even on implicit_def def operand or else the scavenger will not ignore it. This is necessary because -O0 path does not use liveintervalanalysis, it treats implicit_def just like any other def. llvm-svn: 74601
* Fix some fast-isel problems selecting global variable addressing inChris Lattner2009-07-011-0/+24
| | | | | | pic mode. llvm-svn: 74582
* Handle IMPLICIT_DEF with isUndef operand marker, part 2. This patch moves ↵Evan Cheng2009-07-012-0/+256
| | | | | | the code to annotate machineoperands to LiveIntervalAnalysis. It also add markers for implicit_def that define physical registers. The rest, is just a lot of details. llvm-svn: 74580
* Add PIC load and store patterns for Thumb-2.David Goodwin2009-07-013-2/+51
| | | | llvm-svn: 74577
* llvm-mc: Symbols in a relocatable expression of the (a - b + cst) form areDaniel Dunbar2009-06-301-0/+7
| | | | | | | allowed to be undefined when the expression is seen, we cannot enforce the same-section requirement until the entire assembly file has been seen. llvm-svn: 74565
* Add thumb-2 store word, halfword, and byte.David Goodwin2009-06-303-0/+189
| | | | llvm-svn: 74555
* Improve Thumb-2 jump table support.David Goodwin2009-06-301-0/+26
| | | | llvm-svn: 74549
* Fix PR4485.Rafael Espindola2009-06-302-1/+16
| | | | | | | Avoid unnecessary duplication of operand 0 of X86::FpSET_ST0_80. This duplication would cause one register to remain on the stack at the function return. llvm-svn: 74534
* Fix PR4484.Rafael Espindola2009-06-301-0/+15
| | | | | | This was caused by me confounding FP0 and ST(0). llvm-svn: 74523
* Temporarily restore the scavenger implicit_def checking code. MachineOperand ↵Evan Cheng2009-06-301-0/+116
| | | | | | isUndef mark is not being put on implicit_def of physical registers (created for parameter passing, etc.). llvm-svn: 74519
* Add a bit IsUndef to MachineOperand. This indicates the def / use register ↵Evan Cheng2009-06-301-0/+122
| | | | | | | | | | operand is defined by an implicit_def. That means it can def / use any register and passes (e.g. register scavenger) can feel free to ignore them. The register allocator, when it allocates a register to a virtual register defined by an implicit_def, can allocate any physical register without worrying about overlapping live ranges. It should mark all of operands of the said virtual register so later passes will do the right thing. This is not the best solution. But it should be a lot less fragile to having the scavenger try to track what is defined by implicit_def. llvm-svn: 74518
* A few more load instructions.Evan Cheng2009-06-303-0/+147
| | | | llvm-svn: 74500
* Array accesses are independent if the underlying arrays differ.Andreas Bolka2009-06-304-2/+49
| | | | llvm-svn: 74499
* llvm-mc: Accept relocatable expressions for .org, assignments, .byte, etc.Daniel Dunbar2009-06-301-1/+17
| | | | llvm-svn: 74498
* Enhance tests to include shifted-register operand testing.David Goodwin2009-06-3014-19/+425
| | | | llvm-svn: 74490
* llvm-mc: Parse symbol attribute directives.Daniel Dunbar2009-06-301-0/+7
| | | | llvm-svn: 74487
* llvm-mc: Parse .{,b,p2}align{,w,l} directives.Daniel Dunbar2009-06-291-0/+16
| | | | llvm-svn: 74478
* Add Thumb-2 support for TEQ amd TST.David Goodwin2009-06-294-0/+192
| | | | llvm-svn: 74468
* Thumb-2 testsDavid Goodwin2009-06-297-15/+65
| | | | llvm-svn: 74464
* llvm-mc: Recognize C++ style comments.Daniel Dunbar2009-06-291-4/+4
| | | | llvm-svn: 74463
* MC: Improve expression parsing and implement evaluation of absolute expressions.Daniel Dunbar2009-06-291-0/+39
| | | | llvm-svn: 74448
* Don't cache PHI exit values from exhaustive evaluations, becauseDan Gohman2009-06-291-0/+78
| | | | | | | | an individual exhaustive evaluation reflects only the exit value implied by an individual exit, which may differ from the actual exit value of the loop if there are other exits. This fixes PR4477. llvm-svn: 74447
* FIX PR 4459.Rafael Espindola2009-06-291-0/+15
| | | | | | | Not sure I understand how the temp register gets used, but this fixes a bug and introduces no regressions. llvm-svn: 74446
* Add some tests of advanced TableGen list functionality.David Greene2009-06-292-0/+19
| | | | llvm-svn: 74445
* Rename ARMcmpNZ to ARMcmpZ and use it to represent comparisons that set only ↵David Goodwin2009-06-291-0/+25
| | | | | | the Z flag (i.e. eq and ne). Make ARMcmpZ commutative. llvm-svn: 74423
* Implement Thumb2 ldr.Evan Cheng2009-06-292-7/+102
| | | | | | After much back and forth, I decided to deviate from ARM design and split LDR into 4 instructions (r + imm12, r + imm8, r + r << imm12, constantpool). The advantage of this is 1) it follows the latest ARM technical manual, and 2) makes it easier to reduce the width of the instruction later. The down side is this creates more inconsistency between the two sub-targets. We should split ARM LDR instruction in a similar fashion later. I've added a README entry for this. llvm-svn: 74420
* Print pairwise dependence results, add testcases.Andreas Bolka2009-06-285-0/+113
| | | | llvm-svn: 74402
* Don't try to split a loop when the controlling icmp instructionDan Gohman2009-06-271-0/+195
| | | | | | doesn't have an IV-based operand. This fixes PR4471. llvm-svn: 74399
* Teach LoopSimplify how to merge multiple loop exits into a single exit,Dan Gohman2009-06-271-0/+45
| | | | | | | | | | | | | | | | when one of them can be converted to a trivial icmp and conditional branch. This addresses what is essentially a phase ordering problem. SimplifyCFG knows how to do this transformation, but it doesn't do so if the primary block has any instructions in it other than an icmp and a branch. In the given testcase, the block contains other instructions, however they are loop-invariant and can be hoisted. SimplifyCFG doesn't have LoopInfo though, so it can't hoist them. And, it's important that the blocks be merged before LoopRotation, as it doesn't support multiple-exit loops. llvm-svn: 74396
* When a value is used multiple times within a single PHI, instructionsDan Gohman2009-06-271-0/+33
| | | | | | | | inserted to replace that value must dominate all of of the basic blocks associated with the uses of the value in the PHI, not just one of them. llvm-svn: 74376
* factor some logic out into a helper function, allow remat of loads from constantChris Lattner2009-06-271-2/+1
| | | | | | globals. This implements remat-constant.ll even without aggressive-remat. llvm-svn: 74373
* Reimplement rip-relative addressing in the X86-64 backend. The newChris Lattner2009-06-272-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | implementation primarily differs from the former in that the asmprinter doesn't make a zillion decisions about whether or not something will be RIP relative or not. Instead, those decisions are made by isel lowering and propagated through to the asm printer. To achieve this, we: 1. Represent RIP relative addresses by setting the base of the X86 addr mode to X86::RIP. 2. When ISel Lowering decides that it is safe to use RIP, it lowers to X86ISD::WrapperRIP. When it is unsafe to use RIP, it lowers to X86ISD::Wrapper as before. 3. This removes isRIPRel from X86ISelAddressMode, representing it with a basereg of RIP instead. 4. The addressing mode matching logic in isel is greatly simplified. 5. The asmprinter is greatly simplified, notably the "NotRIPRel" predicate passed through various printoperand routines is gone now. 6. The various symbol printing routines in asmprinter now no longer infer when to emit (%rip), they just print the symbol. I think this is a big improvement over the previous situation. It does have two small caveats though: 1. I implemented a horrible "no-rip" modifier for the inline asm "P" constraint modifier. This is a short term hack, there is a much better, but more involved, solution. 2. I had to xfail an -aggressive-remat testcase because it isn't handling the use of RIP in the constant-pool reading instruction. This specific test is easy to fix without -aggressive-remat, which I intend to do next. llvm-svn: 74372
* remove some unneeded eh info.Chris Lattner2009-06-273-4/+4
| | | | llvm-svn: 74371
* testcase for PR4466Chris Lattner2009-06-271-0/+16
| | | | llvm-svn: 74367
* When possible, use "mvn ra, rb" instead of "eor ra, rb, -1" because mvn has ↵David Goodwin2009-06-261-0/+11
| | | | | | a narrow version and eor(i) does not. llvm-svn: 74355
* Add some testcases for some of the recent ScalarEvolution bug fixes.Dan Gohman2009-06-262-0/+419
| | | | llvm-svn: 74353
* Thumb-2 testsDavid Goodwin2009-06-2627-15/+318
| | | | llvm-svn: 74345
* remove unwind info, add test for asmprinting of jump table labels with (%rip)Chris Lattner2009-06-261-1/+4
| | | | llvm-svn: 74337
* Add x86 support for 'n' inline asm modifier. This will be handled target ↵Evan Cheng2009-06-261-0/+8
| | | | | | independently as part of MC work. llvm-svn: 74336
* Thumb-2 has CLZ.David Goodwin2009-06-261-0/+8
| | | | llvm-svn: 74322
* Use "adcs/sbcs" only when the carry-out is live, otherwise use "adc/sbc".David Goodwin2009-06-263-4/+4
| | | | llvm-svn: 74321
* More spelling Count as count.Daniel Dunbar2009-06-2612-12/+12
| | | | llvm-svn: 74306
* Spell Count as count.Daniel Dunbar2009-06-262-2/+2
| | | | llvm-svn: 74298
* Add Thumb-2 tests.David Goodwin2009-06-2612-2/+195
| | | | llvm-svn: 74295
* ADC used to implement adde should use "adcs" opcode instead of "adc". David Goodwin2009-06-263-2/+40
| | | | llvm-svn: 74293
OpenPOWER on IntegriCloud