llvm.org GIT mirror llvm / 49589f0
Convert the uses of '|&' to use '2>&1 |' instead, which works on old versions of Bash. In addition, I can back out the change to the lit built-in shell test runner to support this. This should fix the majority of fallout on Darwin, but I suspect there will be a few straggling issues. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@159544 91177308-0d34-0410-b5e6-96231b3b80d8 Chandler Carruth 8 years ago
215 changed file(s) with 265 addition(s) and 265 deletion(s). Raw diff Collapse all Expand all
0 ; This testcase consists of alias relations which should be completely
11 ; resolvable by basicaa.
22
3 ; RUN: opt < %s -basicaa -aa-eval -print-may-aliases -disable-output |& FileCheck %s
3 ; RUN: opt < %s -basicaa -aa-eval -print-may-aliases -disable-output 2>&1 | FileCheck %s
44
55 %T = type { i32, [10 x i8] }
66
0 ; This testcase consists of alias relations which should be completely
11 ; resolvable by basicaa, but require analysis of getelementptr constant exprs.
22
3 ; RUN: opt < %s -basicaa -aa-eval -print-may-aliases -disable-output |& FileCheck %s
3 ; RUN: opt < %s -basicaa -aa-eval -print-may-aliases -disable-output 2>&1 | FileCheck %s
44
55 %T = type { i32, [10 x i8] }
66
None ; RUN: opt < %s -basicaa -aa-eval -disable-output |& FileCheck %s
0 ; RUN: opt < %s -basicaa -aa-eval -disable-output 2>&1 | FileCheck %s
11 ; TEST that A[1][0] may alias A[0][i].
22 target datalayout = "E-p:64:64:64-a0:0:8-f32:32:32-f64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-v64:64:64-v128:128:128"
33
None ; RUN: opt < %s -basicaa -aa-eval -print-all-alias-modref-info -disable-output |& FileCheck %s
0 ; RUN: opt < %s -basicaa -aa-eval -print-all-alias-modref-info -disable-output 2>&1 | FileCheck %s
11
22 ; CHECK: Function: foo
33 ; CHECK: MayAlias: i32* %x, i32* %y
None ; RUN: opt < %s -basicaa -aa-eval -print-all-alias-modref-info -disable-output |& FileCheck %s
0 ; RUN: opt < %s -basicaa -aa-eval -print-all-alias-modref-info -disable-output 2>&1 | FileCheck %s
11
22 ; CHECK: Function: foo
33 ; CHECK: MayAlias: i32* %Ipointer, i32* %Jpointer
None ; RUN: opt < %s -basicaa -aa-eval -disable-output |& FileCheck %s
0 ; RUN: opt < %s -basicaa -aa-eval -disable-output 2>&1 | FileCheck %s
11
22 declare noalias i32* @_Znwj(i32 %x) nounwind
33
None ; RUN: opt < %s -basicaa -aa-eval -print-all-alias-modref-info -disable-output |& FileCheck %s
0 ; RUN: opt < %s -basicaa -aa-eval -print-all-alias-modref-info -disable-output 2>&1 | FileCheck %s
11 ; If GEP base doesn't alias Z, then GEP doesn't alias Z.
22 ; rdar://7282591
33
None ; RUN: opt < %s -basicaa -aa-eval -print-all-alias-modref-info -disable-output |& FileCheck %s
0 ; RUN: opt < %s -basicaa -aa-eval -print-all-alias-modref-info -disable-output 2>&1 | FileCheck %s
11 ; PR7959
22
33 target datalayout = "e-p:32:32:32"
None ; RUN: opt -basicaa -aa-eval -print-all-alias-modref-info -disable-output < %s |& FileCheck %s
0 ; RUN: opt -basicaa -aa-eval -print-all-alias-modref-info -disable-output < %s 2>&1 | FileCheck %s
11
22 declare void @callee(double* %callee_arg)
33 declare void @nocap_callee(double* nocapture %nocap_callee_arg)
None ; RUN: opt < %s -basicaa -aa-eval -print-all-alias-modref-info |& FileCheck %s
0 ; RUN: opt < %s -basicaa -aa-eval -print-all-alias-modref-info 2>&1 | FileCheck %s
11 ; PR4267
22
33 ; CHECK: MayAlias: double* %p.0.i.0, double* %p3
None ; RUN: opt < %s -basicaa -aa-eval -print-all-alias-modref-info |& FileCheck %s
0 ; RUN: opt < %s -basicaa -aa-eval -print-all-alias-modref-info 2>&1 | FileCheck %s
11
22 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"
33
None ; RUN: opt < %s -basicaa -aa-eval -print-all-alias-modref-info -disable-output |& FileCheck %s
0 ; RUN: opt < %s -basicaa -aa-eval -print-all-alias-modref-info -disable-output 2>&1 | FileCheck %s
11
22 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"
33
None ; RUN: opt < %s -basicaa -gvn -instcombine -S |& FileCheck %s
0 ; RUN: opt < %s -basicaa -gvn -instcombine -S 2>&1 | FileCheck %s
11
22 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-f80:128:128"
33
None ; RUN: opt < %s -basicaa -aa-eval -print-all-alias-modref-info -disable-output |& FileCheck %s
0 ; RUN: opt < %s -basicaa -aa-eval -print-all-alias-modref-info -disable-output 2>&1 | FileCheck %s
11
22
33 ; CHECK: Just Ref: call void @ro() <-> call void @f0()
None ; RUN: opt < %s -basicaa -aa-eval -print-all-alias-modref-info |& FileCheck %s
0 ; RUN: opt < %s -basicaa -aa-eval -print-all-alias-modref-info 2>&1 | FileCheck %s
11
22 ; When merging MustAlias and PartialAlias, merge to PartialAlias
33 ; instead of MayAlias.
None ; RUN: opt < %s -basicaa -aa-eval -print-all-alias-modref-info -disable-output |& FileCheck %s
0 ; RUN: opt < %s -basicaa -aa-eval -print-all-alias-modref-info -disable-output 2>&1 | FileCheck %s
11 ; rdar://7282591
22
33 @X = common global i32 0
None ; RUN: opt < %s -basicaa -aa-eval -print-all-alias-modref-info -disable-output |& FileCheck %s
0 ; RUN: opt < %s -basicaa -aa-eval -print-all-alias-modref-info -disable-output 2>&1 | FileCheck %s
11
22 ; BasicAA should detect NoAliases in PHIs and Selects.
33
None ; RUN: opt < %s -print-callgraph -disable-output |& FileCheck %s
0 ; RUN: opt < %s -print-callgraph -disable-output 2>&1 | FileCheck %s
11
22 ; CHECK: Call graph node <>
33 ; CHECK: CS<{{.*}}> calls function 'callee'
None ; RUN: opt < %s -print-callgraph -disable-output |& FileCheck %s
0 ; RUN: opt < %s -print-callgraph -disable-output 2>&1 | FileCheck %s
11
22 @a = global void ()* @f ; [#uses=0]
33
None ; RUN: opt < %s -print-callgraph -disable-output |& FileCheck %s
0 ; RUN: opt < %s -print-callgraph -disable-output 2>&1 | FileCheck %s
11
22 ; Check that intrinsics aren't added to the call graph
33
0 ; RUN: opt -regions -analyze < %s | FileCheck %s
1 ; RUN: opt -regions -stats -analyze < %s |& FileCheck -check-prefix=STAT %s
2 ; RUN: opt -regions -print-region-style=bb -analyze < %s |& FileCheck -check-prefix=BBIT %s
3 ; RUN: opt -regions -print-region-style=rn -analyze < %s |& FileCheck -check-prefix=RNIT %s
1 ; RUN: opt -regions -stats -analyze < %s 2>&1 | FileCheck -check-prefix=STAT %s
2 ; RUN: opt -regions -print-region-style=bb -analyze < %s 2>&1 | FileCheck -check-prefix=BBIT %s
3 ; RUN: opt -regions -print-region-style=rn -analyze < %s 2>&1 | FileCheck -check-prefix=RNIT %s
44
55 define void @BZ2_blockSort() nounwind {
66 start:
0 ; RUN: opt -regions -analyze < %s | FileCheck %s
1 ; RUN: opt -regions -stats < %s |& FileCheck -check-prefix=STAT %s
2 ; RUN: opt -regions -print-region-style=bb -analyze < %s |& FileCheck -check-prefix=BBIT %s
3 ; RUN: opt -regions -print-region-style=rn -analyze < %s |& FileCheck -check-prefix=RNIT %s
1 ; RUN: opt -regions -stats < %s 2>&1 | FileCheck -check-prefix=STAT %s
2 ; RUN: opt -regions -print-region-style=bb -analyze < %s 2>&1 | FileCheck -check-prefix=BBIT %s
3 ; RUN: opt -regions -print-region-style=rn -analyze < %s 2>&1 | FileCheck -check-prefix=RNIT %s
44
55 define void @normal_condition() nounwind {
66 5:
0 ; RUN: opt -regions -analyze < %s | FileCheck %s
1 ; RUN: opt -regions -stats < %s |& FileCheck -check-prefix=STAT %s
2 ; RUN: opt -regions -print-region-style=bb -analyze < %s |& FileCheck -check-prefix=BBIT %s
3 ; RUN: opt -regions -print-region-style=rn -analyze < %s |& FileCheck -check-prefix=RNIT %s
1 ; RUN: opt -regions -stats < %s 2>&1 | FileCheck -check-prefix=STAT %s
2 ; RUN: opt -regions -print-region-style=bb -analyze < %s 2>&1 | FileCheck -check-prefix=BBIT %s
3 ; RUN: opt -regions -print-region-style=rn -analyze < %s 2>&1 | FileCheck -check-prefix=RNIT %s
44
55 define internal fastcc zeroext i8 @handle_compress() nounwind {
66 end165:
0 ; RUN: opt -regions -analyze < %s | FileCheck %s
1 ; RUN: opt -regions -stats < %s |& FileCheck -check-prefix=STAT %s
2 ; RUN: opt -regions -print-region-style=bb -analyze < %s |& FileCheck -check-prefix=BBIT %s
3 ; RUN: opt -regions -print-region-style=rn -analyze < %s |& FileCheck -check-prefix=RNIT %s
1 ; RUN: opt -regions -stats < %s 2>&1 | FileCheck -check-prefix=STAT %s
2 ; RUN: opt -regions -print-region-style=bb -analyze < %s 2>&1 | FileCheck -check-prefix=BBIT %s
3 ; RUN: opt -regions -print-region-style=rn -analyze < %s 2>&1 | FileCheck -check-prefix=RNIT %s
44
55 define internal fastcc void @compress() nounwind {
66 end33:
0 ; RUN: opt -regions -analyze < %s | FileCheck %s
1 ; RUN: opt -regions -stats < %s |& FileCheck -check-prefix=STAT %s
2 ; RUN: opt -regions -print-region-style=bb -analyze < %s |& FileCheck -check-prefix=BBIT %s
3 ; RUN: opt -regions -print-region-style=rn -analyze < %s |& FileCheck -check-prefix=RNIT %s
1 ; RUN: opt -regions -stats < %s 2>&1 | FileCheck -check-prefix=STAT %s
2 ; RUN: opt -regions -print-region-style=bb -analyze < %s 2>&1 | FileCheck -check-prefix=BBIT %s
3 ; RUN: opt -regions -print-region-style=rn -analyze < %s 2>&1 | FileCheck -check-prefix=RNIT %s
44
55 define void @normal_condition() nounwind {
66 0:
0 ; RUN: opt -regions -analyze < %s | FileCheck %s
1 ; RUN: opt -regions -stats < %s |& FileCheck -check-prefix=STAT %s
2 ; RUN: opt -regions -print-region-style=bb -analyze < %s |& FileCheck -check-prefix=BBIT %s
3 ; RUN: opt -regions -print-region-style=rn -analyze < %s |& FileCheck -check-prefix=RNIT %s
1 ; RUN: opt -regions -stats < %s 2>&1 | FileCheck -check-prefix=STAT %s
2 ; RUN: opt -regions -print-region-style=bb -analyze < %s 2>&1 | FileCheck -check-prefix=BBIT %s
3 ; RUN: opt -regions -print-region-style=rn -analyze < %s 2>&1 | FileCheck -check-prefix=RNIT %s
44
55 define void @normal_condition() nounwind {
66 0:
0 ; RUN: opt -regions -analyze < %s | FileCheck %s
1 ; RUN: opt -regions -stats < %s |& FileCheck -check-prefix=STAT %s
2 ; RUN: opt -regions -print-region-style=bb -analyze < %s |& FileCheck -check-prefix=BBIT %s
3 ; RUN: opt -regions -print-region-style=rn -analyze < %s |& FileCheck -check-prefix=RNIT %s
1 ; RUN: opt -regions -stats < %s 2>&1 | FileCheck -check-prefix=STAT %s
2 ; RUN: opt -regions -print-region-style=bb -analyze < %s 2>&1 | FileCheck -check-prefix=BBIT %s
3 ; RUN: opt -regions -print-region-style=rn -analyze < %s 2>&1 | FileCheck -check-prefix=RNIT %s
44
55 define void @normal_condition() nounwind {
66 0:
0 ; RUN: opt -regions -analyze < %s | FileCheck %s
1 ; RUN: opt -regions -stats < %s |& FileCheck -check-prefix=STAT %s
2 ; RUN: opt -regions -print-region-style=bb -analyze < %s |& FileCheck -check-prefix=BBIT %s
3 ; RUN: opt -regions -print-region-style=rn -analyze < %s |& FileCheck -check-prefix=RNIT %s
1 ; RUN: opt -regions -stats < %s 2>&1 | FileCheck -check-prefix=STAT %s
2 ; RUN: opt -regions -print-region-style=bb -analyze < %s 2>&1 | FileCheck -check-prefix=BBIT %s
3 ; RUN: opt -regions -print-region-style=rn -analyze < %s 2>&1 | FileCheck -check-prefix=RNIT %s
44
55 define internal fastcc zeroext i8 @handle_compress() nounwind {
66 entry:
0 ; RUN: opt -regions -analyze < %s
1 ; RUN: opt -regions -stats < %s |& FileCheck -check-prefix=STAT %s
1 ; RUN: opt -regions -stats < %s 2>&1 | FileCheck -check-prefix=STAT %s
22
33 define void @normal_condition() nounwind {
44 0:
0 ; RUN: opt -regions -analyze < %s
1 ; RUN: opt -regions -stats < %s |& FileCheck -check-prefix=STAT %s
2 ; RUN: opt -regions -print-region-style=bb -analyze < %s |& FileCheck -check-prefix=BBIT %s
3 ; RUN: opt -regions -print-region-style=rn -analyze < %s |& FileCheck -check-prefix=RNIT %s
1 ; RUN: opt -regions -stats < %s 2>&1 | FileCheck -check-prefix=STAT %s
2 ; RUN: opt -regions -print-region-style=bb -analyze < %s 2>&1 | FileCheck -check-prefix=BBIT %s
3 ; RUN: opt -regions -print-region-style=rn -analyze < %s 2>&1 | FileCheck -check-prefix=RNIT %s
44
55 define void @normal_condition() nounwind {
66 0:
0 ; RUN: opt -regions -analyze < %s
1 ; RUN: opt -regions -stats < %s |& FileCheck -check-prefix=STAT %s
1 ; RUN: opt -regions -stats < %s 2>&1 | FileCheck -check-prefix=STAT %s
22
3 ; RUN: opt -regions -print-region-style=bb -analyze < %s |& FileCheck -check-prefix=BBIT %s
4 ; RUN: opt -regions -print-region-style=rn -analyze < %s |& FileCheck -check-prefix=RNIT %s
3 ; RUN: opt -regions -print-region-style=bb -analyze < %s 2>&1 | FileCheck -check-prefix=BBIT %s
4 ; RUN: opt -regions -print-region-style=rn -analyze < %s 2>&1 | FileCheck -check-prefix=RNIT %s
55
66 define void @normal_condition() nounwind {
77 0:
0 ; RUN: opt -regions -analyze < %s
1 ; RUN: opt -regions -stats < %s |& FileCheck -check-prefix=STAT %s
2 ; RUN: opt -regions -print-region-style=bb -analyze < %s |& FileCheck -check-prefix=BBIT %s
3 ; RUN: opt -regions -print-region-style=rn -analyze < %s |& FileCheck -check-prefix=RNIT %s
1 ; RUN: opt -regions -stats < %s 2>&1 | FileCheck -check-prefix=STAT %s
2 ; RUN: opt -regions -print-region-style=bb -analyze < %s 2>&1 | FileCheck -check-prefix=BBIT %s
3 ; RUN: opt -regions -print-region-style=rn -analyze < %s 2>&1 | FileCheck -check-prefix=RNIT %s
44
55 define void @normal_condition() nounwind {
66 0:
0 ; RUN: opt -regions -analyze < %s | FileCheck %s
1 ; RUN: opt -regions -stats < %s |& FileCheck -check-prefix=STAT %s
1 ; RUN: opt -regions -stats < %s 2>&1 | FileCheck -check-prefix=STAT %s
22
3 ; RUN: opt -regions -print-region-style=bb -analyze < %s |& FileCheck -check-prefix=BBIT %s
4 ; RUN: opt -regions -print-region-style=rn -analyze < %s |& FileCheck -check-prefix=RNIT %s
3 ; RUN: opt -regions -print-region-style=bb -analyze < %s 2>&1 | FileCheck -check-prefix=BBIT %s
4 ; RUN: opt -regions -print-region-style=rn -analyze < %s 2>&1 | FileCheck -check-prefix=RNIT %s
55
66 define void @normal_condition() nounwind {
77 0:
0 ; RUN: opt -regions -analyze < %s | FileCheck %s
1 ; RUN: opt -regions -stats < %s |& FileCheck -check-prefix=STAT %s
2 ; RUN: opt -regions -print-region-style=bb -analyze < %s |& FileCheck -check-prefix=BBIT %s
3 ; RUN: opt -regions -print-region-style=rn -analyze < %s |& FileCheck -check-prefix=RNIT %s
1 ; RUN: opt -regions -stats < %s 2>&1 | FileCheck -check-prefix=STAT %s
2 ; RUN: opt -regions -print-region-style=bb -analyze < %s 2>&1 | FileCheck -check-prefix=BBIT %s
3 ; RUN: opt -regions -print-region-style=rn -analyze < %s 2>&1 | FileCheck -check-prefix=RNIT %s
44
55 define internal fastcc zeroext i8 @loops_1() nounwind {
66 entry:
0 ; RUN: opt -regions -analyze < %s | FileCheck %s
1 ; RUN: opt -regions -stats < %s |& FileCheck -check-prefix=STAT %s
2 ; RUN: opt -regions -print-region-style=bb -analyze < %s |& FileCheck -check-prefix=BBIT %s
3 ; RUN: opt -regions -print-region-style=rn -analyze < %s |& FileCheck -check-prefix=RNIT %s
1 ; RUN: opt -regions -stats < %s 2>&1 | FileCheck -check-prefix=STAT %s
2 ; RUN: opt -regions -print-region-style=bb -analyze < %s 2>&1 | FileCheck -check-prefix=BBIT %s
3 ; RUN: opt -regions -print-region-style=rn -analyze < %s 2>&1 | FileCheck -check-prefix=RNIT %s
44
55 define void @meread_() nounwind {
66 entry:
0 ; RUN: opt -regions -analyze < %s | FileCheck %s
1 ; RUN: opt -regions -stats < %s |& FileCheck -check-prefix=STAT %s
1 ; RUN: opt -regions -stats < %s 2>&1 | FileCheck -check-prefix=STAT %s
22
3 ; RUN: opt -regions -print-region-style=bb -analyze < %s |& FileCheck -check-prefix=BBIT %s
4 ; RUN: opt -regions -print-region-style=rn -analyze < %s |& FileCheck -check-prefix=RNIT %s
3 ; RUN: opt -regions -print-region-style=bb -analyze < %s 2>&1 | FileCheck -check-prefix=BBIT %s
4 ; RUN: opt -regions -print-region-style=rn -analyze < %s 2>&1 | FileCheck -check-prefix=RNIT %s
55
66 define void @a_linear_impl_fig_1() nounwind {
77 0:
None ; RUN: opt -regions -print-region-style=bb -analyze < %s |& FileCheck -check-prefix=BBIT %s
1 ; RUN: opt -regions -print-region-style=rn -analyze < %s |& FileCheck -check-prefix=RNIT %s
0 ; RUN: opt -regions -print-region-style=bb -analyze < %s 2>&1 | FileCheck -check-prefix=BBIT %s
1 ; RUN: opt -regions -print-region-style=rn -analyze < %s 2>&1 | FileCheck -check-prefix=RNIT %s
22
33 define void @normal_condition_0() nounwind {
44 bb38: ; preds = %bb34, %bb34, %bb37
0 ; RUN: opt -regions -analyze < %s | FileCheck %s
1 ; RUN: opt -regions -stats < %s |& FileCheck -check-prefix=STAT %s
1 ; RUN: opt -regions -stats < %s 2>&1 | FileCheck -check-prefix=STAT %s
22
3 ; RUN: opt -regions -print-region-style=bb -analyze < %s |& FileCheck -check-prefix=BBIT %s
4 ; RUN: opt -regions -print-region-style=rn -analyze < %s |& FileCheck -check-prefix=RNIT %s
3 ; RUN: opt -regions -print-region-style=bb -analyze < %s 2>&1 | FileCheck -check-prefix=BBIT %s
4 ; RUN: opt -regions -print-region-style=rn -analyze < %s 2>&1 | FileCheck -check-prefix=RNIT %s
55
66 define internal fastcc zeroext i8 @handle_compress() nounwind {
77 entry:
0 ; RUN: opt -regions -analyze < %s | FileCheck %s
1 ; RUN: opt -regions -stats < %s |& FileCheck -check-prefix=STAT %s
2 ; RUN: opt -regions -print-region-style=bb -analyze < %s |& FileCheck -check-prefix=BBIT %s
3 ; RUN: opt -regions -print-region-style=rn -analyze < %s |& FileCheck -check-prefix=RNIT %s
1 ; RUN: opt -regions -stats < %s 2>&1 | FileCheck -check-prefix=STAT %s
2 ; RUN: opt -regions -print-region-style=bb -analyze < %s 2>&1 | FileCheck -check-prefix=BBIT %s
3 ; RUN: opt -regions -print-region-style=rn -analyze < %s 2>&1 | FileCheck -check-prefix=RNIT %s
44
55 define void @MAIN__() nounwind {
66 entry:
0 ; RUN: opt -regions -analyze < %s | FileCheck %s
1 ; RUN: opt -regions -stats < %s |& FileCheck -check-prefix=STAT %s
2 ; RUN: opt -regions -print-region-style=bb -analyze < %s |& FileCheck -check-prefix=BBIT %s
3 ; RUN: opt -regions -print-region-style=rn -analyze < %s |& FileCheck -check-prefix=RNIT %s
1 ; RUN: opt -regions -stats < %s 2>&1 | FileCheck -check-prefix=STAT %s
2 ; RUN: opt -regions -print-region-style=bb -analyze < %s 2>&1 | FileCheck -check-prefix=BBIT %s
3 ; RUN: opt -regions -print-region-style=rn -analyze < %s 2>&1 | FileCheck -check-prefix=RNIT %s
44
55 define void @a_linear_impl_fig_1() nounwind {
66 0:
0 ; RUN: opt -regions -analyze < %s | FileCheck %s
1 ; RUN: opt -regions -stats < %s |& FileCheck -check-prefix=STAT %s
2 ; RUN: opt -regions -print-region-style=bb -analyze < %s |& FileCheck -check-prefix=BBIT %s
3 ; RUN: opt -regions -print-region-style=rn -analyze < %s |& FileCheck -check-prefix=RNIT %s
1 ; RUN: opt -regions -stats < %s 2>&1 | FileCheck -check-prefix=STAT %s
2 ; RUN: opt -regions -print-region-style=bb -analyze < %s 2>&1 | FileCheck -check-prefix=BBIT %s
3 ; RUN: opt -regions -print-region-style=rn -analyze < %s 2>&1 | FileCheck -check-prefix=RNIT %s
44
55 define internal fastcc zeroext i8 @handle_compress() nounwind {
66 entry:
None ; RUN: opt < %s -analyze -scalar-evolution |& not grep smax
0 ; RUN: opt < %s -analyze -scalar-evolution 2>&1 | not grep smax
11 ; PR2261
22
33 @lut = common global [256 x i8] zeroinitializer, align 32 ; <[256 x i8]*> [#uses=1]
None ; RUN: opt < %s -analyze -scalar-evolution |& not grep smax
0 ; RUN: opt < %s -analyze -scalar-evolution 2>&1 | not grep smax
11 ; PR2070
22
33 define i32 @a(i32 %x) nounwind {
None ; RUN: opt < %s -analyze -scalar-evolution |& \
0 ; RUN: opt < %s -analyze -scalar-evolution 2>&1 | \
11 ; RUN: grep "Loop %bb: backedge-taken count is (7 + (-1 \* %argc))"
22
33 define i32 @main(i32 %argc, i8** %argv) nounwind {
None ; RUN: opt < %s -analyze -scalar-evolution |& grep {/u 3}
0 ; RUN: opt < %s -analyze -scalar-evolution 2>&1 | grep {/u 3}
11 ; XFAIL: *
22
33 ; This is a tricky testcase for unsigned wrap detection which ScalarEvolution
None ; RUN: opt < %s -analyze -scalar-evolution |& \
0 ; RUN: opt < %s -analyze -scalar-evolution 2>&1 | \
11 ; RUN: grep {(((-1 \\* %i0) + (100005 smax %i0)) /u 5)}
22 ; XFAIL: *
33
None ; RUN: opt < %s -analyze -scalar-evolution |& grep {/u 5}
0 ; RUN: opt < %s -analyze -scalar-evolution 2>&1 | grep {/u 5}
11 ; XFAIL: *
22
33 define i8 @foo0(i8 %i0) nounwind {
0 ; RUN: opt < %s -scev-aa -aa-eval -print-all-alias-modref-info \
1 ; RUN: |& FileCheck %s
1 ; RUN: 2>&1 | FileCheck %s
22
33 ; At the time of this writing, -basicaa misses the example of the form
44 ; A[i+(j+1)] != A[i+j], which can arise from multi-dimensional array references,
None ; RUN: not llvm-as < %s |& grep "multiple definition"
0 ; RUN: not llvm-as < %s 2>&1 | grep "multiple definition"
11
22 define void @test() {
33 %tmp.1 = add i32 0, 1
None ; RUN: not llvm-as %s |& grep "found end of file when expecting more instructions"
0 ; RUN: not llvm-as %s 2>&1 | grep "found end of file when expecting more instructions"
11
22 define void @foo() {
0 ; Test for PR463. This program is erroneous, but should not crash llvm-as.
1 ; RUN: not llvm-as %s -o /dev/null |& grep "use of undefined type named 'struct.none'"
1 ; RUN: not llvm-as %s -o /dev/null 2>&1 | grep "use of undefined type named 'struct.none'"
22
33 @.FOO = internal global %struct.none zeroinitializer
0 ; The assembler should catch an undefined argument type .
1 ; RUN: not llvm-as %s -o /dev/null |& grep "use of undefined type named 'typedef.bc_struct'"
1 ; RUN: not llvm-as %s -o /dev/null 2>&1 | grep "use of undefined type named 'typedef.bc_struct'"
22
33 ; %typedef.bc_struct = type opaque
44
0 ; PR1117
1 ; RUN: not llvm-as %s -o /dev/null |& grep "invalid cast opcode for cast from"
1 ; RUN: not llvm-as %s -o /dev/null 2>&1 | grep "invalid cast opcode for cast from"
22
33 define i8* @nada(i64 %X) {
44 %result = trunc i64 %X to i8*
0 ; PR1117
1 ; RUN: not llvm-as %s -o /dev/null |& grep "invalid cast opcode for cast from"
1 ; RUN: not llvm-as %s -o /dev/null 2>&1 | grep "invalid cast opcode for cast from"
22
33 @X = constant i8* trunc (i64 0 to i8*)
None ; RUN: not llvm-as %s |& grep "integer constant must have integer type"
0 ; RUN: not llvm-as %s 2>&1 | grep "integer constant must have integer type"
11 ; PR2060
22
33 define i8* @foo() {
0 ; Test function notes
1 ; RUN: not llvm-as %s -o /dev/null |& grep "Attributes noinline alwaysinline are incompatible"
1 ; RUN: not llvm-as %s -o /dev/null 2>&1 | grep "Attributes noinline alwaysinline are incompatible"
22 define void @fn1() alwaysinline noinline {
33 ret void
44 }
None ; RUN: not llvm-as < %s |& FileCheck %s
0 ; RUN: not llvm-as < %s 2>&1 | FileCheck %s
11 ; PR4170
22
33 ; CHECK: invalid indices for extractvalue
None ; RUN: not llvm-as < %s |& FileCheck %s
0 ; RUN: not llvm-as < %s 2>&1 | FileCheck %s
11
22 ; CHECK: invalid indices for insertvalue
33
None ; RUN: not llvm-as < %s |& FileCheck %s
0 ; RUN: not llvm-as < %s 2>&1 | FileCheck %s
11
22 ; CHECK: invalid cast opcode for cast from '<4 x i64>' to '<3 x i8>'
33
None ; RUN: not llvm-as < %s |& FileCheck %s
0 ; RUN: not llvm-as < %s 2>&1 | FileCheck %s
11
22 ; CHECK: invalid cast opcode for cast from '<4 x i64>' to 'i8'
33
0 ; RUN: llc < %s -mtriple=arm-apple-darwin -relocation-model=pic \
11 ; RUN: -mattr=+v6 | grep r9
22 ; RUN: llc < %s -mtriple=arm-apple-darwin -relocation-model=pic \
3 ; RUN: -mattr=+v6 -arm-reserve-r9 -ifcvt-limit=0 -stats |& grep asm-printer
3 ; RUN: -mattr=+v6 -arm-reserve-r9 -ifcvt-limit=0 -stats 2>&1 | grep asm-printer
44 ; | grep 35
55
66 define void @test(i32 %tmp56222, i32 %tmp36224, i32 %tmp46223, i32 %i.0196.0.ph, i32 %tmp8, i32* %tmp1011, i32** %tmp1, i32* %d2.1.out, i32* %d3.1.out, i32* %d0.1.out, i32* %d1.1.out) {
None ; RUN: llc < %s -o /dev/null -stats |& FileCheck %s -check-prefix=STATS
0 ; RUN: llc < %s -o /dev/null -stats 2>&1 | FileCheck %s -check-prefix=STATS
11 ; Radar 10266272
22 target datalayout = "e-p:32:32:32-i1:8:32-i8:8:32-i16:16:32-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:32:64-v128:32:128-a0:0:32-n32-S32"
33 target triple = "thumbv7-apple-ios4.0.0"
None ; RUN: llc < %s -march=arm -stats |& grep asm-printer | grep 4
0 ; RUN: llc < %s -march=arm -stats 2>&1 | grep asm-printer | grep 4
11
22 define i32 @t1(i32 %a) {
33 %b = mul i32 %a, 9
None ; RUN: not llc --help-hidden |& FileCheck %s
0 ; RUN: not llc --help-hidden 2>&1 | FileCheck %s
11
22 ; CHECK: -print-after
33 ; CHECK-NOT: -print-after-all
None ; RUN: llc < %s -O3 -debug-pass=Structure -print-machineinstrs=branch-folder -o /dev/null |& FileCheck %s
1 ; RUN: llc < %s -O3 -debug-pass=Structure -print-machineinstrs -o /dev/null |& FileCheck %s
2 ; RUN: llc < %s -O3 -debug-pass=Structure -print-machineinstrs= -o /dev/null |& FileCheck %s
0 ; RUN: llc < %s -O3 -debug-pass=Structure -print-machineinstrs=branch-folder -o /dev/null 2>&1 | FileCheck %s
1 ; RUN: llc < %s -O3 -debug-pass=Structure -print-machineinstrs -o /dev/null 2>&1 | FileCheck %s
2 ; RUN: llc < %s -O3 -debug-pass=Structure -print-machineinstrs= -o /dev/null 2>&1 | FileCheck %s
33
44 define i64 @foo(i64 %a, i64 %b) nounwind {
55 ; CHECK: -branch-folder -print-machineinstrs
None ; RUN: llc < %s -march=ppc32 -stats |& \
0 ; RUN: llc < %s -march=ppc32 -stats 2>&1 | \
11 ; RUN: grep "4 .*Number of machine instrs printed"
22
33 ;; Integer absolute value, should produce something as good as:
None ; RUN: llc < %s -print-lsr-output |& FileCheck %s
0 ; RUN: llc < %s -print-lsr-output 2>&1 | FileCheck %s
11
22 ; The icmp is a post-inc use, and the increment is in %bb11, but the
33 ; scevgep needs to be inserted in %bb so that it is dominated by %t.
None ; RUN: llc < %s -march=ppc32 -stats |& \
0 ; RUN: llc < %s -march=ppc32 -stats 2>&1 | \
11 ; RUN: grep "Number of machine instrs printed" | grep 12
22
33 define i16 @Trans16Bit(i32 %srcA, i32 %srcB, i32 %alpha) {
None ; RUN: llc < %s -march=thumb -stats |& \
0 ; RUN: llc < %s -march=thumb -stats 2>&1 | \
11 ; RUN: grep "4 .*Number of machine instrs printed"
22
33 ;; Integer absolute value, should produce something as good as:
22 ; it makes a ton of annoying overlapping live ranges. This code should not
33 ; cause spills!
44 ;
5 ; RUN: llc < %s -march=x86 -stats |& not grep spilled
5 ; RUN: llc < %s -march=x86 -stats 2>&1 | not grep spilled
66
77 target datalayout = "e-p:32:32"
88
None ; RUN: llc < %s -march=x86 -stats |& \
0 ; RUN: llc < %s -march=x86 -stats 2>&1 | \
11 ; RUN: grep asm-printer | grep 7
22
33 define i32 @g(i32 %a, i32 %b) nounwind {
None ; RUN: llc < %s -march=x86 -mcpu=yonah -stats |& \
0 ; RUN: llc < %s -march=x86 -mcpu=yonah -stats 2>&1 | \
11 ; RUN: not grep {Number of register spills}
22 ; END.
33
None ; RUN: llc < %s -march=x86 -relocation-model=static -stats |& \
0 ; RUN: llc < %s -march=x86 -relocation-model=static -stats 2>&1 | \
11 ; RUN: grep asm-printer | grep 14
22 ;
33 @size20 = external global i32 ; [#uses=1]
None ; RUN: llc < %s -march=x86 -stats |& \
0 ; RUN: llc < %s -march=x86 -stats 2>&1 | \
11 ; RUN: grep asm-printer | grep 13
22
33 define void @_ZN9__gnu_cxx9hashtableISt4pairIKPKciES3_NS_4hashIS3_EESt10_Select1stIS5_E5eqstrSaIiEE14find_or_insertERKS5__cond_true456.i(i8* %tmp435.i, i32* %tmp449.i.out) nounwind {
None ; RUN: llc < %s -march=x86 -mtriple=i386-linux-gnu -mcpu=penryn -mattr=+sse2 -stats -realign-stack=0 |&\
0 ; RUN: llc < %s -march=x86 -mtriple=i386-linux-gnu -mcpu=penryn -mattr=+sse2 -stats -realign-stack=0 2>&1 | \
11 ; RUN: grep "asm-printer" | grep 35
22
33 target datalayout = "e-p:32:32"
None ; RUN: llc < %s -march=x86 -mcpu=yonah -stats |& grep "Number of block tails merged" | grep 16
0 ; RUN: llc < %s -march=x86 -mcpu=yonah -stats 2>&1 | grep "Number of block tails merged" | grep 16
11 ; PR1909
22
33 @.str = internal constant [48 x i8] c"transformed bounds: (%.2f, %.2f), (%.2f, %.2f)\0A\00" ; <[48 x i8]*> [#uses=1]
None ; RUN: llc < %s -mtriple=i386-apple-darwin -mattr=+sse2 -stats |& FileCheck %s
0 ; RUN: llc < %s -mtriple=i386-apple-darwin -mattr=+sse2 -stats 2>&1 | FileCheck %s
11 ; Now this test spills one register. But a reload in the loop is cheaper than
22 ; the divsd so it's a win.
33
None ; RUN: llc < %s -march=x86 -mattr=+sse2 -stats |& not grep commuted
0 ; RUN: llc < %s -march=x86 -mattr=+sse2 -stats 2>&1 | not grep commuted
11 ; rdar://6608609
22
33 define <2 x double> @t(<2 x double> %A, <2 x double> %B, <2 x double> %C) nounwind readnone {
None ; RUN: llc < %s -march=x86-64 -mattr=+sse3,+sse41 -mcpu=penryn -stats |& grep "8 machine-licm"
0 ; RUN: llc < %s -march=x86-64 -mattr=+sse3,+sse41 -mcpu=penryn -stats 2>&1 | grep "8 machine-licm"
11 ; RUN: llc < %s -march=x86-64 -mattr=+sse3,+sse41 -mcpu=penryn | FileCheck %s
22 ; rdar://6627786
33 ; rdar://7792037
None ; RUN: llc < %s -mtriple=x86_64-apple-darwin10.0 -relocation-model=pic -disable-fp-elim -stats |& grep {Number of modref unfolded}
0 ; RUN: llc < %s -mtriple=x86_64-apple-darwin10.0 -relocation-model=pic -disable-fp-elim -stats 2>&1 | grep {Number of modref unfolded}
11 ; XFAIL: *
22 ; 69408 removed the opportunity for this optimization to work
33
None ; RUN: llc < %s -mtriple=x86_64-apple-darwin11 -relocation-model=pic -disable-fp-elim -stats |& not grep ext-opt
0 ; RUN: llc < %s -mtriple=x86_64-apple-darwin11 -relocation-model=pic -disable-fp-elim -stats 2>&1 | not grep ext-opt
11
22 define fastcc i8* @S_scan_str(i8* %start, i32 %keep_quoted, i32 %keep_delims) nounwind ssp {
33 entry:
None ; RUN: llc < %s -O0 -disable-fp-elim -relocation-model=pic -stats |& FileCheck %s
0 ; RUN: llc < %s -O0 -disable-fp-elim -relocation-model=pic -stats 2>&1 | FileCheck %s
11 ;
22 ; This test should not cause any spilling with RAFast.
33 ;
None ; RUN: llc < %s -mtriple=x86_64-apple-darwin10 -stats |& \
0 ; RUN: llc < %s -mtriple=x86_64-apple-darwin10 -stats 2>&1 | \
11 ; RUN: not grep {Number of machine instructions hoisted out of loops post regalloc}
22
33 ; rdar://11095580
None ; RUN: llc < %s -mtriple=x86_64-appel-darwin -disable-cgp-branch-opts -stats |& grep "machine-sink"
0 ; RUN: llc < %s -mtriple=x86_64-appel-darwin -disable-cgp-branch-opts -stats 2>&1 | grep "machine-sink"
11
22 define fastcc void @t() nounwind ssp {
33 entry:
None ; RUN: llc < %s -mtriple=x86_64-linux -o /dev/null -stats |& FileCheck %s -check-prefix=STATS
1 ; RUN: llc < %s -mtriple=x86_64-win32 -o /dev/null -stats |& FileCheck %s -check-prefix=STATS
0 ; RUN: llc < %s -mtriple=x86_64-linux -o /dev/null -stats 2>&1 | FileCheck %s -check-prefix=STATS
1 ; RUN: llc < %s -mtriple=x86_64-win32 -o /dev/null -stats 2>&1 | FileCheck %s -check-prefix=STATS
22 ; STATS: 9 asm-printer
33
44 ; RUN: llc < %s -mtriple=x86_64-linux | FileCheck %s
None ; RUN: llc < %s -march=x86 -mattr=+sse2 -mtriple=i386-apple-darwin -stats |& grep asm-printer | grep 14
0 ; RUN: llc < %s -march=x86 -mattr=+sse2 -mtriple=i386-apple-darwin -stats 2>&1 | grep asm-printer | grep 14
11
22 define i32 @t(i8* %ref_frame_ptr, i32 %ref_frame_stride, i32 %idxX, i32 %idxY) nounwind {
33 entry:
None ; RUN: llc < %s -stats -O2 |& grep "1 machine-licm"
0 ; RUN: llc < %s -stats -O2 2>&1 | grep "1 machine-licm"
11
22 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"
33 target triple = "x86_64-apple-macosx10.7.2"
0 ; PR7054
1 ; RUN: not llc %s -o - |& grep "'_foo' label emitted multiple times to assembly"
1 ; RUN: not llc %s -o - 2>&1 | grep "'_foo' label emitted multiple times to assembly"
22 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-f80:128:128-n8:16:32"
33 target triple = "i386-apple-darwin10.0.0"
44
None ; RUN: llc < %s -march=x86 -stats |& grep "Number of blocks eliminated" | grep 6
0 ; RUN: llc < %s -march=x86 -stats 2>&1 | grep "Number of blocks eliminated" | grep 6
11 ; PR1296
22
33 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"
None ; RUN: llc < %s -march=x86 -stats |& not grep {instructions sunk}
0 ; RUN: llc < %s -march=x86 -stats 2>&1 | not grep {instructions sunk}
11 ; PR3522
22
33 target triple = "i386-pc-linux-gnu"
0 ;; Both functions in this testcase should codegen to the same function, and
11 ;; neither of them should require spilling anything to the stack.
22
3 ; RUN: llc < %s -march=x86 -stats |& \
3 ; RUN: llc < %s -march=x86 -stats 2>&1 | \
44 ; RUN: not grep {Number of register spills}
55
66 ;; This can be compiled to use three registers if the loads are not
None ; RUN: llc < %s -mtriple=x86_64-linux -mattr=+64bit,+sse3 -print-failed-fuse-candidates -regalloc=basic |& FileCheck %s
0 ; RUN: llc < %s -mtriple=x86_64-linux -mattr=+64bit,+sse3 -print-failed-fuse-candidates -regalloc=basic 2>&1 | FileCheck %s
11 ; CHECK: fail
22 ; CHECK-NOT: fail
33
None ; RUN: llc < %s -march=x86 -mattr=+sse2 -mcpu=penryn -stats |& \
0 ; RUN: llc < %s -march=x86 -mattr=+sse2 -mcpu=penryn -stats 2>&1 | \
11 ; RUN: grep "twoaddrinstr" | grep "Number of instructions aggressively commuted"
22 ; rdar://6480363
33
None ; RUN: llc < %s -march=x86 -mattr=+sse2 -stats |& grep "Number of 3-address instructions sunk"
0 ; RUN: llc < %s -march=x86 -mattr=+sse2 -stats 2>&1 | grep "Number of 3-address instructions sunk"
11
22 define void @t2(<2 x i64>* %vDct, <2 x i64>* %vYp, i8* %skiplist, <2 x i64> %a1) nounwind {
33 entry:
None ; RUN: opt < %s -print-dbginfo -disable-output |& FileCheck %s
0 ; RUN: opt < %s -print-dbginfo -disable-output 2>&1 | FileCheck %s
11 ; grep {%b is variable b of type x declared at x.c:7} %t1
22 ; grep {%2 is variable b of type x declared at x.c:7} %t1
33 ; grep {@c.1442 is variable c of type int declared at x.c:4} %t1
None ; RUN: not llvm-as %s -o /dev/null |& grep "redefinition of global '@B'"
0 ; RUN: not llvm-as %s -o /dev/null 2>&1 | grep "redefinition of global '@B'"
11
22 @B = global i32 7
33 @B = global i32 7
0 ; PR1318
11 ; RUN: opt < %s -load=%llvmshlibdir/LLVMHello%shlibext -hello \
2 ; RUN: -disable-output |& grep Hello
2 ; RUN: -disable-output 2>&1 | grep Hello
33 ; REQUIRES: loadable_module
44 ; FIXME: On Cygming, it might fail without building LLVMHello manually.
55
22
33 ; RUN: llvm-as < %s > %t.out1.bc
44 ; RUN: echo "" | llvm-as > %t.out2.bc
5 ; RUN: llvm-link %t.out1.bc %t.out2.bc |& not grep warning
5 ; RUN: llvm-link %t.out1.bc %t.out2.bc 2>&1 | not grep warning
66
77 target datalayout = "e-p:64:64"
88
11 ; that error is printed out.
22 ; RUN: llvm-as %s -o %t.one.bc
33 ; RUN: llvm-as %s -o %t.two.bc
4 ; RUN: not llvm-link %t.one.bc %t.two.bc -o %t.bc |& FileCheck %s
4 ; RUN: not llvm-link %t.one.bc %t.two.bc -o %t.bc 2>&1 | FileCheck %s
55
66 ; CHECK: symbol multiply defined
77 define i32 @bar() {
None ; RUN: not llvm-link %s %p/module-flags-4-b.ll -S -o - |& FileCheck %s
0 ; RUN: not llvm-link %s %p/module-flags-4-b.ll -S -o - 2>&1 | FileCheck %s
11
22 ; Test 'require' error.
33
None ; RUN: not llvm-link %s %p/module-flags-5-b.ll -S -o - |& FileCheck %s
0 ; RUN: not llvm-link %s %p/module-flags-5-b.ll -S -o - 2>&1 | FileCheck %s
11
22 ; Test the 'override' error.
33
None ; RUN: not llvm-link %s %p/module-flags-6-b.ll -S -o - |& FileCheck %s
0 ; RUN: not llvm-link %s %p/module-flags-6-b.ll -S -o - 2>&1 | FileCheck %s
11
22 ; Test module flags error messages.
33
22 ; RUN: llvm-as %s -o %t.foo1.bc
33 ; RUN: llvm-as %s -o %t.foo2.bc
44 ; RUN: echo "define void @foo(i32 %x) { ret void }" | llvm-as -o %t.foo3.bc
5 ; RUN: not llvm-link %t.foo1.bc %t.foo2.bc -o %t.bc |& \
5 ; RUN: not llvm-link %t.foo1.bc %t.foo2.bc -o %t.bc 2>&1 | \
66 ; RUN: grep "symbol multiply defined"
7 ; RUN: not llvm-link %t.foo1.bc %t.foo3.bc -o %t.bc |& \
7 ; RUN: not llvm-link %t.foo1.bc %t.foo3.bc -o %t.bc 2>&1 | \
88 ; RUN: grep "symbol multiply defined"
99 define void @foo() { ret void }
None # RUN: not llvm-mc -triple i386-unknown-unknown %s |& FileCheck %s
0 # RUN: not llvm-mc -triple i386-unknown-unknown %s 2>&1 | FileCheck %s
11
22 .macro foo
33 .err
None # RUN: llvm-mc --disassemble %s -triple=arm-apple-darwin9 |& grep "invalid instruction encoding"
0 # RUN: llvm-mc --disassemble %s -triple=arm-apple-darwin9 2>&1 | grep "invalid instruction encoding"
11
22 # Opcode=60 Name=BFI Format=ARM_FORMAT_DPFRM(4)
33 # 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
None # RUN: llvm-mc --disassemble %s -triple=thumb-apple-darwin9 |& grep "invalid instruction encoding"
0 # RUN: llvm-mc --disassemble %s -triple=thumb-apple-darwin9 2>&1 | grep "invalid instruction encoding"
11
22 # Opcode=2249 Name=tBcc Format=ARM_FORMAT_THUMBFRM(25)
33 # 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
None # RUN: llvm-mc --disassemble %s -triple=arm-apple-darwin9 |& grep "invalid instruction encoding"
0 # RUN: llvm-mc --disassemble %s -triple=arm-apple-darwin9 2>&1 | grep "invalid instruction encoding"
11
22 # invalid imod value (0b01)
33 0xc0 0x67 0x4 0xf1
None # RUN: llvm-mc --disassemble %s -triple=arm-apple-darwin9 |& grep "potentially undefined instruction encoding"
0 # RUN: llvm-mc --disassemble %s -triple=arm-apple-darwin9 2>&1 | grep "potentially undefined instruction encoding"
11
22 # invalid (imod, M, iflags) combination
33 0x93 0x00 0x02 0xf1
None # RUN: llvm-mc --disassemble %s -triple=thumb-apple-darwin9 |& grep "invalid instruction encoding"
0 # RUN: llvm-mc --disassemble %s -triple=thumb-apple-darwin9 2>&1 | grep "invalid instruction encoding"
11
22 # Opcode=1908 Name=t2DMB Format=ARM_FORMAT_THUMBFRM(25)
33 # 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
None # RUN: llvm-mc --disassemble %s -triple=arm-apple-darwin9 |& grep "invalid instruction encoding"
0 # RUN: llvm-mc --disassemble %s -triple=arm-apple-darwin9 2>&1 | grep "invalid instruction encoding"
11
22 # Opcode=102 Name=DSB Format=ARM_FORMAT_MISCFRM(26)
33 # 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
None # RUN: llvm-mc --disassemble %s -triple=thumbv7-apple-darwin9 |& grep "potentially undefined instruction encoding"
0 # RUN: llvm-mc --disassemble %s -triple=thumbv7-apple-darwin9 2>&1 | grep "potentially undefined instruction encoding"
11
22 # CBZ / CBNZ not allowed in IT block.
33
None # RUN: llvm-mc --disassemble %s -triple=thumbv7-unknown-unknown |& grep und
0 # RUN: llvm-mc --disassemble %s -triple=thumbv7-unknown-unknown 2>&1 | grep und
11 # rdar://10841671
22
33 0xe3 0xbf
None # RUN: llvm-mc --disassemble %s -triple=thumbv7-unknown-unknown |& grep "potentially undefined instruction encoding"
0 # RUN: llvm-mc --disassemble %s -triple=thumbv7-unknown-unknown 2>&1 | grep "potentially undefined instruction encoding"
11
22 0xff 0xbf 0x6b 0x80 0x00 0x75
None # RUN: llvm-mc --disassemble %s -triple=arm-apple-darwin9 |& grep "invalid instruction encoding"
0 # RUN: llvm-mc --disassemble %s -triple=arm-apple-darwin9 2>&1 | grep "invalid instruction encoding"
11
22 # Opcode=0 Name=PHI Format=(42)
33 # 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
None # RUN: llvm-mc --disassemble %s -triple=thumbv7-apple-darwin9 |& grep "potentially undefined instruction encoding"
0 # RUN: llvm-mc --disassemble %s -triple=thumbv7-apple-darwin9 2>&1 | grep "potentially undefined instruction encoding"
11
22 # Writeback is not allowed is Rn is in the target register list.
33
None # RUN: llvm-mc --disassemble %s -triple=arm-apple-darwin9 |& grep "potentially undefined instruction encoding"
0 # RUN: llvm-mc --disassemble %s -triple=arm-apple-darwin9 2>&1 | grep "potentially undefined instruction encoding"
11
22 # Opcode=140 Name=LDRB_POST Format=ARM_FORMAT_LDFRM(6)
33 # 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
None # RUN: llvm-mc --disassemble %s -triple=thumbv7-apple-darwin9 |& grep "invalid instruction encoding"
0 # RUN: llvm-mc --disassemble %s -triple=thumbv7-apple-darwin9 2>&1 | grep "invalid instruction encoding"
11
22 # Opcode=1930 Name=t2LDRD_PRE Format=ARM_FORMAT_THUMBFRM(25)
33 # 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
None # RUN: llvm-mc --disassemble %s -triple=arm-apple-darwin9 |& grep {invalid instruction encoding}
0 # RUN: llvm-mc --disassemble %s -triple=arm-apple-darwin9 2>&1 | grep {invalid instruction encoding}
11 # XFAIL: *
22
33 # LDR_PRE/POST has encoding Inst{4} = 0.
None # RUN: llvm-mc --disassemble %s -triple=arm-apple-darwin9 |& grep "potentially undefined instruction encoding"
0 # RUN: llvm-mc --disassemble %s -triple=arm-apple-darwin9 2>&1 | grep "potentially undefined instruction encoding"
11
22 # Opcode=165 Name=LDR_PRE Format=ARM_FORMAT_LDFRM(6)
33 # 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
None # RUN: llvm-mc --disassemble %s -triple=arm-apple-darwin9 |& grep "invalid instruction encoding"
0 # RUN: llvm-mc --disassemble %s -triple=arm-apple-darwin9 2>&1 | grep "invalid instruction encoding"
11
22 # LDR (register) has encoding Inst{4} = 0.
33 0xba 0xae 0x9f 0x57
None # RUN: llvm-mc --disassemble %s -triple=arm-apple-darwin9 |& grep "invalid instruction encoding"
0 # RUN: llvm-mc --disassemble %s -triple=arm-apple-darwin9 2>&1 | grep "invalid instruction encoding"
11
22 # Opcode=171 Name=MCR Format=ARM_FORMAT_BRFRM(2)
33 # 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
None # RUN: llvm-mc --disassemble %s -triple=arm-apple-darwin9 |& grep "invalid instruction encoding"
0 # RUN: llvm-mc --disassemble %s -triple=arm-apple-darwin9 2>&1 | grep "invalid instruction encoding"
11
22 # Opcode=185 Name=MOVTi16 Format=ARM_FORMAT_DPFRM(4)
33 # 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
None # RUN: llvm-mc --disassemble %s -triple=arm-apple-darwin9 |& grep "invalid instruction encoding"
0 # RUN: llvm-mc --disassemble %s -triple=arm-apple-darwin9 2>&1 | grep "invalid instruction encoding"
11
22 # Opcode=0 Name=PHI Format=(42)
33 # 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
None # RUN: llvm-mc --disassemble %s -triple=arm-apple-darwin9 |& grep "invalid instruction encoding"
0 # RUN: llvm-mc --disassemble %s -triple=arm-apple-darwin9 2>&1 | grep "invalid instruction encoding"
11
22 # Opcode=196 Name=MOVs Format=ARM_FORMAT_DPSOREGFRM(5)
33 # 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
None # RUN: llvm-mc --disassemble %s -triple=arm-apple-darwin9 |& grep "invalid instruction encoding"
0 # RUN: llvm-mc --disassemble %s -triple=arm-apple-darwin9 2>&1 | grep "invalid instruction encoding"
11
22 # Opcode=0 Name=PHI Format=(42)
33 # 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
None # RUN: llvm-mc --disassemble %s -triple=armv7-linux-gnueabi |& FileCheck %s
0 # RUN: llvm-mc --disassemble %s -triple=armv7-linux-gnueabi 2>&1 | FileCheck %s
11
22 # CHECK: invalid instruction encoding
33 0x00 0x1a 0x50 0xfc
None # RUN: llvm-mc --disassemble %s -triple=arm-apple-darwin9 |& grep "invalid instruction encoding"
0 # RUN: llvm-mc --disassemble %s -triple=arm-apple-darwin9 2>&1 | grep "invalid instruction encoding"
11
22 # Opcode=206 Name=MSRi Format=ARM_FORMAT_BRFRM(2)
33 # 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
None # RUN: llvm-mc --disassemble %s -triple=arm-apple-darwin9 |& grep "invalid instruction encoding"
0 # RUN: llvm-mc --disassemble %s -triple=arm-apple-darwin9 2>&1 | grep "invalid instruction encoding"
11
22 # Opcode=134 Name=LDMIA Format=ARM_FORMAT_LDSTMULFRM(10)
33 # 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
None # RUN: llvm-mc --disassemble %s -triple=arm-apple-darwin9 |& grep "invalid instruction encoding"
0 # RUN: llvm-mc --disassemble %s -triple=arm-apple-darwin9 2>&1 | grep "invalid instruction encoding"
11
22 # Opcode=271 Name=SBFX Format=ARM_FORMAT_DPFRM(4)
33 # 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
None # RUN: llvm-mc --disassemble %s -triple=arm-apple-darwin9 |& grep "invalid instruction encoding"
0 # RUN: llvm-mc --disassemble %s -triple=arm-apple-darwin9 2>&1 | grep "invalid instruction encoding"
11
22 # Opcode=284 Name=SMLAD Format=ARM_FORMAT_MULFRM(1)
33 # 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
None # RUN: llvm-mc --disassemble %s -triple=arm-apple-darwin9 |& grep "invalid instruction encoding"
0 # RUN: llvm-mc --disassemble %s -triple=arm-apple-darwin9 2>&1 | grep "invalid instruction encoding"
11
22 # Opcode=0 Name=PHI Format=(42)
33 # 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
None # RUN: llvm-mc --disassemble %s -triple=thumb-apple-darwin9 |& grep "invalid instruction encoding"
0 # RUN: llvm-mc --disassemble %s -triple=thumb-apple-darwin9 2>&1 | grep "invalid instruction encoding"
11
22 # Opcode=2313 Name=tSTMIA_UPD Format=ARM_FORMAT_THUMBFRM(25)
33 # 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
None # RUN: llvm-mc --disassemble %s -triple=arm-apple-darwin9 |& grep "invalid instruction encoding"
0 # RUN: llvm-mc --disassemble %s -triple=arm-apple-darwin9 2>&1 | grep "invalid instruction encoding"
11
22 # Opcode=390 Name=SXTBr_rot Format=ARM_FORMAT_EXTFRM(14)
33 # 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
None # RUN: llvm-mc --disassemble %s -triple=arm-apple-darwin9 |& grep "invalid instruction encoding"
0 # RUN: llvm-mc --disassemble %s -triple=arm-apple-darwin9 2>&1 | grep "invalid instruction encoding"
11
22 # Opcode=419 Name=UMAAL Format=ARM_FORMAT_MULFRM(1)
33 # 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
None # RUN: llvm-mc --disassemble %s -triple=armv7-unknown-unknwon -mcpu=cortex-a8 |& grep {invalid instruction encoding}
0 # RUN: llvm-mc --disassemble %s -triple=armv7-unknown-unknwon -mcpu=cortex-a8 2>&1 | grep {invalid instruction encoding}
11 # XFAIL: *
22
33 # Opcode=737 Name=VLD1DUPq8_UPD Format=ARM_FORMAT_NLdSt(30)
None # RUN: llvm-mc --disassemble %s -triple=thumb-apple-darwin9 |& grep "invalid instruction encoding"
0 # RUN: llvm-mc --disassemble %s -triple=thumb-apple-darwin9 2>&1 | grep "invalid instruction encoding"
11
22 # Opcode=871 Name=VLD3DUPd32_UPD Format=ARM_FORMAT_NLdSt(30)
33 # 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
None # RUN: llvm-mc --disassemble %s -triple=arm-apple-darwin9 |& grep "invalid instruction encoding"
0 # RUN: llvm-mc --disassemble %s -triple=arm-apple-darwin9 2>&1 | grep "invalid instruction encoding"
11
22 # core registers out of range
33 0xa5 0xba 0x72 0xed
None # RUN: llvm-mc --disassemble %s -triple=armv7-unknown-unknwon -mcpu=cortex-a8 |& grep {invalid instruction encoding}
0 # RUN: llvm-mc --disassemble %s -triple=armv7-unknown-unknwon -mcpu=cortex-a8 2>&1 | grep {invalid instruction encoding}
11 # XFAIL: *
22
33 # Opcode=1225 Name=VQADDsv16i8 Format=ARM_FORMAT_N3Reg(37)
None # RUN: llvm-mc --disassemble %s -triple=thumb-apple-darwin9 |& grep "invalid instruction encoding"
0 # RUN: llvm-mc --disassemble %s -triple=thumb-apple-darwin9 2>&1 | grep "invalid instruction encoding"
11
22 # Opcode=1839 Name=VST1d8Twb_register Format=ARM_FORMAT_NLdSt(30)
33 # 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
None # RUN: llvm-mc --disassemble %s -triple=armv7-unknown-unknwon -mcpu=cortex-a8 |& grep {invalid instruction encoding}
0 # RUN: llvm-mc --disassemble %s -triple=armv7-unknown-unknwon -mcpu=cortex-a8 2>&1 | grep {invalid instruction encoding}
11 # XFAIL: *
22
33 # Opcode=1641 Name=VST2b32_UPD Format=ARM_FORMAT_NLdSt(30)
None # RUN: llvm-mc --disassemble %s -triple=thumb-apple-darwin9 |& grep "invalid instruction encoding"
0 # RUN: llvm-mc --disassemble %s -triple=thumb-apple-darwin9 2>&1 | grep "invalid instruction encoding"
11
22 # Opcode=1894 Name=t2Bcc Format=ARM_FORMAT_THUMBFRM(25)
33 # 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
None # RUN: llvm-mc --disassemble %s -triple=thumb-apple-darwin9 |& grep "invalid instruction encoding"
0 # RUN: llvm-mc --disassemble %s -triple=thumb-apple-darwin9 2>&1 | grep "invalid instruction encoding"
11
22 # Opcode=1922 Name=t2LDRBT Format=ARM_FORMAT_THUMBFRM(25)
33 # 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
None # RUN: llvm-mc --disassemble %s -triple=thumbv7-apple-darwin9 |& grep {invalid instruction encoding}
0 # RUN: llvm-mc --disassemble %s -triple=thumbv7-apple-darwin9 2>&1 | grep {invalid instruction encoding}
11 # XFAIL: *
22
33 # Opcode=1934 Name=t2LDREXD Format=ARM_FORMAT_THUMBFRM(25)
None # RUN: llvm-mc --disassemble %s -triple=thumb-apple-darwin9 |& grep "invalid instruction encoding"
0 # RUN: llvm-mc --disassemble %s -triple=thumb-apple-darwin9 2>&1 | grep "invalid instruction encoding"
11
22 # Opcode=1953 Name=t2LDRSHi12 Format=ARM_FORMAT_THUMBFRM(25)
33 # 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
None # RUN: llvm-mc --disassemble %s -triple=thumb-apple-darwin9 |& grep "invalid instruction encoding"
0 # RUN: llvm-mc --disassemble %s -triple=thumb-apple-darwin9 2>&1 | grep "invalid instruction encoding"
11
22 # Opcode=1954 Name=t2LDRSHi8 Format=ARM_FORMAT_THUMBFRM(25)
33 # 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
None # RUN: llvm-mc --disassemble %s -triple=thumbv7-apple-darwin9 |& grep "invalid instruction encoding"
0 # RUN: llvm-mc --disassemble %s -triple=thumbv7-apple-darwin9 2>&1 | grep "invalid instruction encoding"
11
22 # SP and PC are not allowed in the register list on STM instructions in Thumb2.
33
None # RUN: llvm-mc --disassemble %s -triple=thumbv7-apple-darwin9 |& grep {invalid instruction encoding}
0 # RUN: llvm-mc --disassemble %s -triple=thumbv7-apple-darwin9 2>&1 | grep {invalid instruction encoding}
11 # XFAIL: *
22
33 # Opcode=2124 Name=t2STRD_PRE Format=ARM_FORMAT_THUMBFRM(25)
None # RUN: llvm-mc --disassemble %s -triple=thumbv7-apple-darwin9 |& grep {invalid instruction encoding}
0 # RUN: llvm-mc --disassemble %s -triple=thumbv7-apple-darwin9 2>&1 | grep {invalid instruction encoding}
11 # XFAIL: *
22
33 # Opcode=2127 Name=t2STREXB Format=ARM_FORMAT_THUMBFRM(25)
None # RUN: llvm-mc --disassemble %s -triple=thumb-apple-darwin9 |& grep "invalid instruction encoding"
0 # RUN: llvm-mc --disassemble %s -triple=thumb-apple-darwin9 2>&1 | grep "invalid instruction encoding"
11
22 # Opcode=2128 Name=t2STREXD Format=ARM_FORMAT_THUMBFRM(25)
33 # 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
None # RUN: llvm-mc --disassemble %s -triple=thumb-apple-darwin9 |& grep "invalid instruction encoding"
0 # RUN: llvm-mc --disassemble %s -triple=thumb-apple-darwin9 2>&1 | grep "invalid instruction encoding"
11
22 # Opcode=2137 Name=t2STR_POST Format=ARM_FORMAT_THUMBFRM(25)
33 # 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
None # RUN: llvm-mc --disassemble %s -triple=armv4-linux-gnueabi |& FileCheck %s -check-prefix=V4
1 # RUN: llvm-mc --disassemble %s -triple=armv5te-linux-gnueabi |& FileCheck %s -check-prefix=V5TE
0 # RUN: llvm-mc --disassemble %s -triple=armv4-linux-gnueabi 2>&1 | FileCheck %s -check-prefix=V4
1 # RUN: llvm-mc --disassemble %s -triple=armv5te-linux-gnueabi 2>&1 | FileCheck %s -check-prefix=V5TE
22
33 # 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
44 # -------------------------------------------------------------------------------------------------
None # RUN: llvm-mc --disassemble %s -triple=armv7-linux-gnueabi |& FileCheck %s
0 # RUN: llvm-mc --disassemble %s -triple=armv7-linux-gnueabi 2>&1 | FileCheck %s
11
22 # CHECK: potentially undefined
33 # CHECK: 0x1f 0x12 0xb0 0x00
None # RUN: llvm-mc --disassemble %s -triple=armv7-linux-gnueabi |& FileCheck %s
0 # RUN: llvm-mc --disassemble %s -triple=armv7-linux-gnueabi 2>&1 | FileCheck %s
11
22 # CHECK: potentially undefined
33 # CHECK: 0xd1 0xf1 0x5f 0x01
None # RUN: llvm-mc --disassemble %s -triple=armv7-linux-gnueabi |& FileCheck %s -check-prefix=CHECK-WARN
1 # RUN: llvm-mc --disassemble %s -triple=armv7-linux-gnueabi |& FileCheck %s
0 # RUN: llvm-mc --disassemble %s -triple=armv7-linux-gnueabi 2>&1 | FileCheck %s -check-prefix=CHECK-WARN
1 # RUN: llvm-mc --disassemble %s -triple=armv7-linux-gnueabi 2>&1 | FileCheck %s
22
33 # CHECK-WARN: potentially undefined
44 # CHECK-WARN: 0x74 0x03 0xaf 0x06
None # RUN: llvm-mc --disassemble %s -triple=armv7-linux-gnueabi |& FileCheck %s
0 # RUN: llvm-mc --disassemble %s -triple=armv7-linux-gnueabi 2>&1 | FileCheck %s
11
22 # CHECK: potentially undefined
33 # CHECK: 0x01 0x10 0x50 0x03
None # RUN: llvm-mc --disassemble %s -triple=armv7-linux-gnueabi |& FileCheck %s
0 # RUN: llvm-mc --disassemble %s -triple=armv7-linux-gnueabi 2>&1 | FileCheck %s
11
22 # CHECK: potentially undefined
33 # CHECK: 0xff 0x00 0xb9 0x00
None # RUN: llvm-mc --disassemble %s -triple=arm-apple-darwin9 |& FileCheck %s
0 # RUN: llvm-mc --disassemble %s -triple=arm-apple-darwin9 2>&1 | FileCheck %s
11
22 # 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
33 # -------------------------------------------------------------------------------------------------
None # RUN: llvm-mc --disassemble %s -triple=arm-apple-darwin9 |& FileCheck %s
0 # RUN: llvm-mc --disassemble %s -triple=arm-apple-darwin9 2>&1 | FileCheck %s
11
22 # Opcode=196 Name=MOVs Format=ARM_FORMAT_DPSOREGFRM(5)
33 # 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
None # RUN: llvm-mc --disassemble %s -triple=armv7-linux-gnueabi |& FileCheck %s
0 # RUN: llvm-mc --disassemble %s -triple=armv7-linux-gnueabi 2>&1 | FileCheck %s
11
22 # CHECK: potentially undefined
33 # CHECK: 0x00 0x10 0x51 0xfc
None # RUN: llvm-mc --disassemble %s -triple=arm-apple-darwin9 |& FileCheck %s
0 # RUN: llvm-mc --disassemble %s -triple=arm-apple-darwin9 2>&1 | FileCheck %s
11
22 # CHECK: warning: potentially undefined
33 # CHECK: 0x00 0xf0 0x0f 0x01
None # RUN: llvm-mc --disassemble %s -triple=armv7-linux-gnueabi |& FileCheck %s
0 # RUN: llvm-mc --disassemble %s -triple=armv7-linux-gnueabi 2>&1 | FileCheck %s
11
22 # CHECK: potentially undefined
33 # CHECK: 0x93 0x12 0x01 0x00
None # RUN: llvm-mc --disassemble %s -triple=arm-apple-darwin9 |& FileCheck %s
0 # RUN: llvm-mc --disassemble %s -triple=arm-apple-darwin9 2>&1 | FileCheck %s
11
22 # Opcode=261 Name=RSCrs Format=ARM_FORMAT_DPSOREGFRM(5)
33 # 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
None # RUN: llvm-mc --disassemble %s -triple=armv7-linux-gnueabi |& FileCheck %s
0 # RUN: llvm-mc --disassemble %s -triple=armv7-linux-gnueabi 2>&1 | FileCheck %s
11
22 # CHECK: potentially undefined
33 # CHECK: 0xb4 0x38 0x80 0x06
None # RUN: llvm-mc --disassemble %s -triple=arm-apple-darwin9 |& FileCheck %s
0 # RUN: llvm-mc --disassemble %s -triple=arm-apple-darwin9 2>&1 | FileCheck %s
11
22 # CHECK: warning: potentially undefined
33 # CHECK: shadd16 r5, r7, r0
None # RUN: llvm-mc --disassemble %s -triple=arm-apple-darwin9 |& FileCheck %s
0 # RUN: llvm-mc --disassemble %s -triple=arm-apple-darwin9 2>&1 | FileCheck %s
11
22 # Opcode=322 Name=SSAT Format=ARM_FORMAT_SATFRM(13)
33 # 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
None # RUN: llvm-mc --disassemble %s -triple=arm-apple-darwin9 |& FileCheck %s
0 # RUN: llvm-mc --disassemble %s -triple=arm-apple-darwin9 2>&1 | FileCheck %s
11
22 # Opcode=355 Name=STRBrs Format=ARM_FORMAT_STFRM(7)
33 # 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
None # RUN: llvm-mc --disassemble %s -triple=arm-apple-darwin9 |& FileCheck %s
0 # RUN: llvm-mc --disassemble %s -triple=arm-apple-darwin9 2>&1 | FileCheck %s
11
22 # Opcode=426 Name=UQADD8 Format=ARM_FORMAT_DPFRM(4)
33 # 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
None # RUN: llvm-mc --disassemble %s -triple=armv7-linux-gnueabi |& FileCheck %s
0 # RUN: llvm-mc --disassemble %s -triple=armv7-linux-gnueabi 2>&1 | FileCheck %s
11
22 # CHECK: potentially undefined
33 # CHECK: 0x9f 0x10 0x03 0x01
None # RUN: llvm-mc --disassemble %s -triple=thumbv7 |& FileCheck %s
0 # RUN: llvm-mc --disassemble %s -triple=thumbv7 2>&1 | FileCheck %s
11
22 0x01 0x47
33 # CHECK: 3:1: warning: potentially undefined
None # RUN: llvm-mc --edis %s -triple=x86_64-apple-darwin9 |& FileCheck %s
0 # RUN: llvm-mc --edis %s -triple=x86_64-apple-darwin9 2>&1 | FileCheck %s
11
22 # CHECK: [o:jne][w: ][0-p:-][0-l:10=10]
0:[RIP/112](pc)=18446744073709551606
33 0x0f 0x85 0xf6 0xff 0xff 0xff
None # RUN: llvm-mc --disassemble %s -triple=x86_64-apple-darwin9 |& grep "invalid instruction encoding"
0 # RUN: llvm-mc --disassemble %s -triple=x86_64-apple-darwin9 2>&1 | grep "invalid instruction encoding"
11
22 # This instruction would decode as movmskps if the vvvv field in the VEX prefix was all 1s.
33 0xc5 0xf0 0x50 0xc0
None # RUN: llvm-mc --disassemble %s -triple=x86_64-apple-darwin9 |& grep "invalid instruction encoding"
0 # RUN: llvm-mc --disassemble %s -triple=x86_64-apple-darwin9 2>&1 | grep "invalid instruction encoding"
11
22 # This instruction would decode as cmpordps if the immediate byte was less than 8.
33 0x0f 0xc2 0xc7 0x08
None # RUN: llvm-mc --disassemble %s -triple=x86_64-apple-darwin9 |& FileCheck %s
0 # RUN: llvm-mc --disassemble %s -triple=x86_64-apple-darwin9 2>&1 | FileCheck %s
11
22 # CHECK: warning
33 0x00
None ; RUN: not opt --foo |& grep "Unknown command line argument"
0 ; RUN: not opt --foo 2>&1 | grep "Unknown command line argument"
11
22 ; there is no --foo
None ; RUN: opt -basicaa -lint -disable-output < %s |& FileCheck %s
0 ; RUN: opt -basicaa -lint -disable-output < %s 2>&1 | FileCheck %s
11 target datalayout = "e-p:64:64:64"
22
33 declare fastcc void @bar()
None ;RUN: opt -S -O1 -debug-pass=Arguments |& FileCheck %s
1 ;RUN: opt -S -O2 -debug-pass=Arguments |& FileCheck %s
2 ;RUN: opt -S -Os -debug-pass=Arguments |& FileCheck %s
3 ;RUN: opt -S -Oz -debug-pass=Arguments |& FileCheck %s
4 ;RUN: opt -S -O3 -debug-pass=Arguments |& FileCheck %s
0 ;RUN: opt -S -O1 -debug-pass=Arguments 2>&1 | FileCheck %s
1 ;RUN: opt -S -O2 -debug-pass=Arguments 2>&1 | FileCheck %s
2 ;RUN: opt -S -Os -debug-pass=Arguments 2>&1 | FileCheck %s
3 ;RUN: opt -S -Oz -debug-pass=Arguments 2>&1 | FileCheck %s
4 ;RUN: opt -S -O3 -debug-pass=Arguments 2>&1 | FileCheck %s
55
66 ; Just check that we get a non-empty set of passes for each -O opton.
77 ;CHECK: Pass Arguments: {{.*}} -print-module
None ; RUN: opt < %s -basicaa -gvn -stats -disable-output |& grep "Number of loads deleted"
0 ; RUN: opt < %s -basicaa -gvn -stats -disable-output 2>&1 | grep "Number of loads deleted"
11 ; rdar://7363102
22
33 ; GVN should be able to eliminate load %tmp22.i, because it is redundant with
None ; RUN: opt < %s -globalopt -stats -disable-output |& grep "1 globalopt - Number of global vars shrunk to booleans"
0 ; RUN: opt < %s -globalopt -stats -disable-output 2>&1 | grep "1 globalopt - Number of global vars shrunk to booleans"
11
22 @Stop = internal global i32 0 ; [#uses=3]
33
None ; RUN: opt %s -S -inline -functionattrs -stats |& grep "Number of call sites deleted, not inlined"
1 ; RUN: opt %s -S -inline -stats |& grep "Number of functions inlined"
0 ; RUN: opt %s -S -inline -functionattrs -stats 2>&1 | grep "Number of call sites deleted, not inlined"
1 ; RUN: opt %s -S -inline -stats 2>&1 | grep "Number of functions inlined"
22
33 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-f80:128:128-n8:16:32"
44 target triple = "i386-apple-darwin9.8"
None ; RUN: opt < %s -licm -stats -S |& grep "1 licm"
0 ; RUN: opt < %s -licm -stats -S 2>&1 | grep "1 licm"
11
22 @"\01L_OBJC_METH_VAR_NAME_" = internal global [4 x i8] c"foo\00", section "__TEXT,__objc_methname,cstring_literals", align 1
33 @"\01L_OBJC_SELECTOR_REFERENCES_" = internal global i8* getelementptr inbounds ([4 x i8]* @"\01L_OBJC_METH_VAR_NAME_", i32 0, i32 0), section "__DATA, __objc_selrefs, literal_pointers, no_dead_strip"
None ; RUN: opt < %s -loop-unswitch -stats -disable-output |& grep "1 loop-unswitch - Number of branches unswitched" | count 1
0 ; RUN: opt < %s -loop-unswitch -stats -disable-output 2>&1 | grep "1 loop-unswitch - Number of branches unswitched" | count 1
11 ; PR 3170
22 define i32 @a(i32 %x, i32 %y) nounwind {
33 entry:
None ; RUN: opt < %s -mergefunc -stats -disable-output |& not grep {functions merged}
0 ; RUN: opt < %s -mergefunc -stats -disable-output 2>&1 | not grep {functions merged}
11
22 define i32 @foo1(i32 %x) {
33 entry:
None ; RUN: opt < %s -mergefunc -stats -disable-output |& grep "functions merged"
0 ; RUN: opt < %s -mergefunc -stats -disable-output 2>&1 | grep "functions merged"
11
22 define i32 @foo1(i32 %x) {
33 entry:
None ; RUN: opt -mergefunc -stats -disable-output < %s |& grep "functions merged"
0 ; RUN: opt -mergefunc -stats -disable-output < %s 2>&1 | grep "functions merged"
11
22 ; This test is checks whether we can merge
33 ; vector::push_back(0)
0 ; This function contains two tail calls, which should be eliminated
1 ; RUN: opt < %s -tailcallelim -stats -disable-output |& grep "2 tailcallelim"
1 ; RUN: opt < %s -tailcallelim -stats -disable-output 2>&1 | grep "2 tailcallelim"
22
33 define i32 @Ack(i32 %M.1, i32 %N.1) {
44 entry:
0 ; Duplicate the return into if.end to enable TCE.
1 ; RUN: opt %s -tailcallelim -stats -disable-output |& grep "Number of return duplicated"
1 ; RUN: opt %s -tailcallelim -stats -disable-output 2>&1 | grep "Number of return duplicated"
22
33 define i32 @fib(i32 %n) nounwind ssp {
44 entry:
None ; RUN: opt < %s -tailduplicate -taildup-threshold=3 -stats -disable-output |& not grep tailduplicate
0 ; RUN: opt < %s -tailduplicate -taildup-threshold=3 -stats -disable-output 2>&1 | not grep tailduplicate
11 ; XFAIL: *
22
33 define i32 @foo(i32 %l) nounwind {
None ; RUN: not llvm-as < %s |& grep "value doesn't match function result type 'i32'"
0 ; RUN: not llvm-as < %s 2>&1 | grep "value doesn't match function result type 'i32'"
11
22 ; Verify the the operand type of the ret instructions in a function match the
33 ; delcared return type of the function they live in.
None ; RUN: not llvm-as < %s |& grep "invalid getelementptr indices"
0 ; RUN: not llvm-as < %s 2>&1 | grep "invalid getelementptr indices"
11
22 ; This testcase is invalid because we are indexing into a pointer that is
33 ; contained WITHIN a structure.
None ; RUN: llvm-as < %s |& not grep {Instruction operands must be first-class}
0 ; RUN: llvm-as < %s 2>&1 | not grep {Instruction operands must be first-class}
11
22 ; This previously was for PR826, but structs are now first-class so
33 ; the following is now valid.
None ; RUN: not llvm-as < %s |& grep "llvm intrinsics cannot be defined"
0 ; RUN: not llvm-as < %s 2>&1 | grep "llvm intrinsics cannot be defined"
11 ; PR1047
22
33 define void @llvm.memcpy.p0i8.p0i8.i32(i8*, i8*, i32, i32, i1) {
None ; RUN: not llvm-as %s -o /dev/null |& grep "Cannot allocate unsized type"
0 ; RUN: not llvm-as %s -o /dev/null 2>&1 | grep "Cannot allocate unsized type"
11 ; PR2113
22
33 define void @test() {
None ; RUN: not llvm-as %s -o /dev/null |& grep "alignment argument of memory intrinsics must be a constant int"
0 ; RUN: not llvm-as %s -o /dev/null 2>&1 | grep "alignment argument of memory intrinsics must be a constant int"
11 ; PR2318
22
33 define void @x(i8* %a, i8* %src, i64 %len, i32 %align) nounwind {
None ; RUN: not llvm-as < %s |& grep "value doesn't match function result type 'void'"
0 ; RUN: not llvm-as < %s 2>&1 | grep "value doesn't match function result type 'void'"
11
22 define void @foo() {
33 ret i32 0
None ; RUN: not llvm-as < %s |& grep "multiple entries for the same basic block"
0 ; RUN: not llvm-as < %s 2>&1 | grep "multiple entries for the same basic block"
11
22
33
None ; RUN: not llvm-as < %s |& grep "PHI nodes not grouped at top"
0 ; RUN: not llvm-as < %s 2>&1 | grep "PHI nodes not grouped at top"
11
22
33
None ; RUN: not llvm-as %s -o /dev/null |& grep "Only PHI nodes may reference their own value"
0 ; RUN: not llvm-as %s -o /dev/null 2>&1 | grep "Only PHI nodes may reference their own value"
11
22 ; Test that self referential instructions are not allowed
33
None ; RUN: not llvm-as %s -o /dev/null |& grep "Aliasing chain should end with function or global variable"
0 ; RUN: not llvm-as %s -o /dev/null 2>&1 | grep "Aliasing chain should end with function or global variable"
11
22 ; Test that alising chain does not create a cycle
33
None ; RUN: not llvm-as < %s -o /dev/null |& FileCheck %s
0 ; RUN: not llvm-as < %s -o /dev/null 2>&1 | FileCheck %s
11
22 declare i32 @llvm.ctlz.i32(i32, i1)
33 declare i32 @llvm.cttz.i32(i32, i1)
None ; RUN: not llvm-as < %s -o /dev/null |& FileCheck %s
0 ; RUN: not llvm-as < %s -o /dev/null 2>&1 | FileCheck %s
11
22 define i32 @f1(i32 %x) {
33 %y = add i32 %z, 1
None ; RUN: not llvm-as < %s |& FileCheck %s
0 ; RUN: not llvm-as < %s 2>&1 | FileCheck %s
11
22 define void @fpmath1(i32 %i, float %f, <2 x float> %g) {
33 %s = add i32 %i, %i, !fpmath !0
None ; RUN: not llvm-as < %s -o /dev/null |& FileCheck %s
0 ; RUN: not llvm-as < %s -o /dev/null 2>&1 | FileCheck %s
11
22 ; PR1042
33 define i32 @foo() {
None ; RUN: not llvm-as < %s -o /dev/null |& FileCheck %s
0 ; RUN: not llvm-as < %s -o /dev/null 2>&1 | FileCheck %s
11
22 define void @f1(i8* %x) {
33 entry:
None # RUN: yaml-bench -canonical %s |& FileCheck %s
0 # RUN: yaml-bench -canonical %s 2>&1 | FileCheck %s
11
22 # Invalid use of BOM
33 # inside a
None # RUN: yaml-bench -canonical %s |& FileCheck %s
0 # RUN: yaml-bench -canonical %s 2>&1 | FileCheck %s
11
22 commercial-at: @text
33 grave-accent: `text
None # RUN: yaml-bench -canonical %s |& FileCheck %s
0 # RUN: yaml-bench -canonical %s 2>&1 | FileCheck %s
11 #
22 # We don't currently reject tabs as indentation.
33 # XFAIL: *
None # RUN: yaml-bench -canonical %s |& FileCheck %s
0 # RUN: yaml-bench -canonical %s 2>&1 | FileCheck %s
11
22 Bad escapes:
33 "\c
None # RUN: yaml-bench -canonical %s |& FileCheck %s
0 # RUN: yaml-bench -canonical %s 2>&1 | FileCheck %s
11
22 %YAML 1.1
33 %YAML 1.1
None # RUN: yaml-bench -canonical %s |& FileCheck %s
0 # RUN: yaml-bench -canonical %s 2>&1 | FileCheck %s
11 #
22 # We don't currently parse TAG directives.
33 # XFAIL: *
None # RUN: yaml-bench -canonical %s |& FileCheck %s
0 # RUN: yaml-bench -canonical %s 2>&1 | FileCheck %s
11 #
22 # We don't currently look at the content of literal tags.
33 # XFAIL: *
None # RUN: yaml-bench -canonical %s |& FileCheck %s
0 # RUN: yaml-bench -canonical %s 2>&1 | FileCheck %s
11 #
22 # We don't currently validate tags.
33 # XFAIL: *
None # RUN: yaml-bench -canonical %s |& FileCheck %s
0 # RUN: yaml-bench -canonical %s 2>&1 | FileCheck %s
11 #
22 # Indent trimming is not yet implemented.
33 # XFAIL: *
None # RUN: yaml-bench -canonical %s |& FileCheck %s
0 # RUN: yaml-bench -canonical %s 2>&1 | FileCheck %s
11 #
22 # Not quite sure why this doesn't fail.
33 # XFAIL: *
None # RUN: yaml-bench -canonical %s |& FileCheck %s
0 # RUN: yaml-bench -canonical %s 2>&1 | FileCheck %s
11
22 - |
33
None # RUN: yaml-bench -canonical %s |& FileCheck %s
0 # RUN: yaml-bench -canonical %s 2>&1 | FileCheck %s
11 #
22 # This fails because even without a key token, some contexts (in this case flow
33 # maps) allow implicit null keys, which mix with this in weird ways.