summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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