forked from OSchip/llvm-project
Regression test for PR#596: Make sure that negation of a minus doesn't
turn into a C predecrement operator. llvm-svn: 22438
This commit is contained in:
parent
3870f9d31a
commit
b249d409be
|
@ -0,0 +1,19 @@
|
|||
; RUN: llvm-as < %s | llc -march=c | not grep "\-\-65535"
|
||||
; ModuleID = '<stdin>'
|
||||
target endian = little
|
||||
target pointersize = 32
|
||||
target triple = "i686-pc-linux-gnu"
|
||||
|
||||
implementation ; Functions:
|
||||
|
||||
declare void %func(int)
|
||||
|
||||
void %funcb() {
|
||||
entry:
|
||||
%tmp.1 = sub int 0, -65535 ; <int> [#uses=1]
|
||||
call void %func( int %tmp.1 )
|
||||
br label %return
|
||||
|
||||
return: ; preds = %entry
|
||||
ret void
|
||||
}
|
Loading…
Reference in New Issue