aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/X86/test-not-cmp.ll
blob: 106489334e8384531656d8e2bd5f6094b52b18c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
; RUN: llvm-as < %s | llc -march=x86
; RUN: llvm-as < %s | llc -march=x86 | grep test

int %test(int %X, int* %y) {
	%tmp = load int* %y
	%tmp = seteq int %tmp, 0
	br bool %tmp, label %ReturnBlock, label %cond_true

cond_true:
	ret int 1

ReturnBlock:
	ret int 0
}