aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/MIR/X86/expected-value-in-memory-operand.mir
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/MIR/X86/expected-value-in-memory-operand.mir')
-rw-r--r--test/CodeGen/MIR/X86/expected-value-in-memory-operand.mir24
1 files changed, 24 insertions, 0 deletions
diff --git a/test/CodeGen/MIR/X86/expected-value-in-memory-operand.mir b/test/CodeGen/MIR/X86/expected-value-in-memory-operand.mir
new file mode 100644
index 000000000000..f99443f1726d
--- /dev/null
+++ b/test/CodeGen/MIR/X86/expected-value-in-memory-operand.mir
@@ -0,0 +1,24 @@
+# RUN: not llc -march=x86-64 -start-after branch-folder -stop-after branch-folder -o /dev/null %s 2>&1 | FileCheck %s
+
+--- |
+
+ define i32 @test(i32* %a) {
+ entry:
+ %b = load i32, i32* %a
+ ret i32 %b
+ }
+
+...
+---
+name: test
+tracksRegLiveness: true
+liveins:
+ - { reg: '%rdi' }
+body: |
+ bb.0.entry:
+ liveins: %rdi
+ ; CHECK: [[@LINE+1]]:60: expected an IR value reference
+ %eax = MOV32rm killed %rdi, 1, _, 0, _ :: (load 4 from a)
+ RETQ %eax
+...
+