aboutsummaryrefslogtreecommitdiff
path: root/test/ExecutionEngine/test-logical.ll
blob: 86af2e224fcf538aaffe046af55f28b02a83d1b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
; RUN: llvm-upgrade < %s | llvm-as -f -o %t.bc
; RUN: lli %t.bc > /dev/null


int %main() {
	%A = and sbyte 4, 8
	%B = or sbyte %A, 7
	%C = xor sbyte %B, %A

	%A = and short 4, 8
	%B = or short %A, 7
	%C = xor short %B, %A

	%A = and int 4, 8
	%B = or int %A, 7
	%C = xor int %B, %A

	%A = and long 4, 8
	%B = or long %A, 7
	%C = xor long %B, %A

	ret int 0
}