Implement some basic guard ops.

Untested, since nothing emits them yet.