[llvm-commits] [llvm] r38455 - in /llvm/trunk/test/CodeGen/ARM: ifcvt6.ll ifcvt7.ll ifcvt8.ll
Dan Gohman
djg at cray.com
Mon Jul 9 06:42:32 PDT 2007
Author: djg
Date: Mon Jul 9 08:42:32 2007
New Revision: 38455
URL: http://llvm.org/viewvc/llvm-project?rev=38455&view=rev
Log:
Add explicit triples to these tests so that llc behaves as expected on
non-Apple hosts.
Modified:
llvm/trunk/test/CodeGen/ARM/ifcvt6.ll
llvm/trunk/test/CodeGen/ARM/ifcvt7.ll
llvm/trunk/test/CodeGen/ARM/ifcvt8.ll
Modified: llvm/trunk/test/CodeGen/ARM/ifcvt6.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/ARM/ifcvt6.ll?rev=38455&r1=38454&r2=38455&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/ARM/ifcvt6.ll (original)
+++ llvm/trunk/test/CodeGen/ARM/ifcvt6.ll Mon Jul 9 08:42:32 2007
@@ -1,6 +1,11 @@
-; RUN: llvm-as < %s | llc -march=arm -enable-arm-if-conversion
-; RUN: llvm-as < %s | llc -march=arm -enable-arm-if-conversion | grep cmpne | wc -l | grep 1
-; RUN: llvm-as < %s | llc -march=arm -enable-arm-if-conversion | grep ldmhi | wc -l | grep 1
+; RUN: llvm-as < %s | \
+; RUN: llc -march=arm -mtriple=arm-apple-darwin -enable-arm-if-conversion
+; RUN: llvm-as < %s | \
+; RUN: llc -march=arm -mtriple=arm-apple-darwin -enable-arm-if-conversion | \
+; RUN: grep cmpne | wc -l | grep 1
+; RUN: llvm-as < %s | \
+; RUN: llc -march=arm -mtriple=arm-apple-darwin -enable-arm-if-conversion | \
+; RUN: grep ldmhi | wc -l | grep 1
define void @foo(i32 %X, i32 %Y) {
entry:
Modified: llvm/trunk/test/CodeGen/ARM/ifcvt7.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/ARM/ifcvt7.ll?rev=38455&r1=38454&r2=38455&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/ARM/ifcvt7.ll (original)
+++ llvm/trunk/test/CodeGen/ARM/ifcvt7.ll Mon Jul 9 08:42:32 2007
@@ -1,7 +1,14 @@
-; RUN: llvm-as < %s | llc -march=arm -enable-arm-if-conversion
-; RUN: llvm-as < %s | llc -march=arm -enable-arm-if-conversion | grep cmpeq | wc -l | grep 1
-; RUN: llvm-as < %s | llc -march=arm -enable-arm-if-conversion | grep moveq | wc -l | grep 1
-; RUN: llvm-as < %s | llc -march=arm -enable-arm-if-conversion | grep ldmeq | wc -l | grep 1
+; RUN: llvm-as < %s | \
+; RUN: llc -march=arm -mtriple=arm-apple-darwin -enable-arm-if-conversion
+; RUN: llvm-as < %s | \
+; RUN: llc -march=arm -mtriple=arm-apple-darwin -enable-arm-if-conversion | \
+; RUN: grep cmpeq | wc -l | grep 1
+; RUN: llvm-as < %s | \
+; RUN: llc -march=arm -mtriple=arm-apple-darwin -enable-arm-if-conversion | \
+; RUN: grep moveq | wc -l | grep 1
+; RUN: llvm-as < %s | \
+; RUN: llc -march=arm -mtriple=arm-apple-darwin -enable-arm-if-conversion | \
+; RUN: grep ldmeq | wc -l | grep 1
; FIXME: Need post-ifcvt branch folding to get rid of the extra br at end of BB1.
%struct.quad_struct = type { i32, i32, %struct.quad_struct*, %struct.quad_struct*, %struct.quad_struct*, %struct.quad_struct*, %struct.quad_struct* }
Modified: llvm/trunk/test/CodeGen/ARM/ifcvt8.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/ARM/ifcvt8.ll?rev=38455&r1=38454&r2=38455&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/ARM/ifcvt8.ll (original)
+++ llvm/trunk/test/CodeGen/ARM/ifcvt8.ll Mon Jul 9 08:42:32 2007
@@ -1,5 +1,8 @@
-; RUN: llvm-as < %s | llc -march=arm -enable-arm-if-conversion
-; RUN: llvm-as < %s | llc -march=arm -enable-arm-if-conversion | grep ldmne | wc -l | grep 1
+; RUN: llvm-as < %s | \
+; RUN: llc -march=arm -mtriple=arm-apple-darwin -enable-arm-if-conversion
+; RUN: llvm-as < %s | \
+; RUN: llc -march=arm -mtriple=arm-apple-darwin -enable-arm-if-conversion | \
+; RUN: grep ldmne | wc -l | grep 1
%struct.SString = type { i8*, i32, i32 }
More information about the llvm-commits
mailing list