diff options
author | Lauro Ramos Venancio <lauro.venancio@gmail.com> | 2007-01-12 20:52:27 +0000 |
---|---|---|
committer | Lauro Ramos Venancio <lauro.venancio@gmail.com> | 2007-01-12 20:52:27 +0000 |
commit | 901d9e65f68207c7aea0e829228870c4f70ec497 (patch) | |
tree | 55f620851850725dc59a9980d984526a2fb9915e /llvm/test/Regression | |
parent | c4235e55212e0a17105373645e616e2eb47f76cb (diff) | |
download | bcm5719-llvm-901d9e65f68207c7aea0e829228870c4f70ec497.tar.gz bcm5719-llvm-901d9e65f68207c7aea0e829228870c4f70ec497.zip |
Don't add or sub zero to sp.
llvm-svn: 33142
Diffstat (limited to 'llvm/test/Regression')
-rw-r--r-- | llvm/test/Regression/CodeGen/ARM/spaddsub.ll | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/llvm/test/Regression/CodeGen/ARM/spaddsub.ll b/llvm/test/Regression/CodeGen/ARM/spaddsub.ll new file mode 100644 index 00000000000..ef3b9b7c1d1 --- /dev/null +++ b/llvm/test/Regression/CodeGen/ARM/spaddsub.ll @@ -0,0 +1,10 @@ +; RUN: llvm-upgrade < %s | llvm-as | llc -f -march=arm -o %t.s && +; RUN: not grep "add r13, r13, #0" < %t.s && +; RUN: not grep "sub r13, r13, #0" < %t.s + +int %f() { +entry: + ret int 1 +} + + |