aboutsummaryrefslogtreecommitdiff
path: root/test/Transforms/SCCP/select.ll
blob: 0209681c7876ce5bec4c422c5c79e3c3859f13c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
; RUN: llvm-upgrade < %s | llvm-as | opt -sccp -disable-output &&
; RUN: llvm-upgrade < %s | llvm-as | opt -sccp | llvm-dis | not grep select

int %test1(bool %C) {
	%X = select bool %C, int 0, int 0
	ret int %X
}

int %test2(bool %C) {
	%X = select bool %C, int 0, int undef
	ret int %X
}