public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc/devel/vineetg/optim-double-const-m0] RISC-V: add test case for store -0.0
@ 2023-07-28  0:34 Vineet Gupta
  0 siblings, 0 replies; only message in thread
From: Vineet Gupta @ 2023-07-28  0:34 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:e8ae811e39be93621545fc60eff29d4d3f135eb1

commit e8ae811e39be93621545fc60eff29d4d3f135eb1
Author: Vineet Gupta <vineetg@rivosinc.com>
Date:   Tue Jul 25 14:04:56 2023 -0700

    RISC-V: add test case for store -0.0
    
    Signed-off-by: Vineet Gupta <vineetg@rivosinc.com>

Diff:
---
 gcc/testsuite/gcc.target/riscv/pr110748-2.c | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/gcc/testsuite/gcc.target/riscv/pr110748-2.c b/gcc/testsuite/gcc.target/riscv/pr110748-2.c
new file mode 100644
index 00000000000..dda3bd1f1d1
--- /dev/null
+++ b/gcc/testsuite/gcc.target/riscv/pr110748-2.c
@@ -0,0 +1,11 @@
+void znd(double *d)
+{
+	*d = -0.0;
+}
+
+#if 0
+void znf(float *f)
+{
+	*f = -0.0;
+}
+#endif

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-07-28  0:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-28  0:34 [gcc/devel/vineetg/optim-double-const-m0] RISC-V: add test case for store -0.0 Vineet Gupta

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).