[Bitcode] Convert constexpr-to-instr.ll to use bitcode input (NFC)
authorNikita Popov <npopov@redhat.com>
Wed, 7 Sep 2022 10:28:26 +0000 (12:28 +0200)
committerNikita Popov <npopov@redhat.com>
Wed, 7 Sep 2022 10:29:32 +0000 (12:29 +0200)
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
llvm/test/Bitcode/constexpr-to-instr.ll.bc [new file with mode: 0644]

index 7d6522f..07accaf 100644 (file)
@@ -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 (file)
index 0000000..7fae9c0
Binary files /dev/null and b/llvm/test/Bitcode/constexpr-to-instr.ll.bc differ