diff options
Diffstat (limited to 'test/CodeGen/MIR/X86/memory-operands.mir')
-rw-r--r-- | test/CodeGen/MIR/X86/memory-operands.mir | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/CodeGen/MIR/X86/memory-operands.mir b/test/CodeGen/MIR/X86/memory-operands.mir index 1f295df7551..0cf74ddbe70 100644 --- a/test/CodeGen/MIR/X86/memory-operands.mir +++ b/test/CodeGen/MIR/X86/memory-operands.mir @@ -186,6 +186,10 @@ %0 = load i8*, i8** undef, align 8 ret i8* %0 } + + define void @dummy() { + ret void + } ... --- name: test @@ -506,3 +510,14 @@ body: | %rax = MOV64rm undef %rax, 1, _, 0, _ :: (load 8 from `i8** undef`) RETQ %rax ... +--- +# Test memory operand without associated value. +# CHECK-LABEL: name: dummy +# CHECK: %rax = MOV64rm undef %rax, 1, _, 0, _ :: (load 8) +name: dummy +tracksRegLiveness: true +body: | + bb.0: + %rax = MOV64rm undef %rax, 1, _, 0, _ :: (load 8) + RETQ %rax +... |