summaryrefslogtreecommitdiffstats
path: root/llvm/test/Regression/CodeGen/PowerPC/nor.ll
blob: 94111e1aaddef7d28d8fa9b6b60afc45c5f4716a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
; RUN: llvm-as < %s | llc -march=ppc32 | grep nor | wc -l | grep 2

int %test1(int %X) {
	%Y = xor int %X, -1
	ret int %Y
}

int %test2(int %X, int %Y) {
	%Z = or int %X, %Y
	%R = xor int %Z, -1
	ret int %R
}
OpenPOWER on IntegriCloud