mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
missed cast elimination
llvm-svn: 34490
This commit is contained in:
parent
b57ee1fc37
commit
72869dad9c
@ -1,6 +1,6 @@
|
|||||||
; Tests to make sure elimination of casts is working correctly
|
; Tests to make sure elimination of casts is working correctly
|
||||||
; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine -disable-output &&
|
; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine -disable-output &&
|
||||||
; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | not grep '\([sz]ext\)\|\(trunc\)'
|
; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | not grep '\([sz]ext\)\|\(trunc\)|\(ptrtoint\)'
|
||||||
|
|
||||||
target pointersize = 32
|
target pointersize = 32
|
||||||
|
|
||||||
@ -13,3 +13,9 @@ sbyte* %test1(sbyte* %t) {
|
|||||||
ret sbyte* %tv
|
ret sbyte* %tv
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool %test2(sbyte* %a, sbyte* %b) {
|
||||||
|
%tmpa = cast sbyte* %a to uint
|
||||||
|
%tmpb = cast sbyte* %b to uint
|
||||||
|
%r = seteq uint %tmpa, %tmpb
|
||||||
|
ret bool %r
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user