diff options
| author | Anton Korobeynikov <anton@korobeynikov.info> | 2019-01-09 12:52:15 +0000 |
|---|---|---|
| committer | Anton Korobeynikov <anton@korobeynikov.info> | 2019-01-09 12:52:15 +0000 |
| commit | 9222ed4485a59903606aa995bbfe157dae6ca69b (patch) | |
| tree | a28d157e8c376be7a1bb092496020e60bb5d5cc5 /llvm/test/CodeGen/MSP430 | |
| parent | 7d497ea2d9b604e127e01bbffe6920fba1251b8b (diff) | |
| download | bcm5719-llvm-9222ed4485a59903606aa995bbfe157dae6ca69b.tar.gz bcm5719-llvm-9222ed4485a59903606aa995bbfe157dae6ca69b.zip | |
[MSP430] Fix crash while lowering llvm.stacksave/stackrestore
Perform the usual expansion of stacksave / restore intrinsics.
Patch by Kristina Bessonova!
Differential Revision: https://reviews.llvm.org/D54890
llvm-svn: 350710
Diffstat (limited to 'llvm/test/CodeGen/MSP430')
| -rw-r--r-- | llvm/test/CodeGen/MSP430/stacksave_restore.ll | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/MSP430/stacksave_restore.ll b/llvm/test/CodeGen/MSP430/stacksave_restore.ll new file mode 100644 index 00000000000..47c4553929d --- /dev/null +++ b/llvm/test/CodeGen/MSP430/stacksave_restore.ll @@ -0,0 +1,13 @@ +; RUN: llc < %s -march=msp430 + +target triple = "msp430" + +define void @foo() { +entry: + %0 = tail call i8* @llvm.stacksave() + tail call void @llvm.stackrestore(i8* %0) + ret void +} + +declare i8* @llvm.stacksave() +declare void @llvm.stackrestore(i8*) |

