aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/CBackend/2005-07-14-NegationToMinusMinus.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/CBackend/2005-07-14-NegationToMinusMinus.ll')
-rw-r--r--test/CodeGen/CBackend/2005-07-14-NegationToMinusMinus.ll20
1 files changed, 20 insertions, 0 deletions
diff --git a/test/CodeGen/CBackend/2005-07-14-NegationToMinusMinus.ll b/test/CodeGen/CBackend/2005-07-14-NegationToMinusMinus.ll
new file mode 100644
index 0000000..e73eb63
--- /dev/null
+++ b/test/CodeGen/CBackend/2005-07-14-NegationToMinusMinus.ll
@@ -0,0 +1,20 @@
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=c | not grep -- --65535
+; PR596
+
+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
+}