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