mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-13 08:26:02 +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:
@@ -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*)
|
declare void %free(sbyte*)
|
||||||
|
|
||||||
|
@@ -9,7 +9,7 @@
|
|||||||
; be eliminated. In many cases the setCC is also eliminated based on the
|
; be eliminated. In many cases the setCC is also eliminated based on the
|
||||||
; constant value and the range of the casted value.
|
; 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:
|
implementation ; Functions:
|
||||||
|
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep shl &&
|
; 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!
|
; 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
|
target pointersize = 32
|
||||||
|
|
||||||
int *%test(int *%P) {
|
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
|
implementation
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
; This tests for various complex cast elimination cases instcombine should
|
; This tests for various complex cast elimination cases instcombine should
|
||||||
; handle.
|
; 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) {
|
bool %test1(int %X) {
|
||||||
%A = cast int %X to uint
|
%A = cast int %X to uint
|
||||||
|
Reference in New Issue
Block a user