From 0c40651f690bab7471f4c998b4fb80bc50ac5814 Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Wed, 7 Sep 2022 12:28:26 +0200 Subject: [PATCH] [Bitcode] Convert constexpr-to-instr.ll to use bitcode input (NFC) We can't use an IR input once the relevant constant expressions are no longer supported. Use a bitcode file instead, which will be auto-upgraded (the whole point of this code...) --- llvm/test/Bitcode/constexpr-to-instr.ll | 2 +- llvm/test/Bitcode/constexpr-to-instr.ll.bc | Bin 0 -> 2816 bytes 2 files changed, 1 insertion(+), 1 deletion(-) create mode 100644 llvm/test/Bitcode/constexpr-to-instr.ll.bc diff --git a/llvm/test/Bitcode/constexpr-to-instr.ll b/llvm/test/Bitcode/constexpr-to-instr.ll index 7d6522f..07accaf 100644 --- a/llvm/test/Bitcode/constexpr-to-instr.ll +++ b/llvm/test/Bitcode/constexpr-to-instr.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | llvm-dis -expand-constant-exprs | FileCheck %s +; RUN: llvm-dis -expand-constant-exprs < %s.bc | FileCheck %s @g = extern_weak global i32 @g2 = extern_weak global i32 diff --git a/llvm/test/Bitcode/constexpr-to-instr.ll.bc b/llvm/test/Bitcode/constexpr-to-instr.ll.bc new file mode 100644 index 0000000000000000000000000000000000000000..7fae9c05fbd75fb8c4adb317182587f750d2fdb2 GIT binary patch literal 2816 zcmbVOe@q+K9e?&2-vQ3u0Zy>R**gbVSeCX2q^lj{%0CDq3DX>wPE@192b_spVjSBc zPFhW8OmalCCW5HsMnr;&Kh|oK=tieZLX(Y2=P)Z{sGE?A5H2Jk6V1??PLWzod+%JB zyGn_)C*Aw;eV_OF{(N`mbS2kb)B;ch0O;0mH9vgy58hvYIs2okOii<*p$M2X0CXw= zC{>yO9KZqi;L+;qj*RMrnr^U+DTXz*MTFj{`gymgJ+5?)l{%;C2CbRUohoT)A88FN zn5vu0r8w;vQ}$+v545bSWrV$>XlNhS9j-e(TL0Ee=XLgW2J&8G0oV`6hJ&reYdeqb2+sW1lLz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