diff options
author | Anton Korobeynikov <asl@math.spbu.ru> | 2010-10-03 22:02:38 +0000 |
---|---|---|
committer | Anton Korobeynikov <asl@math.spbu.ru> | 2010-10-03 22:02:38 +0000 |
commit | 6af61ca789ae3c18bc03bc3256244f80bb0938f8 (patch) | |
tree | 87389bd10f2ede0674f63b1b5a8577eda3574250 /test/CodeGen/X86/win_chkstk.ll | |
parent | d32d85e5ba2de223c853b2e1c9bd57a39ebab4ce (diff) | |
download | external_llvm-6af61ca789ae3c18bc03bc3256244f80bb0938f8.zip external_llvm-6af61ca789ae3c18bc03bc3256244f80bb0938f8.tar.gz external_llvm-6af61ca789ae3c18bc03bc3256244f80bb0938f8.tar.bz2 |
Properly emit stack probe on win64 (for non-mingw targets).
Based on the patch by Cameron Esfahani!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115479 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/win_chkstk.ll')
-rw-r--r-- | test/CodeGen/X86/win_chkstk.ll | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/CodeGen/X86/win_chkstk.ll b/test/CodeGen/X86/win_chkstk.ll index c05b85c..a377a7d 100644 --- a/test/CodeGen/X86/win_chkstk.ll +++ b/test/CodeGen/X86/win_chkstk.ll @@ -1,4 +1,5 @@ ; RUN: llc < %s -mtriple=i686-pc-win32 | FileCheck %s -check-prefix=WIN_X32 +; RUN: llc < %s -mtriple=x86_64-pc-win32 | FileCheck %s -check-prefix=WIN_X64 ; RUN: llc < %s -mtriple=i686-pc-mingw32 | FileCheck %s -check-prefix=MINGW_X32 ; RUN: llc < %s -mtriple=x86_64-pc-mingw32 | FileCheck %s -check-prefix=MINGW_X64 ; RUN: llc < %s -mtriple=i386-pc-linux | FileCheck %s -check-prefix=LINUX @@ -13,7 +14,7 @@ define i32 @main4k() nounwind { entry: ; WIN_X32: calll __chkstk -; WIN_X64: call __chkstk +; WIN_X64: callq __chkstk ; MINGW_X32: calll __alloca ; MINGW_X64: callq _alloca ; LINUX-NOT: call __chkstk @@ -30,7 +31,7 @@ entry: ; WIN_X32: ret ; WIN_X64: # BB#0: -; WIN_X64-NOT: call __chkstk +; WIN_X64-NOT: callq __chkstk ; WIN_X64: ret ; MINGW_X64: # BB#0: |