Files
clang-p2996/llvm/test/CodeGen/MIR/Generic/bfloat-immediates.mir
Stephen Chou 3c24eb39fb [LLVM][MIR] Support parsing bfloat immediates in MIR parser (#96010)
Adds support in MIR parser for parsing bfloat immediates, and adds a
test for this.
2024-06-25 16:44:14 -04:00

13 lines
361 B
YAML

# RUN: llc -run-pass none -o - %s | FileCheck %s
# This test ensures that the MIR parser parses bfloat immediates correctly.
---
name: bfloat_immediates
body: |
bb.0:
; CHECK: %0:_(s16) = G_FCONSTANT bfloat 0xR3E80
; CHECK: %1:_(s16) = G_FCONSTANT bfloat 0xR3E80
%0:_(s16) = G_FCONSTANT bfloat 0xR3E80
%1:_(s16) = G_FCONSTANT bfloat 0.25
...