From 3c45888c8757953247630ae0734c553c023dcf2e Mon Sep 17 00:00:00 2001 From: Tim Besard Date: Wed, 17 Apr 2024 15:31:25 +0200 Subject: [PATCH] Add lit test. --- test/llvmpasses/gc-invariant-verifier.ll | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 test/llvmpasses/gc-invariant-verifier.ll diff --git a/test/llvmpasses/gc-invariant-verifier.ll b/test/llvmpasses/gc-invariant-verifier.ll new file mode 100644 index 00000000000000..ef32521427da1f --- /dev/null +++ b/test/llvmpasses/gc-invariant-verifier.ll @@ -0,0 +1,13 @@ +; This file is a part of Julia. License is MIT: https://julialang.org/license + +; RUN: opt -enable-new-pm=1 --opaque-pointers=1 --load-pass-plugin=libjulia-codegen%shlibext -passes='function(GCInvariantVerifier)' -S %s | FileCheck %s + +; CHECK-LABEL: @vectorized_addrspacecast +define ptr addrspace(10) @vectorized_addrspacecast() { +top: + ret ptr addrspace(10) null + +vector.ph: + %0 = addrspacecast <4 x ptr addrspace(10)> zeroinitializer to <4 x ptr addrspace(11)> + unreachable +}