Add explicit triples to these tests so that llc behaves as expected on

non-Apple hosts.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@38455 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Dan Gohman 2007-07-09 13:42:32 +00:00
parent b0954b1580
commit 2a69a04afa
3 changed files with 24 additions and 9 deletions

View File

@ -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:

View File

@ -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* }

View File

@ -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 }