2008-02-19 01:41:04 +00:00
|
|
|
; RUN: llvm-as < %s | llc -march=c | not grep -- --65535
|
2007-04-16 05:58:47 +00:00
|
|
|
; PR596
|
2007-04-15 23:00:46 +00:00
|
|
|
|
2008-02-19 01:41:04 +00:00
|
|
|
target datalayout = "e-p:32:32"
|
2005-07-14 19:56:03 +00:00
|
|
|
target triple = "i686-pc-linux-gnu"
|
|
|
|
|
2008-02-19 01:41:04 +00:00
|
|
|
declare void @func(i32)
|
2005-07-14 19:56:03 +00:00
|
|
|
|
2008-02-19 01:41:04 +00:00
|
|
|
define void @funcb() {
|
2005-07-14 19:56:03 +00:00
|
|
|
entry:
|
2008-02-19 01:41:04 +00:00
|
|
|
%tmp.1 = sub i32 0, -65535 ; <i32> [#uses=1]
|
|
|
|
call void @func( i32 %tmp.1 )
|
|
|
|
br label %return
|
2005-07-14 19:56:03 +00:00
|
|
|
|
2008-02-19 01:41:04 +00:00
|
|
|
return: ; preds = %entry
|
|
|
|
ret void
|
2005-07-14 19:56:03 +00:00
|
|
|
}
|
2008-02-19 01:41:04 +00:00
|
|
|
|