summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/MIR/X86/null-register-operands.mir
blob: 35b02cf3464d59db6208963826f9a67b3d2b0831 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# RUN: llc -march=x86-64 -run-pass none -o - %s | FileCheck %s
# This test ensures that the MIR parser parses null register operands correctly.

--- |

  define i32 @deref(i32* %p) {
  entry:
    %a = load i32, i32* %p
    ret i32 %a
  }

...
---
# CHECK: name: deref
name:            deref
body: |
  bb.0.entry:
    ; CHECK:      $eax = MOV32rm $rdi, 1, $noreg, 0, $noreg
    ; CHECK-NEXT: RETQ $eax
    $eax = MOV32rm $rdi, 1, _, 0, $noreg
    RETQ $eax
...
OpenPOWER on IntegriCloud