From 66fe2227dfbfd2086fb0266cdeea1ca904d76198 Mon Sep 17 00:00:00 2001 From: Eric Biederman Date: Fri, 4 Jul 2003 15:14:04 +0000 Subject: - Moved 2 of the test cases into tests for failure - Reworked the transformation into ssa form and now I catch all unitialized variable uses. - Several more test cases - Bumped the version to 0.34 - Verified that -O2 the scc_transform now works. git-svn-id: svn://svn.coreboot.org/coreboot/trunk@934 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- util/romcc/tests/fail_test2.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 util/romcc/tests/fail_test2.c (limited to 'util/romcc/tests/fail_test2.c') diff --git a/util/romcc/tests/fail_test2.c b/util/romcc/tests/fail_test2.c new file mode 100644 index 0000000000..74d6eb1d94 --- /dev/null +++ b/util/romcc/tests/fail_test2.c @@ -0,0 +1,18 @@ +static void main(void) +{ + + unsigned min; + int value, latency; + + + latency = -2; + + if (latency > (((min) >> 8) & 0xff)) { + value = 0xa; + } + + if (value < 0) return; + + ((min) = (((min) & ~0xff))); + +} -- cgit v1.2.3