Chris Lattner | e0e50db | 2004-12-11 23:14:40 +0000 | [diff] [blame^] | 1 | ; RUN: llvm-as < %s | opt -sccp | llvm-dis | grep 'ret int 0' |
2 | |||||
3 | ; Test that SCCP has basic knowledge of when and/or nuke overdefined values. | ||||
4 | |||||
5 | int %test(int %X) { | ||||
6 | %Y = and int %X, 0 | ||||
7 | ret int %Y | ||||
8 | } |