diff options
| author | Nick Lewycky <nicholas@mxc.ca> | 2008-05-26 20:18:56 +0000 |
|---|---|---|
| committer | Nick Lewycky <nicholas@mxc.ca> | 2008-05-26 20:18:56 +0000 |
| commit | 213e114a2c18eccfede3301bd0f4f399009e0665 (patch) | |
| tree | 3ef9167d4182b6d992b1e9657a7b559b2b3e9944 /llvm | |
| parent | dd7daee8506356432a613b5266d54994305e9951 (diff) | |
| download | bcm5719-llvm-213e114a2c18eccfede3301bd0f4f399009e0665.tar.gz bcm5719-llvm-213e114a2c18eccfede3301bd0f4f399009e0665.zip | |
The Linux ABI emits an extra "movl %esp, %ebp" in function prologue and
sometimes a "mov %ebp, %esp" in the epilogue.
Force these tests that rely on counting 'mov' to use i686-apple-darwin8.8.0
where they were written.
llvm-svn: 51568
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/test/CodeGen/X86/memcpy-2.ll | 4 | ||||
| -rw-r--r-- | llvm/test/CodeGen/X86/memset.ll | 4 | ||||
| -rw-r--r-- | llvm/test/CodeGen/X86/pmul.ll | 2 | ||||
| -rw-r--r-- | llvm/test/CodeGen/X86/vec_shuffle-18.ll | 2 |
4 files changed, 6 insertions, 6 deletions
diff --git a/llvm/test/CodeGen/X86/memcpy-2.ll b/llvm/test/CodeGen/X86/memcpy-2.ll index 972f55d8ef1..0fccc35f3d2 100644 --- a/llvm/test/CodeGen/X86/memcpy-2.ll +++ b/llvm/test/CodeGen/X86/memcpy-2.ll @@ -1,5 +1,5 @@ -; RUN: llvm-as < %s | llc -march=x86 -mattr=-sse | grep mov | count 7 -; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse | grep mov | count 5 +; RUN: llvm-as < %s | llc -march=x86 -mattr=-sse -mtriple=i686-apple-darwin8.8.0 | grep mov | count 7 +; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse -mtriple=i686-apple-darwin8.8.0 | grep mov | count 5 %struct.ParmT = type { [25 x i8], i8, i8* } @.str12 = internal constant [25 x i8] c"image\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00" ; <[25 x i8]*> [#uses=1] diff --git a/llvm/test/CodeGen/X86/memset.ll b/llvm/test/CodeGen/X86/memset.ll index eeaaf51976e..564174c1888 100644 --- a/llvm/test/CodeGen/X86/memset.ll +++ b/llvm/test/CodeGen/X86/memset.ll @@ -1,5 +1,5 @@ -; RUN: llvm-as < %s | llc -march=x86 -mattr=-sse | grep mov | count 9 -; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse | grep mov | count 3 +; RUN: llvm-as < %s | llc -march=x86 -mattr=-sse -mtriple=i686-apple-darwin8.8.0 | grep mov | count 9 +; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse -mtriple=i686-apple-darwin8.8.0 | grep mov | count 3 %struct.x = type { i16, i16 } diff --git a/llvm/test/CodeGen/X86/pmul.ll b/llvm/test/CodeGen/X86/pmul.ll index 3af47f680cf..2856d336ed5 100644 --- a/llvm/test/CodeGen/X86/pmul.ll +++ b/llvm/test/CodeGen/X86/pmul.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | llc -march=x86 -mattr=sse41 > %t +; RUN: llvm-as < %s | llc -march=x86 -mattr=sse41 -mtriple=i686-apple-darwin8.8.0 > %t ; RUN: grep pmul %t | count 6 ; RUN: grep mov %t | count 8 diff --git a/llvm/test/CodeGen/X86/vec_shuffle-18.ll b/llvm/test/CodeGen/X86/vec_shuffle-18.ll index 5e056903b60..85392632a29 100644 --- a/llvm/test/CodeGen/X86/vec_shuffle-18.ll +++ b/llvm/test/CodeGen/X86/vec_shuffle-18.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 | grep mov | count 7 +; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 -mtriple=i686-apple-darwin8.8.0 | grep mov | count 7 %struct.vector4_t = type { <4 x float> } |

