summaryrefslogtreecommitdiff
path: root/test/CodeGen/PowerPC/neg.ll
blob: 59e14dbd70503f377f8071f2da45e9a21ba645fd (plain)
1
2
3
4
5
6
; RUN: llvm-as < %s | llc -march=ppc32 | grep neg

int %test(int %X) {
    %Y = sub int 0, %X
	ret int %Y
}