summaryrefslogtreecommitdiff
path: root/test/CodeGen/Alpha/i32_sub_1.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/Alpha/i32_sub_1.ll')
-rw-r--r--test/CodeGen/Alpha/i32_sub_1.ll9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/CodeGen/Alpha/i32_sub_1.ll b/test/CodeGen/Alpha/i32_sub_1.ll
new file mode 100644
index 000000000000..7af813454072
--- /dev/null
+++ b/test/CodeGen/Alpha/i32_sub_1.ll
@@ -0,0 +1,9 @@
+; Make sure this testcase codegens to the ctpop instruction
+; RUN: llvm-as < %s | llc -march=alpha | grep -i {subl \$16,1,\$0}
+
+
+define i32 @foo(i32 signext %x) signext {
+entry:
+ %tmp.1 = add i32 %x, -1 ; <int> [#uses=1]
+ ret i32 %tmp.1
+}