mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
Update Transforms tests to use CHECK-LABEL for easier debugging. No functionality change.
This update was done with the following bash script: find test/Transforms -name "*.ll" | \ while read NAME; do echo "$NAME" if ! grep -q "^; *RUN: *llc" $NAME; then TEMP=`mktemp -t temp` cp $NAME $TEMP sed -n "s/^define [^@]*@\([A-Za-z0-9_]*\)(.*$/\1/p" < $NAME | \ while read FUNC; do sed -i '' "s/;\(.*\)\([A-Za-z0-9_]*\):\( *\)@$FUNC\([( ]*\)\$/;\1\2-LABEL:\3@$FUNC(/g" $TEMP done mv $TEMP $NAME fi done git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186268 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
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-n8:16:32:64-S128"
|
||||
target triple = "x86_64-apple-macosx10.8.0"
|
||||
|
||||
;CHECK: @reduction_sum
|
||||
;CHECK-LABEL: @reduction_sum(
|
||||
;CHECK: phi <4 x i32>
|
||||
;CHECK: load <4 x i32>
|
||||
;CHECK: add <4 x i32>
|
||||
@@ -38,7 +38,7 @@ define i32 @reduction_sum(i32 %n, i32* noalias nocapture %A, i32* noalias nocapt
|
||||
ret i32 %sum.0.lcssa
|
||||
}
|
||||
|
||||
;CHECK: @reduction_prod
|
||||
;CHECK-LABEL: @reduction_prod(
|
||||
;CHECK: phi <4 x i32>
|
||||
;CHECK: load <4 x i32>
|
||||
;CHECK: mul <4 x i32>
|
||||
@@ -73,7 +73,7 @@ define i32 @reduction_prod(i32 %n, i32* noalias nocapture %A, i32* noalias nocap
|
||||
ret i32 %prod.0.lcssa
|
||||
}
|
||||
|
||||
;CHECK: @reduction_mix
|
||||
;CHECK-LABEL: @reduction_mix(
|
||||
;CHECK: phi <4 x i32>
|
||||
;CHECK: load <4 x i32>
|
||||
;CHECK: mul nsw <4 x i32>
|
||||
@@ -108,7 +108,7 @@ define i32 @reduction_mix(i32 %n, i32* noalias nocapture %A, i32* noalias nocapt
|
||||
ret i32 %sum.0.lcssa
|
||||
}
|
||||
|
||||
;CHECK: @reduction_mul
|
||||
;CHECK-LABEL: @reduction_mul(
|
||||
;CHECK: mul <4 x i32>
|
||||
;CHECK: shufflevector <4 x i32> %{{.*}}, <4 x i32> undef, <4 x i32> <i32 2, i32 3, i32 undef, i32 undef>
|
||||
;CHECK: mul <4 x i32>
|
||||
@@ -141,7 +141,7 @@ define i32 @reduction_mul(i32 %n, i32* noalias nocapture %A, i32* noalias nocapt
|
||||
ret i32 %sum.0.lcssa
|
||||
}
|
||||
|
||||
;CHECK: @start_at_non_zero
|
||||
;CHECK-LABEL: @start_at_non_zero(
|
||||
;CHECK: phi <4 x i32>
|
||||
;CHECK: <i32 120, i32 0, i32 0, i32 0>
|
||||
;CHECK: shufflevector <4 x i32> %{{.*}}, <4 x i32> undef, <4 x i32> <i32 2, i32 3, i32 undef, i32 undef>
|
||||
@@ -174,7 +174,7 @@ for.end: ; preds = %for.body, %entry
|
||||
ret i32 %sum.0.lcssa
|
||||
}
|
||||
|
||||
;CHECK: @reduction_and
|
||||
;CHECK-LABEL: @reduction_and(
|
||||
;CHECK: and <4 x i32>
|
||||
;CHECK: <i32 -1, i32 -1, i32 -1, i32 -1>
|
||||
;CHECK: shufflevector <4 x i32> %{{.*}}, <4 x i32> undef, <4 x i32> <i32 2, i32 3, i32 undef, i32 undef>
|
||||
@@ -207,7 +207,7 @@ for.end: ; preds = %for.body, %entry
|
||||
ret i32 %result.0.lcssa
|
||||
}
|
||||
|
||||
;CHECK: @reduction_or
|
||||
;CHECK-LABEL: @reduction_or(
|
||||
;CHECK: or <4 x i32>
|
||||
;CHECK: shufflevector <4 x i32> %{{.*}}, <4 x i32> undef, <4 x i32> <i32 2, i32 3, i32 undef, i32 undef>
|
||||
;CHECK: or <4 x i32>
|
||||
@@ -239,7 +239,7 @@ for.end: ; preds = %for.body, %entry
|
||||
ret i32 %result.0.lcssa
|
||||
}
|
||||
|
||||
;CHECK: @reduction_xor
|
||||
;CHECK-LABEL: @reduction_xor(
|
||||
;CHECK: xor <4 x i32>
|
||||
;CHECK: shufflevector <4 x i32> %{{.*}}, <4 x i32> undef, <4 x i32> <i32 2, i32 3, i32 undef, i32 undef>
|
||||
;CHECK: xor <4 x i32>
|
||||
@@ -272,7 +272,7 @@ for.end: ; preds = %for.body, %entry
|
||||
}
|
||||
|
||||
; In this code the subtracted variable is on the RHS and this is not an induction variable.
|
||||
;CHECK: @reduction_sub_rhs
|
||||
;CHECK-LABEL: @reduction_sub_rhs(
|
||||
;CHECK-NOT: phi <4 x i32>
|
||||
;CHECK-NOT: sub nsw <4 x i32>
|
||||
;CHECK: ret i32
|
||||
@@ -299,7 +299,7 @@ for.end: ; preds = %for.body, %entry
|
||||
|
||||
|
||||
; In this test the reduction variable is on the LHS and we can vectorize it.
|
||||
;CHECK: @reduction_sub_lhs
|
||||
;CHECK-LABEL: @reduction_sub_lhs(
|
||||
;CHECK: phi <4 x i32>
|
||||
;CHECK: sub nsw <4 x i32>
|
||||
;CHECK: ret i32
|
||||
@@ -449,7 +449,7 @@ for.end:
|
||||
; outside user misses a few iterations (VF-1) of the loop.
|
||||
; PR16522
|
||||
|
||||
; CHECK: @phivalueredux
|
||||
; CHECK-LABEL: @phivalueredux(
|
||||
; CHECK-NOT: x i32>
|
||||
|
||||
define i32 @phivalueredux(i32 %p) {
|
||||
|
Reference in New Issue
Block a user