• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# RUN: llc -march=x86-64 -start-after branch-folder -stop-after branch-folder -o - %s | FileCheck %s
2# This test ensures that the MIR parser parses null register operands correctly.
3
4--- |
5
6  define i32 @deref(i32* %p) {
7  entry:
8    %a = load i32, i32* %p
9    ret i32 %a
10  }
11
12...
13---
14# CHECK: name: deref
15name:            deref
16body: |
17  bb.0.entry:
18    ; CHECK:      %eax = MOV32rm %rdi, 1, _, 0, _
19    ; CHECK-NEXT: RETQ %eax
20    %eax = MOV32rm %rdi, 1, _, 0, %noreg
21    RETQ %eax
22...
23