| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
Since the stacksize is casted to signed int in the alloc frame
function large stacksize lead to assembler containing overflows.
Bug 17473.
|
|\
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
| |
| |
| |
| |
| | |
The base register for the stack allocated variables should be
r1 and not r2 under powerpc. Bug 17392
|
| |\
| | |
| | |
| | | |
Resolved conflicts in:configure powerpc/Asmexpand.ml
|
| | |
| | |
| | |
| | |
| | |
| | | |
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-".
|
| |/
|/|
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| |
| |
| |
| |
| |
| | |
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.
|
| |
| |
| |
| |
| |
| | |
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.
|
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| |
| |
| |
| |
| |
| | |
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.
|
| | |
|
| | |
|
| | |
|
|\ \
| | |
| | | |
Debug locations
|
| | |
| | |
| | |
| | | |
the code more robust and added indentation for convertCompositeDef
|
| | |
| | |
| | |
| | | |
scopes before the last statement.
|
| | |
| | |
| | |
| | | |
purpose.
|
| | | |
|
| | |
| | |
| | |
| | |
| | | |
This commit adds furher support for location information for local
variables and starts with the implementation of the debug_loc section.
|
| | |
| | |
| | |
| | |
| | | |
In order to avoid the usage of too many labels we replace the
debug statements during the Asmexpand phase.
|
| | | |
|
| | | |
|
|\ \ \
| |/ /
|/| | |
Atomic builtins
|
| | |
| | |
| | |
| | | |
for the rlwinm.
|
| | | |
|
| | |
| | |
| | |
| | | |
the atomics.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Instead of introducing a new bne instruction in Asm.v and the TargetPrinter.ml
I use the equivalent bf instruction. The duplicated code is due to unused return
values of builtins. Now we only emit the additional code for the return value if
the return value is used instead of duplicating the whole emiting sequence.
|
| | |
| | |
| | |
| | |
| | |
| | | |
In order to avoid clashes during register allocation etc. The
builtins now use fixed registers and mark additional registers as
destroyed for temporaries.
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | | |
The new __builtin_atomic_compare_exchange(int *ptr,int *exp,int *dsr);
writes dsr into ptr if ptr is equal to exp and returns true if
ptr is not equal to exp it writes ptr into exp and returns false.
|
| |\|
| | |
| | |
| | |
| | | |
Conflicts:
powerpc/CBuiltins.ml
|
| | |
| | |
| | |
| | |
| | |
| | | |
Implement the new __builtin_atomic_load(int *a, int *b); which stores
*a in *b. This differs from the atomic_load of the GCC, since the PPC
ISA manual states that you must jump before the load again if it fails.
|
| |/
| |
| |
| |
| | |
The new builtin __builtin_atomic_exchange(int *a, int *b, int *c)
stores *b in *a and sets *c to the old value of *a.
|
|/ |
|
|
|
|
|
| |
The builtin_isel function takes a _Bool as first argument and returns
either the second or the third depending on the value of the _Bool.
|
|
|
|
|
|
| |
This builtins can be used to get the call frame address and the return
address. To correctly compute the load address of the return address
the allocframe is extended to contain the offset of the return address.
|
| |
|
|
|
|
|
|
| |
The cache instructions need no special constraint on the address
argument. Therefore also the generation of the address is no longer
needed.
|
|
|
|
| |
This commit adds a builtin function for the mbar instruction.
|
|
|
|
|
|
| |
This commit adds a builtin for the dcbz instructions. Additionally
the dcbt,dcbtst,dcbtls and icbtls instruction are changed to their
actually form all taking one additional register in Asm.v.
|
|
|
|
| |
This commit adds a builtin for the icbtls instruction.
|
|
|
|
|
| |
The dcbtls instruction allows only the values 0 and 2 according to
the PPC Isa.
|
|
|
|
|
|
| |
THis commit adds a builtin function for the dcbtls instruction.
Additionaly it changes the printing of the dcbt and dcbtst instruction to
embedded mode and adds support for different address variants.
|
|
|
|
|
|
| |
This commit implements the gcc __builtin_prefetch in a form with all
arguments for the powerpc architecture. The resulting instructions are
the dcbt and dcbtst instructions in Server Category.
|