================ @@ -1,33 +1,133 @@ -; RUN: llc < %s -asm-verbose=false -verify-machineinstrs | FileCheck %s -; RUN: llc < %s -asm-verbose=false -fast-isel -fast-isel-abort=1 -verify-machineinstrs | FileCheck %s - -; Test that LLVM unreachable instruction and trap intrinsic are lowered to -; wasm unreachable +; RUN: llc < %s -verify-machineinstrs | FileCheck %s +; RUN: llc < %s -fast-isel -fast-isel-abort=1 -verify-machineinstrs | FileCheck %s +; RUN: llc < %s -verify-machineinstrs --trap-unreachable | FileCheck %s +; RUN: llc < %s -fast-isel -fast-isel-abort=1 -verify-machineinstrs --trap-unreachable | FileCheck %s +; RUN: llc < %s -verify-machineinstrs --trap-unreachable --no-trap-after-noreturn | FileCheck %s +; RUN: llc < %s -fast-isel -fast-isel-abort=1 -verify-machineinstrs --trap-unreachable --no-trap-after-noreturn | FileCheck %s target triple = "wasm32-unknown-unknown" -declare void @llvm.trap() -declare void @llvm.debugtrap() -declare void @abort() -; CHECK-LABEL: f1: -; CHECK: call abort{{$}} -; CHECK: unreachable -define i32 @f1() { - call void @abort() - unreachable -} +; Test that the LLVM trap and debug trap intrinsics are lowered to +; wasm unreachable. ---------------- majaha wrote:
Yeah, I just liked it better when "wasm unreachable" was all together on one line. We can change it if you like. https://github.com/llvm/llvm-project/pull/65876 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits