mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-03 09:21:13 +00:00
For PR950:
Changes for new cast instructions that are backwards compatible. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31707 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d718559c7f
commit
759bfd0934
@ -1,4 +1,4 @@
|
||||
; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep call | not grep cast
|
||||
; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep call | notcast
|
||||
|
||||
declare void %free(sbyte*)
|
||||
|
||||
|
@ -9,7 +9,7 @@
|
||||
; be eliminated. In many cases the setCC is also eliminated based on the
|
||||
; constant value and the range of the casted value.
|
||||
;
|
||||
; RUN: llvm-as %s -o - | opt -instcombine | llvm-dis | not grep 'cast.*int'
|
||||
; RUN: llvm-as %s -o - | opt -instcombine | llvm-dis | notcast '.*int'
|
||||
|
||||
implementation ; Functions:
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep shl &&
|
||||
; RUN: llvm-as < %s | opt -instcombine | llvm-dis | not grep cast
|
||||
; RUN: llvm-as < %s | opt -instcombine | llvm-dis | notcast
|
||||
|
||||
; This cannot be turned into a sign extending cast!
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
; RUN: llvm-as < %s | opt -instcombine | llvm-dis | not grep cast
|
||||
; RUN: llvm-as < %s | opt -instcombine | llvm-dis | notcast
|
||||
target pointersize = 32
|
||||
|
||||
int *%test(int *%P) {
|
||||
|
@ -1,4 +1,4 @@
|
||||
; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep call | not grep cast
|
||||
; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep call | notcast
|
||||
|
||||
implementation
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
; This tests for various complex cast elimination cases instcombine should
|
||||
; handle.
|
||||
|
||||
; RUN: llvm-as < %s | opt -instcombine | llvm-dis | not grep cast
|
||||
; RUN: llvm-as < %s | opt -instcombine | llvm-dis | notcast
|
||||
|
||||
bool %test1(int %X) {
|
||||
%A = cast int %X to uint
|
||||
|
Loading…
Reference in New Issue
Block a user