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 e158add commit 1d3e38bCopy full SHA for 1d3e38b
llvm/test/Transforms/NewGVN/flags-simplify.ll
@@ -42,6 +42,21 @@ entry: ; preds = %if.then
42
ret i64 %conv7
43
}
44
45
+define i64 @lshr_lsh_nuw(i64 %tmp) {
46
+; CHECK-LABEL: @lshr_lsh_nuw(
47
+; CHECK-NEXT: entry:
48
+; CHECK-NEXT: [[CONV3:%.*]] = shl i64 [[TMP:%.*]], 32
49
+; CHECK-NEXT: store i64 [[CONV3]], ptr @f, align 8
50
+; CHECK-NEXT: ret i64 [[TMP]]
51
+;
52
+entry:
53
+ %conv3 = shl nuw i64 %tmp, 32
54
+ store i64 %conv3, i64* @f, align 8
55
+ %sext = shl i64 %tmp, 32
56
+ %lshr = lshr i64 %sext, 32
57
+ ret i64 %lshr
58
+}
59
+
60
define i32 @udiv_exact_mul(i32 %x, i32 %y, i1 %arg2) {
61
; CHECK-LABEL: @udiv_exact_mul(
62
; CHECK-NEXT: br i1 [[ARG2:%.*]], label [[BB2:%.*]], label [[BB1:%.*]]
0 commit comments