summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/X86/win64_eh.ll
diff options
context:
space:
mode:
authorDavid Majnemer <david.majnemer@gmail.com>2015-02-23 21:50:30 +0000
committerDavid Majnemer <david.majnemer@gmail.com>2015-02-23 21:50:30 +0000
commit006c490ba8e26c3f34ea8efc34ad0e983d5e3107 (patch)
tree0dadb5637310440e71501626d6fc105fe273f036 /llvm/test/CodeGen/X86/win64_eh.ll
parent31d868b6189a48e9ee398b15d91ccc1ec53f2b83 (diff)
downloadbcm5719-llvm-006c490ba8e26c3f34ea8efc34ad0e983d5e3107.tar.gz
bcm5719-llvm-006c490ba8e26c3f34ea8efc34ad0e983d5e3107.zip
X86: Use a smaller 'mov' instruction for stack probe calls
Prologue emission, in some cases, requires calls to a stack probe helper function. The amount of stack to probe is passed as a register argument in the Win64 ABI but the instruction sequence used is pessimistic: it assumes that the number of bytes to probe is greater than 4 GB. Instead, select a more appropriate opcode depending on the number of bytes we are going to probe. llvm-svn: 230270
Diffstat (limited to 'llvm/test/CodeGen/X86/win64_eh.ll')
-rw-r--r--llvm/test/CodeGen/X86/win64_eh.ll2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/test/CodeGen/X86/win64_eh.ll b/llvm/test/CodeGen/X86/win64_eh.ll
index 7b11150d988..76d3e86003d 100644
--- a/llvm/test/CodeGen/X86/win64_eh.ll
+++ b/llvm/test/CodeGen/X86/win64_eh.ll
@@ -35,7 +35,7 @@ entry:
}
; WIN64-LABEL: foo2:
; WIN64: .seh_proc foo2
-; WIN64: movabsq $8000, %rax
+; WIN64: movl $8000, %eax
; WIN64: callq {{__chkstk|___chkstk_ms}}
; WIN64: subq %rax, %rsp
; WIN64: .seh_stackalloc 8000
OpenPOWER on IntegriCloud