mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-21 00:32:23 +00:00
853075e762
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@83825 91177308-0d34-0410-b5e6-96231b3b80d8
14 lines
345 B
LLVM
14 lines
345 B
LLVM
; RUN: opt < %s -instcombine -S | FileCheck %s
|
|
|
|
; This cannot be turned into a sign extending cast!
|
|
|
|
define i64 @test(i64 %X) {
|
|
%Y = shl i64 %X, 16 ; <i64> [#uses=1]
|
|
; CHECK: %Y = shl i64 %X, 16
|
|
%Z = ashr i64 %Y, 16 ; <i64> [#uses=1]
|
|
; CHECK: %Z = ashr i64 %Y, 16
|
|
ret i64 %Z
|
|
; CHECK: ret i64 %Z
|
|
}
|
|
|