blob: cd5c635331d3a8faa9e1e2f72719f8c5052e373e [file] [log] [blame]
Dan Gohman2d65d352009-08-25 15:38:29 +00001; RUN: llvm-as %s -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