23 lines · plain
1# RUN: llc -mtriple=x86_64 -run-pass none -o - %s | FileCheck %s2# This test ensures that the MIR parser parses null register operands correctly.3 4--- |5 6 define i32 @deref(ptr %p) {7 entry:8 %a = load i32, ptr %p9 ret i32 %a10 }11 12...13---14# CHECK: name: deref15name: deref16body: |17 bb.0.entry:18 ; CHECK: $eax = MOV32rm $rdi, 1, $noreg, 0, $noreg19 ; CHECK-NEXT: RET64 $eax20 $eax = MOV32rm $rdi, 1, _, 0, $noreg21 RET64 $eax22...23