1 ; RUN: opt < %s -passes=instcombine -S | FileCheck %s
3 ; This cannot be turned into a sign extending cast!
5 define i64 @test(i64 %X) {
6 %Y = shl i64 %X, 16 ; <i64> [#uses=1]
7 ; CHECK: %Y = shl i64 %X, 16
8 %Z = ashr i64 %Y, 16 ; <i64> [#uses=1]
9 ; CHECK: %Z = ashr exact i64 %Y, 16