-; RUN: opt %s -anders-aa -gvn -instcombine | llvm-dis \
+; RUN: opt %s -anders-aa -gvn -instcombine -S \
; RUN: | grep {ret i1 true}
@G = internal global i32* null
-; RUN: opt %s -anders-aa -gvn | llvm-dis \
+; RUN: opt %s -anders-aa -gvn -S \
; RUN: | not grep {ret i32 undef}
;; From PR 2160
; disambiguating some obvious cases. All loads should be removable in
; this testcase.
-; RUN: opt %s -basicaa -gvn -instcombine -dce \
-; RUN: | llvm-dis | not grep load
+; RUN: opt %s -basicaa -gvn -instcombine -dce -S \
+; RUN: | not grep load
@A = global i32 7
@B = global i32 8
-; RUN: opt %s -indvars | llvm-dis \
+; RUN: opt %s -indvars -S \
; RUN: | grep {%b.1 = phi i32 \\\[ 2, %bb \\\], \\\[ 1, %bb2 \\\]}
; This loop has multiple exits, and the value of %b1 depends on which
-; RUN: opt %s -indvars | llvm-dis \
+; RUN: opt %s -indvars -S \
; RUN: | grep {\[%\]p.2.ip.1 = getelementptr \\\[3 x \\\[3 x double\\\]\\\]\\* \[%\]p, i64 2, i64 \[%\]tmp, i64 1}
; Indvars shouldn't expand this to
; Test that this transform works:
; udiv X, (Select Cond, C1, C2) --> Select Cond, (shr X, C1), (shr X, C2)
;
-; RUN: opt %s -instcombine | llvm-dis -o %t
+; RUN: opt < %s -instcombine -S -o %t
; RUN: not grep select %t
; RUN: grep lshr %t | count 2
; RUN: not grep udiv %t
-; RUN: opt %s -loopsimplify -loop-rotate -instcombine -indvars \
-; RUN: | llvm-dis > %t
+; RUN: opt %s -loopsimplify -loop-rotate -instcombine -indvars -S > %t
; RUN: not grep sext %t
; RUN: grep {phi i64} %t | count 1
-; RUN: opt %s -loop-reduce | llvm-dis \
+; RUN: opt %s -loop-reduce -S \
; RUN: | grep {getelementptr.*%lsr.iv.*%lsr.iv.*<i32\\*>}
; The multiply in bb2 must not be reduced to an add, as the sext causes the
; %1 argument to become negative after a while.
-; RUN: opt %s -loop-reduce | llvm-dis \
+; RUN: opt %s -loop-reduce -S \
; RUN: | grep {icmp eq i2 %lsr.iv.next, %xmp4344}
; Don't reverse the iteration if the rhs of the compare is defined
; RUN: opt %s -simplifycfg -instcombine \
-; RUN: -simplifycfg | llvm-dis | not grep call
+; RUN: -simplifycfg -S | not grep call
declare void @bar()