1; NOTE: Assertions have been autogenerated by utils/update_test_checks.py 2; RUN: opt < %s -passes=instcombine -S | FileCheck %s 3 4@c = external constant i8 5@c2 = external constant i8 6 7define i64 @testfunc() { 8; CHECK-LABEL: @testfunc( 9; CHECK-NEXT: [[SHL1:%.*]] = shl nuw i64 1, ptrtoint (ptr @c2 to i64) 10; CHECK-NEXT: [[SHL2:%.*]] = shl i64 [[SHL1]], ptrtoint (ptr @c to i64) 11; CHECK-NEXT: ret i64 [[SHL2]] 12; 13 %shl1 = shl i64 1, ptrtoint (ptr @c2 to i64) 14 %shl2 = shl i64 %shl1, ptrtoint (ptr @c to i64) 15 ret i64 %shl2 16} 17