blob: 5b4f84260048ab3501b6e0bc5cba201fe8137ada [file] [log] [blame]
Chris Lattnere0e50db2004-12-11 23:14:40 +00001; 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
5int %test(int %X) {
6 %Y = and int %X, 0
7 ret int %Y
8}