aboutsummaryrefslogtreecommitdiffstats
path: root/powerpc
Commit message (Collapse)AuthorAgeFilesLines
* bug 17752, add builtin64_set_spr and builtin64_get_spr for PowerPCMichael Schmidt2015-12-153-3/+24
|
* Bug 17752, add rldicr instruction for PowerPCMichael Schmidt2015-12-153-2/+8
|
* bug 17752, add builtin_mr for PowerPCMichael Schmidt2015-12-141-1/+1
|
* bug 17752, add builtin_mr for PowerPCMichael Schmidt2015-12-143-6/+31
|
* bug 17752, add builtin_clzl and builtin_clzll for PowerPCMichael Schmidt2015-12-112-1/+16
|
* bug 17752, add builtin_nop for PowerPCMichael Schmidt2015-12-112-0/+0
|
* bug 17752, add builtin_nop for PowerPCMichael Schmidt2015-12-112-0/+6
|
* bug 17752, add builtin_uisel as unsigned version of builtin_iselMichael Schmidt2015-12-092-2/+5
|
* bug 17544, use json-printer function for mfcr instructionMichael Schmidt2015-11-091-3/+2
|
* Removed unused p_char_list function. Bug 17544.Bernhard Schommer2015-11-031-2/+0
|
* Changed the name of a few ppc instructions. Bug 17544Bernhard Schommer2015-11-031-3/+3
|
* Simplify the Json export.Bernhard Schommer2015-11-031-166/+183
| | | | | | Instead of having a function for each instruction we now use a generic function to print the arguments. Bug 17544.
* Few simple rewrite for the AsmToJSON printer.Bernhard Schommer2015-10-291-155/+147
| | | | | | In a first step all the print commands for the names are replaced by a more safe variant that avoids missing \". Bug 17328
* Another typo in AsmToJson.Bernhard Schommer2015-10-291-1/+1
| | | | Bug 17473
* Fixed some minor types in the asm printer.Bernhard Schommer2015-10-291-1/+1
| | | | Bug 17473
* Fixed typo in AsmToJson.Bernhard Schommer2015-10-261-1/+1
| | | | Bug 17473.
* Added special treatment for large stack size for ppc.Bernhard Schommer2015-10-231-3/+3
| | | | | | Since the stacksize is casted to signed int in the alloc frame function large stacksize lead to assembler containing overflows. Bug 17473.
* Added not merged destruction of Archi. Bug 17450Bernhard Schommer2015-10-201-0/+2
|
* Merge remote-tracking branch 'origin/master' into named-externalsBernhard Schommer2015-10-2014-33/+193
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: arm/TargetPrinter.ml backend/CMparser.mly backend/SelectLongproof.v backend/Selectionproof.v cfrontend/C2C.ml checklink/Asm_printers.ml checklink/Check.ml checklink/Fuzz.ml common/AST.v debug/DebugInformation.ml debug/DebugInit.ml debug/DwarfPrinter.ml debug/DwarfTypes.mli debug/Dwarfgen.ml exportclight/ExportClight.ml ia32/TargetPrinter.ml powerpc/Asm.v powerpc/SelectOpproof.v powerpc/TargetPrinter.ml
| * Implemented the usage of DW_AT_ranges for non-contiguous address ranges.Bernhard Schommer2015-10-162-0/+3
| | | | | | | | | | | | | | | | | | | | The gcc produces DW_AT_ranges for non-contiguous address ranges, like compilation units containing functions which are placed in different ELF-sections or lexical scopes that are split up. With this commit CompCert also uses this DWARF v3 feature for gnu backend based targets. In order to ensure backward compability a flag is added which avoids this and produces debug info in DWARF v2 format. Bug 17392.
| * First step to implemente address ranges for the gnu backend.Bernhard Schommer2015-10-151-8/+1
| | | | | | | | | | | | | | | | | | In contrast to the dcc, the gcc uses address ranges to express non-contiguous range of addresses. As a first step we set the start and end addresses for the different address ranges for the compilation unit by using the start and end addresses of functions. Bug 17392.
| * Reworked the section interface for the debug information.Bernhard Schommer2015-10-141-6/+7
| | | | | | | | | | | | Instead of pushing strings around use the actual section. However the string is still used in the Hashtbl. Bug 17392.
| * bug 17392: remove trailing whitespace in source filesMichael Schmidt2015-10-1415-620/+620
| |
| * bug 17392: remove trailing whitespace in source filesMichael Schmidt2015-10-143-57/+57
| |
| * Changed the type of the debug sections with additional string.Bernhard Schommer2015-10-131-5/+11
| | | | | | | | | | | | | | | | Instead of using a string they now take an optional string, which should be none if the backend is not the diab backend and the corresponding section is the text section and Some s with s being the custom section name else. Bug 17392.
| * Implement the usage of the debug_str section for the gcc backend.Bernhard Schommer2015-10-132-2/+5
| | | | | | | | | | | | | | | | GCC prints all string larger than 3 characters in the debug_str section which reduces the size of the debug information since entries containing the same string now map to the same string in the debug_str sections. Bug 17392.
| * Fix minor typo introduced by refactoring of debug information.Bernhard Schommer2015-10-121-1/+1
| | | | | | | | | | The base register for the stack allocated variables should be r1 and not r2 under powerpc. Bug 17392
| * Merge branch 'master' into ppc64Xavier Leroy2015-10-115-107/+207
| |\ | | | | | | | | | Resolved conflicts in:configure powerpc/Asmexpand.ml
| * | Use PowerPC 64 bits instructions (when available) for int<->FP conversions.Xavier Leroy2015-09-1314-14/+170
| | | | | | | | | | | | | | | | | | Also: implement __builtin_isel on non-EREF platforms with a branch-free instruction sequence. Also: extend ./configure so that it recognizes "ppc64-" and "e5500-" platforms in addition to "ppc-".
* | | Updated PR by removing whitespaces. Bug 17450.Bernhard Schommer2015-10-2018-674/+674
| | |
* | | Use Coq strings instead of idents to name external and builtin functions.Xavier Leroy2015-10-113-25/+14
| |/ |/| | | | | | | | | | | | | | | | | The AST.ident type represents source-level identifiers as unique positive numbers. However, the mapping identifiers <-> AST.ident differs between runs of CompCert on different source files. This is problematic when we need to produce or recognize external functions and builtin functions with fixed names, for example: * in $ARCH/Machregs.v to define the register conventions for builtin functions; * in the VST program logic from Princeton to treat thread primitives specially. So far, we used AST.ident_of_string to recover the ident associated with a string. However, this function is defined in OCaml and doesn't execute within Coq. This is a problem both for VST and for future executability of CompCert within Coq. This commit replaces "ident" by "string" in the arguments of EF_external, EF_builtin, EF_inline_asm, EF_annot, and EF_annot_val. This provides stable names for externals and builtins, as needed. For inline asm and annotations, it's a matter of taste, but using strings feels more natural. EF_debug keeps using idents, since some kinds of EF_debug annotations talk about program variables.
* | Filled in missing functions for debug information on ia32.Bernhard Schommer2015-10-091-23/+2
| | | | | | | | | | | | Like for arm and ppc the functions for section names and start and end addresses of compilation units are defined and the print_annot function is moved to Asmexpandaux.ml.
* | Fixed syntax error and added Section_debug_line to the Json serializer.Bernhard Schommer2015-10-092-1/+2
| |
* | Filled in the rest of the funciton needed for thte debug info under arm.Bernhard Schommer2015-10-092-13/+8
| | | | | | | | | | | | The name_of_section function no returns the correct name for the debug sections, the prologue and epilogue directives are added and the labels for the live ranges are introduced in the Asmexpand pass.
* | Added versions of the tranform_* functions in AST to work with functionsBernhard Schommer2015-10-081-22/+1
| | | | | | | | | | | | | | | | taking the ident as argument. This functions are currently not used inside the proven part but it is nice to have them already there, when they are used by some future pass. They also come equiped with the corresponding proofs.
* | Moved expandation of debug information to Asmexpandaux.Bernhard Schommer2015-10-081-66/+5
| | | | | | | | | | | | The function is generalized to work for all backends and takes as additional arguments functions for the printing of the simple instructions and the translation function for the arguments.
* | Ensure that there are file directives for all files used in the debugBernhard Schommer2015-10-041-1/+2
| | | | | | | | information.
* | Merge branch 'gnu-debug'Bernhard Schommer2015-10-021-7/+25
|\ \ | | | | | | | | | | | | Conflicts: debug/DebugInformation.ml
| * | First try of debug information for gcc.Bernhard Schommer2015-10-021-7/+25
| | |
* | | Quote the section names in the json files.Bernhard Schommer2015-10-021-1/+1
| | |
* | | Always call print debug_section in the prologue.Bernhard Schommer2015-10-021-18/+18
|/ / | | | | | | | | Since files without function definition contain no function in the Section_text the filenum would be empty otherwise.
* | Cleanup of now no longer needed functions.Bernhard Schommer2015-10-011-23/+0
| |
* | Removed the debug output for the debug information.Bernhard Schommer2015-10-011-2/+1
| |
* | Use also fucntion id for local variables since atom is not unique.Bernhard Schommer2015-10-011-3/+3
| |
* | Do not move the line directives.Bernhard Schommer2015-10-011-5/+9
| |
* | Merge pull request #56 from AbsInt/debug_locationsBernhard Schommer2015-09-303-68/+201
|\ \ | | | | | | Debug locations
| * | Fixed minor issue with parameters that get put on the stack, madeBernhard Schommer2015-09-301-2/+4
| | | | | | | | | | | | the code more robust and added indentation for convertCompositeDef
| * | Change the way the debug sections are printed.Bernhard Schommer2015-09-282-67/+50
| | | | | | | | | | | | | | | | | | If a user uses the #pragma use_section for functions the diab linker requires a separate debug_info section for each entry. This commit adds functionality to emulate this behavior.
| * | Added location for the formal parameters and move the end of allBernhard Schommer2015-09-281-2/+8
| | | | | | | | | | | | scopes before the last statement.
| * | Added back again the emitting of the debuging annotations for debugingBernhard Schommer2015-09-271-3/+4
| | | | | | | | | | | | purpose.