summaryrefslogtreecommitdiff
path: root/test/Transforms/InstCombine/binop-cast.ll
blob: 13404df94174866b317558db69bdef9f4dbe3ac4 (plain)
1
2
3
4
5
6
7
; RUN: llvm-as < %s | opt -instcombine | llvm-dis | notcast

uint %testAdd(int %X, int %Y) {
	%tmp = add int %X, %Y
	%tmp.l = sext int %tmp to uint
	ret uint %tmp.l
}