blob: 9cba00bc9e5e442197d8d67c68b92fc8f74ed2bd [file] [log] [blame]
# 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, _, 0, _
; CHECK-NEXT: RETQ %eax
%eax = MOV32rm %rdi, 1, _, 0, %noreg
RETQ %eax
...