1 ; Tests to make sure elimination of casts is working correctly 2 ; This test is for Integer BitWidth <= 64 && BitWidth % 2 != 0. 3 ; RUN: opt < %s -instcombine -S | FileCheck %s 4 5 define i47 @test_sext_zext(i11 %A) { 6 %c1 = zext i11 %A to i39 7 %c2 = sext i39 %c1 to i47 8 ret i47 %c2 9 ; CHECK: %c2 = zext i11 %A to i47 10 ; CHECK: ret i47 %c2 11 } 12