We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 860242d commit ca0cb24Copy full SHA for ca0cb24
llvm/test/Transforms/InstCombine/lshr.ll
@@ -444,6 +444,8 @@ define i32 @mul_splat_fold_wrong_mul_const(i32 %x) {
444
ret i32 %t
445
}
446
447
+; Negative test
448
+
449
define i32 @shl_add_lshr_multiuse(i32 %x, i32 %y, i32 %z) {
450
; CHECK-LABEL: @shl_add_lshr_multiuse(
451
; CHECK-NEXT: [[SHL:%.*]] = shl nuw i32 [[X:%.*]], [[Y:%.*]]
@@ -483,6 +485,8 @@ define i32 @mul_splat_fold_wrong_lshr_const(i32 %x) {
483
485
484
486
487
488
489
490
define i32 @mul_splat_fold_no_nuw(i32 %x) {
491
; CHECK-LABEL: @mul_splat_fold_no_nuw(
492
; CHECK-NEXT: [[M:%.*]] = mul nsw i32 [[X:%.*]], 65537
0 commit comments