mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-24 13:18:17 +00:00
Change these tests to feed the assembly files to opt directly, instead
of using llvm-as, now that opt supports this. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81226 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
; This testcase exposed a problem with the loop identification pass (LoopInfo).
|
||||
; Basically, it was incorrectly calculating the loop nesting information.
|
||||
;
|
||||
; RUN: llvm-as < %s | opt -loopsimplify
|
||||
; RUN: opt %s -loopsimplify
|
||||
|
||||
define i32 @yylex() {
|
||||
br label %loopentry.0
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
; inserted for the "fail" loop, but the exit block of a loop is not updated
|
||||
; to be the preheader instead of the exit loop itself.
|
||||
|
||||
; RUN: llvm-as < %s | opt -loopsimplify
|
||||
; RUN: opt %s -loopsimplify
|
||||
define i32 @re_match_2() {
|
||||
br label %loopentry.1
|
||||
loopentry.1: ; preds = %endif.82, %0
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
; RUN: llvm-as < %s | opt -tailduplicate -instcombine -simplifycfg -licm -disable-output
|
||||
; RUN: opt %s -tailduplicate -instcombine -simplifycfg -licm -disable-output
|
||||
target datalayout = "e-p:32:32"
|
||||
@yy_base = external global [787 x i16] ; <[787 x i16]*> [#uses=1]
|
||||
@yy_state_ptr = external global i32* ; <i32**> [#uses=3]
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
;
|
||||
; This is distilled from a monsterous crafty example.
|
||||
|
||||
; RUN: llvm-as < %s | opt -licm -disable-output
|
||||
; RUN: opt %s -licm -disable-output
|
||||
|
||||
|
||||
@G = weak global i32 0 ; <i32*> [#uses=7]
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
; RUN: llvm-as < %s | opt -loopsimplify -verify -licm -disable-output
|
||||
; RUN: opt %s -loopsimplify -verify -licm -disable-output
|
||||
|
||||
define void @.subst_48() {
|
||||
entry:
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
; RUN: llvm-as < %s | opt -loopsimplify -licm -disable-output
|
||||
; RUN: opt %s -loopsimplify -licm -disable-output
|
||||
define void @main() {
|
||||
entry:
|
||||
br i1 false, label %Out, label %loop
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
; RUN: llvm-as < %s | opt -loopsimplify -licm -disable-output
|
||||
; RUN: opt %s -loopsimplify -licm -disable-output
|
||||
|
||||
; This is PR306
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
; RUN: llvm-as < %s | opt -loopsimplify -disable-output
|
||||
; RUN: opt %s -loopsimplify -disable-output
|
||||
|
||||
define void @test() {
|
||||
loopentry.0:
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
; RUN: llvm-as < %s | opt -scalarrepl -loopsimplify -licm -disable-output -verify-dom-info
|
||||
; RUN: opt %s -scalarrepl -loopsimplify -licm -disable-output -verify-dom-info
|
||||
|
||||
define void @inflate() {
|
||||
entry:
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
; RUN: llvm-as < %s | opt -loopsimplify -disable-output
|
||||
; RUN: opt %s -loopsimplify -disable-output
|
||||
; PR1752
|
||||
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-s0:0:64-f80:32:32"
|
||||
target triple = "i686-pc-mingw32"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
; RUN: llvm-as < %s | opt -loopsimplify
|
||||
; RUN: opt %s -loopsimplify
|
||||
|
||||
; This function should get a preheader inserted before BB3, that is jumped
|
||||
; to by BB1 & BB2
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
; RUN: llvm-as < %s | opt -loopsimplify
|
||||
; RUN: opt %s -loopsimplify
|
||||
|
||||
define void @foo(i1 %C) {
|
||||
br i1 %C, label %T, label %F
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
; RUN: llvm-as < %s | opt -loopsimplify -loop-rotate -instcombine -indvars \
|
||||
; RUN: opt %s -loopsimplify -loop-rotate -instcombine -indvars \
|
||||
; RUN: | llvm-dis > %t
|
||||
; RUN: not grep sext %t
|
||||
; RUN: grep {phi i64} %t | count 1
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
; Loop Simplify should turn phi nodes like X = phi [X, Y] into just Y, eliminating them.
|
||||
; RUN: llvm-as < %s | opt -loopsimplify | llvm-dis | grep phi | count 6
|
||||
; RUN: opt %s -loopsimplify | llvm-dis | grep phi | count 6
|
||||
|
||||
@A = weak global [3000000 x i32] zeroinitializer ; <[3000000 x i32]*> [#uses=1]
|
||||
@B = weak global [20000 x i32] zeroinitializer ; <[20000 x i32]*> [#uses=1]
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
; for all loops. This allows the -indvars pass to recognize the %IV
|
||||
; induction variable in this testcase.
|
||||
|
||||
; RUN: llvm-as < %s | opt -indvars | llvm-dis | grep indvar
|
||||
; RUN: opt %s -indvars | llvm-dis | grep indvar
|
||||
|
||||
define i32 @test(i1 %C) {
|
||||
; <label>:0
|
||||
|
||||
Reference in New Issue
Block a user