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