summaryrefslogtreecommitdiff
path: root/test/CodeGen/Alpha/neg1.ll
diff options
context:
space:
mode:
authorEd Schouten <ed@FreeBSD.org>2009-06-02 17:52:33 +0000
committerEd Schouten <ed@FreeBSD.org>2009-06-02 17:52:33 +0000
commit009b1c42aa6266385f2c37e227516b24077e6dd7 (patch)
tree64ba909838c23261cace781ece27d106134ea451 /test/CodeGen/Alpha/neg1.ll
Diffstat (limited to 'test/CodeGen/Alpha/neg1.ll')
-rw-r--r--test/CodeGen/Alpha/neg1.ll7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/CodeGen/Alpha/neg1.ll b/test/CodeGen/Alpha/neg1.ll
new file mode 100644
index 0000000000000..ddaed4a0c6e24
--- /dev/null
+++ b/test/CodeGen/Alpha/neg1.ll
@@ -0,0 +1,7 @@
+; Make sure this testcase codegens to the lda -1 instruction
+; RUN: llvm-as < %s | llc -march=alpha | grep {\\-1}
+
+define i64 @bar() {
+entry:
+ ret i64 -1
+}