llvm-project/llvm/test/tools/llvm-reduce/Inputs/test-output-format.ll
Matt Arsenault 3c436ab0d4 llvm-reduce: Support emitting bitcode for final result
Previously, this unconditionally emitted text IR. I ran
into a bug that manifested in broken disassembly, so the
desired output was the bitcode format. If the input format
was binary bitcode, the requested output file ends in .bc,
or an explicit -output-bitcode option was used, emit bitcode.
2022-10-31 20:35:08 -07:00

7 lines
91 B
LLVM

define void @foo(ptr %ptr) {
store i32 0, ptr %ptr
store i32 1, ptr %ptr
ret void
}