diff options
| author | Heejin Ahn <aheejin@gmail.com> | 2019-08-26 21:41:17 +0000 |
|---|---|---|
| committer | Heejin Ahn <aheejin@gmail.com> | 2019-08-26 21:41:17 +0000 |
| commit | 1266191d6fe7bc1f0b85ec2fc8a1dcaf1363de54 (patch) | |
| tree | 6959426279a75e4ec6d441c3aa29695aef6d114a /llvm/test/CodeGen/WebAssembly/lower-em-sjlj-longjmp-only.ll | |
| parent | 69400f867d8e007a31d231692b4d4780c860aefd (diff) | |
| download | bcm5719-llvm-1266191d6fe7bc1f0b85ec2fc8a1dcaf1363de54.tar.gz bcm5719-llvm-1266191d6fe7bc1f0b85ec2fc8a1dcaf1363de54.zip | |
[WebAssembly] Combine emscripten SjLj tests
Summary:
Combine a test in lower-em-sjlj-longjmp-only.ll into lower-em-sjlj.ll,
because the test command is the same and I don't see any reason it
should be a separate file. Also converted tabs into spaces and fixed
indentations in lower-em-sjlj-sret.ll. (lower-em-sjlj.ll uses a
different test command (llc), so it couldn't be combined)
Reviewers: dschuff
Subscribers: sbc100, jgravelle-google, sunfish, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D66728
llvm-svn: 369974
Diffstat (limited to 'llvm/test/CodeGen/WebAssembly/lower-em-sjlj-longjmp-only.ll')
| -rw-r--r-- | llvm/test/CodeGen/WebAssembly/lower-em-sjlj-longjmp-only.ll | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/llvm/test/CodeGen/WebAssembly/lower-em-sjlj-longjmp-only.ll b/llvm/test/CodeGen/WebAssembly/lower-em-sjlj-longjmp-only.ll deleted file mode 100644 index 7d31c8ced3f..00000000000 --- a/llvm/test/CodeGen/WebAssembly/lower-em-sjlj-longjmp-only.ll +++ /dev/null @@ -1,24 +0,0 @@ -; RUN: opt < %s -wasm-lower-em-ehsjlj -S | FileCheck %s - -target datalayout = "e-m:e-p:32:32-i64:64-n32:64-S128" -target triple = "wasm32-unknown-unknown" - -%struct.__jmp_buf_tag = type { [6 x i32], i32, %struct.__sigset_t } -%struct.__sigset_t = type { [32 x i32] } - -@buffer = global [1 x %struct.__jmp_buf_tag] zeroinitializer, align 16 - -; Tests if program does not crash when there's no setjmp function calls in the -; module. - -; CHECK: call void @emscripten_longjmp_jmpbuf -define void @longjmp_only() { -entry: - call void @longjmp(%struct.__jmp_buf_tag* getelementptr inbounds ([1 x %struct.__jmp_buf_tag], [1 x %struct.__jmp_buf_tag]* @buffer, i32 0, i32 0), i32 1) #1 - unreachable -} - -; Function Attrs: noreturn nounwind -declare void @longjmp(%struct.__jmp_buf_tag*, i32) #1 - -attributes #1 = { noreturn nounwind } |

