[PATCH 1/3] add testcase for TRUNC(TRUNC(x)) simplification

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Add the testcase before doing the simplification.

Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@xxxxxxxxx>
---
 validation/optim/trunc-trunc.c | 13 +++++++++++++
 1 file changed, 13 insertions(+)
 create mode 100644 validation/optim/trunc-trunc.c

diff --git a/validation/optim/trunc-trunc.c b/validation/optim/trunc-trunc.c
new file mode 100644
index 000000000..c01d81f67
--- /dev/null
+++ b/validation/optim/trunc-trunc.c
@@ -0,0 +1,13 @@
+char foo(int a)
+{
+	return ((((short) a) + 1) - 1);
+}
+
+/*
+ * check-name: trunc-trunc
+ * check-command: test-linearize -Wno-decl $file
+ * check-known-to-fail
+ *
+ * check-output-ignore
+ * check-output-pattern(1): trunc\\.
+ */
-- 
2.18.0




[Index of Archives]     [Newbies FAQ]     [LKML]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Trinity Fuzzer Tool]

  Powered by Linux