xref: /original-bsd/old/pcc/c2.tahoe/NOTES.2 (revision e21485a6)
1This bug bears some striking similarities to the previous one...
2
3Sample code:
4
5	std	r0		# these three instructions get deleted
6	movl	4(r12),r2	# here too, but shouldn't
7	ldd	r0		# here too
8	test
9	jump
10	use of r2
11label:
12	instruction that kills r0
13
14If the movl is reordered above the std, it won't be deleted; if
15reordered below the ldd, it's still zapped.  If the test is 'tstl
16r12', it can get deleted too...  It doesn't seem to matter very
17much what the jump or use of r2 are, provided the jump is a relational
18one, of course.
19