diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2011-10-26 21:16:41 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2011-10-26 21:16:41 +0000 |
commit | b3285224cd90f3ef2cf4254b86dd0ad79ff0dfe1 (patch) | |
tree | 1670f64c153cdea22707308eeed38e62a9c1bdcc /llvm/test/CodeGen/X86/segmented-stacks.ll | |
parent | 4e380354a969b26e9c695195d8ac7ffd9dab6f85 (diff) | |
download | bcm5719-llvm-b3285224cd90f3ef2cf4254b86dd0ad79ff0dfe1.tar.gz bcm5719-llvm-b3285224cd90f3ef2cf4254b86dd0ad79ff0dfe1.zip |
Fixes an issue reported by -verify-machineinstrs.
Patch by Sanjoy Das.
llvm-svn: 143064
Diffstat (limited to 'llvm/test/CodeGen/X86/segmented-stacks.ll')
-rw-r--r-- | llvm/test/CodeGen/X86/segmented-stacks.ll | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/llvm/test/CodeGen/X86/segmented-stacks.ll b/llvm/test/CodeGen/X86/segmented-stacks.ll index 3f0067e2926..4871daaa01b 100644 --- a/llvm/test/CodeGen/X86/segmented-stacks.ll +++ b/llvm/test/CodeGen/X86/segmented-stacks.ll @@ -30,6 +30,10 @@ false: ; X32-NEXT: addl $8, %esp ; X32-NEXT: ret +; X32: movl %esp, %eax +; X32-NEXT: subl %ecx, %eax +; X32-NEXT: cmpl %eax, %gs:48 + ; X32: movl %eax, %esp ; X32: subl $12, %esp @@ -47,14 +51,15 @@ false: ; X64-NEXT: callq __morestack ; X64-NEXT: ret -; X64: movq %rsp, %rax -; X64-NEXT: subq %rcx, %rax -; X64-NEXT: cmpq %rax, %fs:112 +; X64: movq %rsp, %rdi +; X64-NEXT: subq %rax, %rdi +; X64-NEXT: cmpq %rdi, %fs:112 -; X64: movq %rax, %rsp +; X64: movq %rdi, %rsp -; X64: movq %rcx, %rdi +; X64: movq %rax, %rdi ; X64-NEXT: callq __morestack_allocate_stack_space +; X64-NEXT: movq %rax, %rdi } |