summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNate Begeman <natebegeman@mac.com>2006-03-17 22:39:45 +0000
committerNate Begeman <natebegeman@mac.com>2006-03-17 22:39:45 +0000
commit41767dd1420fb82e9a502ee02db2c2f872e42ff7 (patch)
treed615b2f2085cf62d807e0d9f694de7892134c3d0
parentb09a56f3a414f99d241a8763671fbdb50b2e03e4 (diff)
downloadbcm5719-llvm-41767dd1420fb82e9a502ee02db2c2f872e42ff7.tar.gz
bcm5719-llvm-41767dd1420fb82e9a502ee02db2c2f872e42ff7.zip
Add a missing testcase
llvm-svn: 26834
-rw-r--r--llvm/test/Regression/CodeGen/PowerPC/neg.ll6
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/test/Regression/CodeGen/PowerPC/neg.ll b/llvm/test/Regression/CodeGen/PowerPC/neg.ll
new file mode 100644
index 00000000000..59e14dbd705
--- /dev/null
+++ b/llvm/test/Regression/CodeGen/PowerPC/neg.ll
@@ -0,0 +1,6 @@
+; RUN: llvm-as < %s | llc -march=ppc32 | grep neg
+
+int %test(int %X) {
+ %Y = sub int 0, %X
+ ret int %Y
+}
OpenPOWER on IntegriCloud