diff options
Diffstat (limited to 'test/CodeGen/Alpha')
-rw-r--r-- | test/CodeGen/Alpha/i32_sub_1.ll | 10 |
1 files changed, 10 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 0000000..ea6ab92 --- /dev/null +++ b/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: + +int %foo(int %x) { +entry: + %tmp.1 = add int %x, -1 ; <int> [#uses=1] + ret int %tmp.1 +} |