aboutsummaryrefslogtreecommitdiff
path: root/llvm/test/ExecutionEngine/MCJIT/test-constantexpr.ll
blob: 2668b93f4815a93ec8a9c5bc49d88b93bbed84f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
; RUN: %lli -jit-kind=mcjit %s > /dev/null
; RUN: %lli %s > /dev/null

; This tests to make sure that we can evaluate weird constant expressions

@A = global i32 5		; <ptr> [#uses=1]

define i32 @main() {
	%A = or i1 false, ptrtoint (ptr @A to i1)
	ret i32 0
}