diff options
Diffstat (limited to 'llvm/test/CodeGen/Alpha/i32_sub_1.ll')
-rw-r--r-- | llvm/test/CodeGen/Alpha/i32_sub_1.ll | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/Alpha/i32_sub_1.ll b/llvm/test/CodeGen/Alpha/i32_sub_1.ll new file mode 100644 index 00000000000..9d8cb097348 --- /dev/null +++ b/llvm/test/CodeGen/Alpha/i32_sub_1.ll @@ -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: + +define i32 %foo(i32 sext %x) sext { +entry: + %tmp.1 = add i32 %x, -1 ; <int> [#uses=1] + ret i32 %tmp.1 +} |