Files
clang-p2996/llvm/test/CodeGen/MIR/X86/copyIRflags.mir
Michael Berg c72a7259be add IR flags to MI
Summary: Initial support for nsw, nuw and exact flags in MI

Reviewers: spatel, hfinkel, wristow

Reviewed By: spatel

Subscribers: nlopes

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

llvm-svn: 341996
2018-09-11 21:35:32 +00:00

21 lines
697 B
YAML

# RUN: llc -march=x86-64 -run-pass none -o - %s | FileCheck %s
# This test ensures that the MIR parser parses the fast math instruction flags.
...
---
name: baz
body: |
bb.0.entry:
liveins: $eax
; CHECK: $eax = nsw ADD32rr $eax, killed $eax, implicit-def dead $eflags
$eax = nsw ADD32rr $eax, killed $eax, implicit-def dead $eflags
; CHECK: $eax = nuw ADD32rr $eax, killed $eax, implicit-def dead $eflags
$eax = nuw ADD32rr $eax, killed $eax, implicit-def dead $eflags
; CHECK: $eax = exact SAR32ri $eax, 1, implicit-def dead $eflags
$eax = exact SAR32ri $eax, 1, implicit-def dead $eflags
; CHECK: RET 0, $eax
RET 0, $eax
...