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

Michael Berg via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 6 10:07:30 PDT 2018


Author: mcberg2017
Date: Thu Sep  6 10:07:29 2018
New Revision: 341565

URL: http://llvm.org/viewvc/llvm-project?rev=341565&view=rev
Log:
[NFC] - in preparation for adding nsw, nuw and exact as flags to MI

Added:
    llvm/trunk/test/CodeGen/MIR/X86/copyIRflags.mir

Added: llvm/trunk/test/CodeGen/MIR/X86/copyIRflags.mir
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/MIR/X86/copyIRflags.mir?rev=341565&view=auto
==============================================================================
--- llvm/trunk/test/CodeGen/MIR/X86/copyIRflags.mir (added)
+++ llvm/trunk/test/CodeGen/MIR/X86/copyIRflags.mir Thu Sep  6 10:07:29 2018
@@ -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
+
+...




More information about the llvm-commits mailing list