[NFC] - in preparation for adding nsw, nuw and exact as flags to MI

llvm-svn: 341565
This commit is contained in:
Michael Berg 2018-09-06 17:07:29 +00:00
parent c1e0c34e45
commit 1b34b01a8e
1 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1,19 @@
# 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
$eax = ADD32rr $eax, killed $eax, implicit-def dead $eflags
; CHECK: $eax = ADD32rr $eax, killed $eax, implicit-def dead $eflags
$eax = ADD32rr $eax, killed $eax, implicit-def dead $eflags
; CHECK: $eax = SAR32ri $eax, 1, implicit-def dead $eflags
$eax = SAR32ri $eax, 1, implicit-def dead $eflags
; CHECK: RET 0, $eax
RET 0, $eax
...