The Linux ABI emits an extra "movl %esp, %ebp" in function prologue and
authorNick Lewycky <nicholas@mxc.ca>
Mon, 26 May 2008 20:18:56 +0000 (20:18 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Mon, 26 May 2008 20:18:56 +0000 (20:18 +0000)
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51568 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/X86/memcpy-2.ll
test/CodeGen/X86/memset.ll
test/CodeGen/X86/pmul.ll
test/CodeGen/X86/vec_shuffle-18.ll

index 972f55d8ef1847b222bc8d9c3e216a797ae420ae..0fccc35f3d273eb375fe736d15a1f04d750fbad2 100644 (file)
@@ -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]
index eeaaf51976e9059180fea79ac4bcad56404bf613..564174c18880d4fa7af13cffaf044dd0825487f1 100644 (file)
@@ -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 }
 
index 3af47f680cfcaba38d229a328e925effbfdd6029..2856d336ed582238d135459fcf4ddf6fb204d1ac 100644 (file)
@@ -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
 
index 5e056903b60d43006c2374694e02d0f4dad9504f..85392632a29e371a056a8bd827ef3281ca3b0d96 100644 (file)
@@ -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> }