diff options
Diffstat (limited to 'llvm/test/CodeGen/MIR/X86/fixed-stack-object-redefinition-error.mir')
-rw-r--r-- | llvm/test/CodeGen/MIR/X86/fixed-stack-object-redefinition-error.mir | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/MIR/X86/fixed-stack-object-redefinition-error.mir b/llvm/test/CodeGen/MIR/X86/fixed-stack-object-redefinition-error.mir new file mode 100644 index 00000000000..5f88bc428f1 --- /dev/null +++ b/llvm/test/CodeGen/MIR/X86/fixed-stack-object-redefinition-error.mir @@ -0,0 +1,30 @@ +# RUN: not llc -march=x86 -start-after branch-folder -stop-after branch-folder -o /dev/null %s 2>&1 | FileCheck %s + +--- | + + define i32 @test(i32 %a, i32 %b) #0 { + entry: + %c = add i32 %a, %b + ret i32 %c + } + + attributes #0 = { "no-frame-pointer-elim"="false" } + +... +--- +name: test +tracksRegLiveness: true +frameInfo: + maxAlignment: 4 +fixedStack: + - { id: 0, offset: 4, size: 4, alignment: 4, isImmutable: true, isAliased: false } +# CHECK: [[@LINE+1]]:11: redefinition of fixed stack object '%fixed-stack.0' + - { id: 0, offset: 0, size: 4, alignment: 16, isImmutable: true, isAliased: false } +body: + - id: 0 + name: entry + instructions: + - '%eax = MOV32rm %esp, 1, _, 4, _' + - '%eax = ADD32rm killed %eax, %esp, 1, _, 8, _, implicit-def dead %eflags' + - 'RETL %eax' +... |