diff options
author | Eric Botcazou <ebotcazou@adacore.com> | 2014-07-10 10:38:30 +0000 |
---|---|---|
committer | Eric Botcazou <ebotcazou@gcc.gnu.org> | 2014-07-10 10:38:30 +0000 |
commit | d764963b54885cdf3604e54717b1a137492d7415 (patch) | |
tree | 82d9408541093ea1d1f5bd1bb4c82743eac57876 /gcc/testsuite/gnat.dg | |
parent | 56710419ba3361dca740bfa1dc29be0d959246de (diff) | |
download | gcc-d764963b54885cdf3604e54717b1a137492d7415.zip gcc-d764963b54885cdf3604e54717b1a137492d7415.tar.gz gcc-d764963b54885cdf3604e54717b1a137492d7415.tar.bz2 |
re PR middle-end/53590 (compiler fails to generate SIMD instruction for FP division)
PR middle-end/53590
* function.c (allocate_struct_function): Revert r188667 change.
* gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
From-SVN: r212424
Diffstat (limited to 'gcc/testsuite/gnat.dg')
-rw-r--r-- | gcc/testsuite/gnat.dg/opt39.adb | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/gcc/testsuite/gnat.dg/opt39.adb b/gcc/testsuite/gnat.dg/opt39.adb new file mode 100644 index 0000000..a00cac7 --- /dev/null +++ b/gcc/testsuite/gnat.dg/opt39.adb @@ -0,0 +1,31 @@ +-- { dg-do compile } +-- { dg-options "-O2 -fno-inline -fdump-tree-optimized" } + +procedure Opt39 (I : Integer) is + + type Rec is record + I1 : Integer; + I2 : Integer; + I3 : Integer; + I4 : Integer; + I5 : Integer; + end record; + + procedure Set (A : access Rec; I : Integer) is + Tmp : Rec := A.all; + begin + Tmp.I1 := I; + A.all := Tmp; + end; + + R : aliased Rec; + +begin + Set (R'Access, I); + if R.I1 /= I then + raise Program_Error; + end if; +end; + +-- { dg-final { scan-tree-dump-times "MEM" 1 "optimized" } } +-- { dg-final { cleanup-tree-dump "optimized" } } |