llvm-6502/test/Analysis/LoadVN/casts.ll
Tanya Lattner dcd188d33f Remove llvm-upgrade.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47110 91177308-0d34-0410-b5e6-96231b3b80d8
2008-02-14 06:56:27 +00:00

14 lines
374 B
LLVM

; Check to make sure that Value Numbering doesn't merge casts of different
; flavors.
; RUN: llvm-as < %s | opt -load-vn -gcse | llvm-dis | \
; RUN: grep {\[sz\]ext} | count 2
declare void @external(i32)
define i32 @test_casts(i16 %x) {
%a = sext i16 %x to i32 ; <i32> [#uses=1]
%b = zext i16 %x to i32 ; <i32> [#uses=1]
call void @external( i32 %a )
ret i32 %b
}