Just to be a little bit pedantic:
Bump fires are the result of a shooting technique, and are usually deliberate. Bump firing is a way to fire a semi-auto very rapidly, at speeds approaching that of full-auto. It's possible to have a negligent bump fire, either with a very light trigger or amazingly sloppy trigger control.
Slam fires, on the other hand, are a malfunction of the gun. Inertia drives the firing pin into the primer when the bolt closes. While people tend to associate this malfunction with guns that use floating firing pins, it can happen to pretty much any gun.
On a side note, the concept of slam fire is pretty close to how machine guns that fire from the open bolt position are designed. The "firing pin" doesn't move at all; it's welded to the front of the bolt. When the bolt closes, it ignites the round.