llvm.org GIT mirror llvm / f340d34
Make the test/CodeGen/X86/win32_sret.ll reliable on any CPU by explicitly specifying the -mcpu git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@178885 91177308-0d34-0410-b5e6-96231b3b80d8 Timur Iskhodzhanov 6 years ago
1 changed file(s) with 6 addition(s) and 7 deletion(s). Raw diff Collapse all Expand all
None ; RUN: llc < %s -mtriple=i686-pc-win32 | FileCheck %s -check-prefix=WIN32
0 ; We specify -mcpu explicitly to avoid instruction reordering that happens on
1 ; some setups (e.g., Atom) from affecting the output.
2 ; RUN: llc < %s -mcpu=core2 -mtriple=i686-pc-win32 | FileCheck %s -check-prefix=WIN32
13 ; RUN: llc < %s -mtriple=i686-pc-mingw32 | FileCheck %s -check-prefix=MINGW_X86
24 ; RUN: llc < %s -mtriple=i386-pc-linux | FileCheck %s -check-prefix=LINUX
3 ; RUN: llc < %s -O0 -mtriple=i686-pc-win32 | FileCheck %s -check-prefix=WIN32
5 ; RUN: llc < %s -mcpu=core2 -O0 -mtriple=i686-pc-win32 | FileCheck %s -check-prefix=WIN32
46 ; RUN: llc < %s -O0 -mtriple=i686-pc-mingw32 | FileCheck %s -check-prefix=MINGW_X86
57 ; RUN: llc < %s -O0 -mtriple=i386-pc-linux | FileCheck %s -check-prefix=LINUX
68
116118 ; WIN32: movl %eax, (%e{{[sc][px]}})
117119
118120 ; The this pointer goes to ECX.
119 ; FIXME: for some reason, the below checks fail on the Ubuntu Atom D2700 bot.
120 ; FIXME-NEXT: leal {{[0-9]+}}(%esp), %ecx
121 ; FIXME-NEXT: calll "?foo@C5@@QAE?AUS5@@XZ"
122
123 ; WIN32: calll "?foo@C5@@QAE?AUS5@@XZ"
121 ; WIN32-NEXT: leal {{[0-9]+}}(%esp), %ecx
122 ; WIN32-NEXT: calll "?foo@C5@@QAE?AUS5@@XZ"
124123 ; WIN32: ret
125124 ret void
126125 }