blob: 2bf1949ead8e73ad6bf78b66512d722059203180 [file] [log] [blame]
Tanya Lattner003eae52008-03-10 07:21:50 +00001; RUN: llvm-as < %s -f -o %t.bc
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002; RUN: lli %t.bc > /dev/null
3
4; This tests to make sure that we can evaluate weird constant expressions
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005
Tanya Lattner003eae52008-03-10 07:21:50 +00006@A = global i32 5 ; <i32*> [#uses=1]
7@B = global i32 6 ; <i32*> [#uses=1]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008
Tanya Lattner003eae52008-03-10 07:21:50 +00009define i32 @main() {
10 %A = or i1 false, icmp slt (i32* @A, i32* @B) ; <i1> [#uses=0]
11 ret i32 0
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012}
13