llvm-project/llvm/test/CodeGen/MIR/Generic/parse-integer-true-false.mir
Amara Emerson d496cc8ffb [MIRParser] Add parser support for 'true' and 'false' i1s.
We already output true and false in the printer, but the parser isn't able to
read it.

Differential Revision: https://reviews.llvm.org/D47424

llvm-svn: 333970
2018-06-05 00:17:13 +00:00

12 lines
289 B
YAML

# RUN: llc -run-pass none -o - %s | FileCheck %s
# Parse an i1 being a 'true' or 'false'
---
name: i1_true_false
body: |
bb.0:
; CHECK: %0:_(s1) = G_CONSTANT i1 true
; CHECK: %1:_(s1) = G_CONSTANT i1 false
%0:_(s1) = G_CONSTANT i1 true
%1:_(s1) = G_CONSTANT i1 false
...