r107852 is only safe with -enable-unsafe-fp-math to account for +0.0 == -0.0.
[oota-llvm.git] / test / CodeGen / CBackend / 2005-07-14-NegationToMinusMinus.ll
index 9880456dbe160bbc86ea6b555658f216841d659d..808b8f91407a094ad836a113949d5d204e05dca5 100644 (file)
@@ -1,19 +1,18 @@
-; RUN: llvm-as < %s | llc -march=c | not grep "\-\-65535"
-; ModuleID = '<stdin>'
-target endian = little
-target pointersize = 32
-target triple = "i686-pc-linux-gnu"
+; RUN: llc < %s -march=c | not grep -- --65535
+; PR596
 
-implementation   ; Functions:
+target datalayout = "e-p:32:32"
+target triple = "i686-pc-linux-gnu"
 
-declare void %func(int)
+declare void @func(i32)
 
-void %funcb() {
+define void @funcb() {
 entry:
-       %tmp.1 = sub int 0, -65535              ; <int> [#uses=1]
-       call void %func( int %tmp.1 )
-       br label %return
+        %tmp.1 = sub i32 0, -65535              ; <i32> [#uses=1]
+        call void @func( i32 %tmp.1 )
+        br label %return
 
-return:                ; preds = %entry
-       ret void
+return:         ; preds = %entry
+        ret void
 }
+