blob: 3623cf4bd264998ae01d3694a4ae807ffccce5bf [file] [log] [blame]
Gabor Greifafb4e8c2008-05-20 22:07:21 +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