Regression test for PR#596: Make sure that negation of a minus doesn't
[oota-llvm.git] / test / CodeGen / CBackend / 2005-07-14-NegationToMinusMinus.ll
1 ; RUN: llvm-as < %s | llc -march=c | not grep "\-\-65535"
2 ; ModuleID = '<stdin>'
3 target endian = little
4 target pointersize = 32
5 target triple = "i686-pc-linux-gnu"
6
7 implementation   ; Functions:
8
9 declare void %func(int)
10
11 void %funcb() {
12 entry:
13         %tmp.1 = sub int 0, -65535              ; <int> [#uses=1]
14         call void %func( int %tmp.1 )
15         br label %return
16
17 return:         ; preds = %entry
18         ret void
19 }