diff options
author | xleroy <xleroy@fca1b0fc-160b-0410-b1d3-a4f43f01ea2e> | 2010-08-18 09:06:55 +0000 |
---|---|---|
committer | xleroy <xleroy@fca1b0fc-160b-0410-b1d3-a4f43f01ea2e> | 2010-08-18 09:06:55 +0000 |
commit | a15858a0a8fcea82db02fe8c9bd2ed912210419f (patch) | |
tree | 5c0c19439f0d0f9e8873ce0dad2034cb9cafc4ba /test/regression/Results | |
parent | adedca3a1ff17ff8ac66eb2bcd533a50df0927a0 (diff) | |
download | compcert-a15858a0a8fcea82db02fe8c9bd2ed912210419f.tar.gz compcert-a15858a0a8fcea82db02fe8c9bd2ed912210419f.zip |
Merge of branches/full-expr-4:
- Csyntax, Csem: source C language has side-effects within expressions,
performs implicit casts, and has nondeterministic reduction semantics
for expressions
- Cstrategy: deterministic red. sem. for the above
- Clight: the previous source C language, with pure expressions.
Added: temporary variables + implicit casts.
- New pass SimplExpr to pull side-effects out of expressions
(previously done in untrusted Caml code in cparser/)
- Csharpminor: added temporary variables to match Clight.
- Cminorgen: adapted, removed cast optimization (moved to back-end)
- CastOptim: RTL-level optimization of casts
- cparser: transformations Bitfields, StructByValue and StructAssign
now work on non-simplified expressions
- Added pretty-printers for several intermediate languages,
and matching -dxxx command-line flags.
git-svn-id: https://yquem.inria.fr/compcert/svn/compcert/trunk@1467 fca1b0fc-160b-0410-b1d3-a4f43f01ea2e
Diffstat (limited to 'test/regression/Results')
-rw-r--r-- | test/regression/Results/bitfields4 | 12 | ||||
-rw-r--r-- | test/regression/Results/struct7 | 3 | ||||
-rw-r--r-- | test/regression/Results/struct8 | 3 |
3 files changed, 18 insertions, 0 deletions
diff --git a/test/regression/Results/bitfields4 b/test/regression/Results/bitfields4 new file mode 100644 index 00000000..ff8e093a --- /dev/null +++ b/test/regression/Results/bitfields4 @@ -0,0 +1,12 @@ +x = {a = 28, b = 2 } +(x.a += 10) = -26 +(x.b = 17) = 1 +x = {a = -26, b = 1 } +f(&x) = -28 +f(&x) = -30 +f(&x) = -32 +x = {a = -29, b = 4 } +Ding! +x = {a = 10, b = 4 } +Ding! +x = {a = 12, b = 4 } diff --git a/test/regression/Results/struct7 b/test/regression/Results/struct7 index ae630bf1..597007c4 100644 --- a/test/regression/Results/struct7 +++ b/test/regression/Results/struct7 @@ -1,4 +1,7 @@ A2 = { 1234, 3.141590, { 'H', ... , 'o' } } +A2 = { 1234, 3.141590, { 'H', ... , 'o' } } +B2 = { 1, ..., 5, ..., 0 } B2 = { 1, ..., 5, ..., 0 } C2.c = 'z' D2.v = { 0, ..., 4, ..., 0 } +AA[0] = { 1234, 3.141590, { 'H', ... , 'o' } } diff --git a/test/regression/Results/struct8 b/test/regression/Results/struct8 index a2151938..19ec15d2 100644 --- a/test/regression/Results/struct8 +++ b/test/regression/Results/struct8 @@ -1,2 +1,5 @@ a = { 123, 2.718000, 'a' } b = { 125, 5.436000, 'f' } +c = { 128, 16.308000, 'f' } +d = { 125, 5.436000, 'f' } +e = { 128, 16.308000, 'f' } |