summaryrefslogtreecommitdiff
path: root/test/CodeGen/MIR/X86/expected-size-integer-after-memory-operation.mir
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/MIR/X86/expected-size-integer-after-memory-operation.mir')
-rw-r--r--test/CodeGen/MIR/X86/expected-size-integer-after-memory-operation.mir24
1 files changed, 24 insertions, 0 deletions
diff --git a/test/CodeGen/MIR/X86/expected-size-integer-after-memory-operation.mir b/test/CodeGen/MIR/X86/expected-size-integer-after-memory-operation.mir
new file mode 100644
index 0000000000000..71ff15bd9c523
--- /dev/null
+++ b/test/CodeGen/MIR/X86/expected-size-integer-after-memory-operation.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]]:53: expected the size integer literal after memory operation
+ %eax = MOV32rm killed %rdi, 1, _, 0, _ :: (load from %ir.a)
+ RETQ %eax
+...
+