diff options
author | Richard Osborne <richard@xmos.com> | 2011-08-01 16:45:59 +0000 |
---|---|---|
committer | Richard Osborne <richard@xmos.com> | 2011-08-01 16:45:59 +0000 |
commit | 965b891762b4ec62475a7859a7c8453427064ff9 (patch) | |
tree | b2811a199007272e8ecbdc8a88b083366ff78c97 /test/CodeGen/XCore | |
parent | 32ab312e3f1987eeb8dbfe0917d980497e88a61c (diff) | |
download | llvm-965b891762b4ec62475a7859a7c8453427064ff9.tar.gz llvm-965b891762b4ec62475a7859a7c8453427064ff9.tar.bz2 llvm-965b891762b4ec62475a7859a7c8453427064ff9.tar.xz |
Fix crash with varargs function with no named parameters.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136623 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/XCore')
-rw-r--r-- | test/CodeGen/XCore/2011-08-01-VarargsBug.ll | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/CodeGen/XCore/2011-08-01-VarargsBug.ll b/test/CodeGen/XCore/2011-08-01-VarargsBug.ll new file mode 100644 index 0000000000..2076057441 --- /dev/null +++ b/test/CodeGen/XCore/2011-08-01-VarargsBug.ll @@ -0,0 +1,17 @@ +; RUN: llc < %s -march=xcore | FileCheck %s +define void @_Z1fz(...) { +entry: +; CHECK: _Z1fz: +; CHECK: extsp 3 +; CHECK: stw r[[REG:[0-3]{1,1}]] +; CHECK: , sp{{\[}}[[REG]]{{\]}} +; CHECK: stw r[[REG:[0-3]{1,1}]] +; CHECK: , sp{{\[}}[[REG]]{{\]}} +; CHECK: stw r[[REG:[0-3]{1,1}]] +; CHECK: , sp{{\[}}[[REG]]{{\]}} +; CHECK: stw r[[REG:[0-3]{1,1}]] +; CHECK: , sp{{\[}}[[REG]]{{\]}} +; CHECK: ldaw sp, sp[3] +; CHECK: retsp 0 + ret void +} |