OSDN Git Service

make sure we always handle small negatives well
authorAndrew Lenharth <andrewl@lenharth.org>
Fri, 22 Jul 2005 21:53:35 +0000 (21:53 +0000)
committerAndrew Lenharth <andrewl@lenharth.org>
Fri, 22 Jul 2005 21:53:35 +0000 (21:53 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22503 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/Alpha/i32_sub_1.ll [new file with mode: 0644]

diff --git a/test/CodeGen/Alpha/i32_sub_1.ll b/test/CodeGen/Alpha/i32_sub_1.ll
new file mode 100644 (file)
index 0000000..ea6ab92
--- /dev/null
@@ -0,0 +1,10 @@
+; Make sure this testcase codegens to the ctpop instruction
+; RUN: llvm-as < %s | llc -march=alpha | grep -i 'subl $16,1,$0'
+
+implementation   ; Functions:
+
+int %foo(int %x) {
+entry:
+       %tmp.1 = add int %x, -1         ; <int> [#uses=1]
+       ret int %tmp.1
+}