mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
Renamed as' =>
llvm-as', dis' =>
llvm-dis', link' =>
llvm-link'.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8558 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
; This test ensures that alloca instructions in the entry block for an inlined
|
||||
; function are moved to the top of the function they are inlined into.
|
||||
;
|
||||
; RUN: as < %s | opt -inline | dis | grep -C 1 alloca | grep Entry:
|
||||
; RUN: llvm-as < %s | opt -inline | llvm-dis | grep -C 1 alloca | grep Entry:
|
||||
|
||||
int %func(int %i) {
|
||||
%X = alloca int
|
||||
|
@@ -1,4 +1,4 @@
|
||||
; RUN: as < %s | opt -inline -disable-output -print
|
||||
; RUN: llvm-as < %s | opt -inline -disable-output -print
|
||||
|
||||
int %func(int %i) {
|
||||
ret int %i
|
||||
|
@@ -1,6 +1,6 @@
|
||||
; This test ensures that inlining an "empty" function does not destroy the CFG
|
||||
;
|
||||
; RUN: as < %s | opt -inline | dis | not grep br
|
||||
; RUN: llvm-as < %s | opt -inline | llvm-dis | not grep br
|
||||
|
||||
int %func(int %i) {
|
||||
ret int %i
|
||||
|
@@ -1,7 +1,7 @@
|
||||
; This checks to ensure that the inline pass deletes functions if they get
|
||||
; inlined into all of their callers.
|
||||
|
||||
; RUN: as < %s | opt -inline | dis | not grep %reallysmall
|
||||
; RUN: llvm-as < %s | opt -inline | llvm-dis | not grep %reallysmall
|
||||
|
||||
implementation
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
; Test that we can inline a simple function, turning the calls in it into invoke
|
||||
; instructions
|
||||
|
||||
; RUN: as < %s | opt -inline | dis | not grep 'call[^e]'
|
||||
; RUN: llvm-as < %s | opt -inline | llvm-dis | not grep 'call[^e]'
|
||||
|
||||
declare void %might_throw()
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
; Test that if an invoked function is inlined, and if that function cannot
|
||||
; throw, that the dead handler is now unreachable.
|
||||
|
||||
; RUN: as < %s | opt -inline -simplifycfg | dis | not grep UnreachableExceptionHandler
|
||||
; RUN: llvm-as < %s | opt -inline -simplifycfg | llvm-dis | not grep UnreachableExceptionHandler
|
||||
|
||||
declare void %might_throw()
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
; Test that any rethrown exceptions in an inlined function are automatically
|
||||
; turned into branches to the invoke destination.
|
||||
|
||||
; RUN: as < %s | opt -inline | dis | not grep 'call void %llvm.unwind'
|
||||
; RUN: llvm-as < %s | opt -inline | llvm-dis | not grep 'call void %llvm.unwind'
|
||||
|
||||
declare void %might_throw()
|
||||
declare void %llvm.unwind()
|
||||
|
Reference in New Issue
Block a user