2007-04-15 17:21:47 +08:00
|
|
|
; RUN: llvm-upgrade < %s | llvm-as | opt -sccp | llvm-dis | grep {ret i32 0}
|
2004-12-12 07:14:40 +08:00
|
|
|
|
|
|
|
; Test that SCCP has basic knowledge of when and/or nuke overdefined values.
|
|
|
|
|
|
|
|
int %test(int %X) {
|
|
|
|
%Y = and int %X, 0
|
|
|
|
ret int %Y
|
|
|
|
}
|