blob: cd5c635331d3a8faa9e1e2f72719f8c5052e373e [file] [log] [blame]
Dan Gohmanfea1dd02009-08-25 15:38:29 +00001; RUN: llvm-as %s -o %t.bc
Tanya Lattnere9789ef2004-11-06 23:32:43 +00002; RUN: lli %t.bc > /dev/null
3
Chris Lattner47b72fb2005-02-27 06:14:21 +00004; This tests to make sure that we can evaluate weird constant expressions
Chris Lattnerf687ada2003-08-24 19:23:31 +00005
Tanya Lattnerceca1942008-03-10 07:21:50 +00006@A = global i32 5 ; <i32*> [#uses=1]
7@B = global i32 6 ; <i32*> [#uses=1]
Chris Lattnerf687ada2003-08-24 19:23:31 +00008
Tanya Lattnerceca1942008-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
Chris Lattnerf687ada2003-08-24 19:23:31 +000012}
13