blob: 808b8f91407a094ad836a113949d5d204e05dca5 [file] [log] [blame]
Dan Gohmanfce288f2009-09-09 00:09:15 +00001; RUN: llc < %s -march=c | not grep -- --65535
Chris Lattner6ab5d5d2007-04-16 05:58:47 +00002; PR596
Reid Spencer4575ab22007-04-15 23:00:46 +00003
Tanya Lattner53a66d12008-02-19 01:41:04 +00004target datalayout = "e-p:32:32"
John Criswell8bf0f642005-07-14 19:56:03 +00005target triple = "i686-pc-linux-gnu"
6
Tanya Lattner53a66d12008-02-19 01:41:04 +00007declare void @func(i32)
John Criswell8bf0f642005-07-14 19:56:03 +00008
Tanya Lattner53a66d12008-02-19 01:41:04 +00009define void @funcb() {
John Criswell8bf0f642005-07-14 19:56:03 +000010entry:
Tanya Lattner53a66d12008-02-19 01:41:04 +000011 %tmp.1 = sub i32 0, -65535 ; <i32> [#uses=1]
12 call void @func( i32 %tmp.1 )
13 br label %return
John Criswell8bf0f642005-07-14 19:56:03 +000014
Tanya Lattner53a66d12008-02-19 01:41:04 +000015return: ; preds = %entry
16 ret void
John Criswell8bf0f642005-07-14 19:56:03 +000017}
Tanya Lattner53a66d12008-02-19 01:41:04 +000018