diff options
author | Jiong Wang <jiwang@gcc.gnu.org> | 2014-12-02 11:57:08 +0000 |
---|---|---|
committer | Jiong Wang <jiwang@gcc.gnu.org> | 2014-12-02 11:57:08 +0000 |
commit | ffc510234e3a519c73d03af6c331c7bbb9599193 (patch) | |
tree | 288054f8faebd813cefc1818100bf925f4d71a81 /gcc | |
parent | 048f927a758755c84193759081d4283575280ed1 (diff) | |
download | gcc-ffc510234e3a519c73d03af6c331c7bbb9599193.zip gcc-ffc510234e3a519c73d03af6c331c7bbb9599193.tar.gz gcc-ffc510234e3a519c73d03af6c331c7bbb9599193.tar.bz2 |
[AArch64/testsuite] Add missing testcase
Add the missing testcase.
(forget svn add in previous commit ...)
From-SVN: r218267
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/gcc.target/aarch64/remat1.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.target/aarch64/remat1.c b/gcc/testsuite/gcc.target/aarch64/remat1.c new file mode 100644 index 0000000..999577e --- /dev/null +++ b/gcc/testsuite/gcc.target/aarch64/remat1.c @@ -0,0 +1,20 @@ +/* { dg-do compile } */ +/* { dg-options "-O2 -fomit-frame-pointer -fcaller-saves -ffixed-d8 -ffixed-d9 -ffixed-d10 -ffixed-d11 -ffixed-d12 -ffixed-d13 -ffixed-d14 -ffixed-d15" } */ + +/* Under high register pressure FP immediates should be rematerialized + as literal loads rather than being caller-saved to the stack. */ + +void +g (void); + +float +f (float x) +{ + x += 3.1f; + g (); + x *= 3.1f; + return x; +} + +/* { dg-final { scan-assembler-times "ldr\ts\[0-9]+, .LC0" 2 } } */ + |