[llvm] r184709 - Add -mcpu to some unit tests that only fail on certain hosts.

Andrew Trick atrick at apple.com
Mon Jun 24 02:51:31 PDT 2013


Author: atrick
Date: Mon Jun 24 04:51:30 2013
New Revision: 184709

URL: http://llvm.org/viewvc/llvm-project?rev=184709&view=rev
Log:
Add -mcpu to some unit tests that only fail on certain hosts.

Modified:
    llvm/trunk/test/CodeGen/X86/2008-08-31-EH_RETURN32.ll
    llvm/trunk/test/CodeGen/X86/2009-03-23-MultiUseSched.ll
    llvm/trunk/test/CodeGen/X86/coalescer-commute1.ll
    llvm/trunk/test/CodeGen/X86/commute-two-addr.ll
    llvm/trunk/test/CodeGen/X86/crash-nosse.ll
    llvm/trunk/test/CodeGen/X86/pr3457.ll
    llvm/trunk/test/CodeGen/X86/x86-64-and-mask.ll

Modified: llvm/trunk/test/CodeGen/X86/2008-08-31-EH_RETURN32.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/2008-08-31-EH_RETURN32.ll?rev=184709&r1=184708&r2=184709&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/2008-08-31-EH_RETURN32.ll (original)
+++ llvm/trunk/test/CodeGen/X86/2008-08-31-EH_RETURN32.ll Mon Jun 24 04:51:30 2013
@@ -1,5 +1,5 @@
 ; Check that eh_return & unwind_init were properly lowered
-; RUN: llc < %s -verify-machineinstrs | FileCheck %s
+; RUN: llc -mcpu=corei7 < %s -verify-machineinstrs | FileCheck %s
 
 target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64"
 target triple = "i386-pc-linux"

Modified: llvm/trunk/test/CodeGen/X86/2009-03-23-MultiUseSched.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/2009-03-23-MultiUseSched.ll?rev=184709&r1=184708&r2=184709&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/2009-03-23-MultiUseSched.ll (original)
+++ llvm/trunk/test/CodeGen/X86/2009-03-23-MultiUseSched.ll Mon Jun 24 04:51:30 2013
@@ -1,5 +1,5 @@
 ; REQUIRES: asserts
-; RUN: llc < %s -mtriple=x86_64-linux -relocation-model=static -o /dev/null -stats -info-output-file - > %t
+; RUN: llc < %s -mtriple=x86_64-linux -mcpu=corei7 -relocation-model=static -o /dev/null -stats -info-output-file - > %t
 ; RUN: not grep spill %t
 ; RUN: not grep "%rsp" %t
 ; RUN: not grep "%rbp" %t

Modified: llvm/trunk/test/CodeGen/X86/coalescer-commute1.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/coalescer-commute1.ll?rev=184709&r1=184708&r2=184709&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/coalescer-commute1.ll (original)
+++ llvm/trunk/test/CodeGen/X86/coalescer-commute1.ll Mon Jun 24 04:51:30 2013
@@ -1,4 +1,4 @@
-; RUN: llc < %s -mtriple=i686-apple-darwin -mattr=+sse2 | not grep movaps
+; RUN: llc < %s -mtriple=i686-apple-darwin -mcpu=corei7-avx -mattr=+sse2 | not grep movaps
 ; PR1877
 
 @NNTOT = weak global i32 0		; <i32*> [#uses=1]

Modified: llvm/trunk/test/CodeGen/X86/commute-two-addr.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/commute-two-addr.ll?rev=184709&r1=184708&r2=184709&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/commute-two-addr.ll (original)
+++ llvm/trunk/test/CodeGen/X86/commute-two-addr.ll Mon Jun 24 04:51:30 2013
@@ -2,8 +2,8 @@
 ; insertion of register-register copies.
 
 ; Make sure there are only 3 mov's for each testcase
-; RUN: llc < %s -mtriple=i686-pc-linux-gnu   | FileCheck %s -check-prefix=LINUX
-; RUN: llc < %s -mtriple=x86_64-apple-darwin | FileCheck %s -check-prefix=DARWIN
+; RUN: llc < %s -mtriple=i686-pc-linux-gnu   -mcpu=corei7 | FileCheck %s -check-prefix=LINUX
+; RUN: llc < %s -mtriple=x86_64-apple-darwin -mcpu=corei7 | FileCheck %s -check-prefix=DARWIN
 
 
 @G = external global i32                ; <i32*> [#uses=2]

Modified: llvm/trunk/test/CodeGen/X86/crash-nosse.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/crash-nosse.ll?rev=184709&r1=184708&r2=184709&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/crash-nosse.ll (original)
+++ llvm/trunk/test/CodeGen/X86/crash-nosse.ll Mon Jun 24 04:51:30 2013
@@ -1,4 +1,4 @@
-; RUN: llc < %s -mattr=-sse2,-sse41 -verify-machineinstrs
+; RUN: llc < %s -mcpu=corei7 -mattr=-sse2,-sse41 -verify-machineinstrs
 target triple = "x86_64-unknown-linux-gnu"
 
 ; PR10503

Modified: llvm/trunk/test/CodeGen/X86/pr3457.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/pr3457.ll?rev=184709&r1=184708&r2=184709&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/pr3457.ll (original)
+++ llvm/trunk/test/CodeGen/X86/pr3457.ll Mon Jun 24 04:51:30 2013
@@ -1,4 +1,4 @@
-; RUN: llc < %s -mtriple=i386-apple-darwin | not grep fstpt
+; RUN: llc < %s -mtriple=i386-apple-darwin -mcpu=corei7 | not grep fstpt
 ; PR3457
 ; rdar://6548010
 

Modified: llvm/trunk/test/CodeGen/X86/x86-64-and-mask.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/x86-64-and-mask.ll?rev=184709&r1=184708&r2=184709&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/x86-64-and-mask.ll (original)
+++ llvm/trunk/test/CodeGen/X86/x86-64-and-mask.ll Mon Jun 24 04:51:30 2013
@@ -1,4 +1,4 @@
-; RUN: llc < %s | FileCheck %s
+; RUN: llc -mcpu=corei7 < %s | FileCheck %s
 
 target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128"
 target triple = "x86_64-apple-darwin8"





More information about the llvm-commits mailing list