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 9481e45 commit cfdfb87Copy full SHA for cfdfb87
llvm/test/Transforms/InstCombine/or.ll
@@ -2061,12 +2061,12 @@ define i32 @or_zext_constant(i8 %a) {
2061
2062
define i32 @or_zext_minus_constant(i8 %a) {
2063
; CHECK-LABEL: @or_zext_minus_constant(
2064
-; CHECK-NEXT: [[TMP1:%.*]] = or i8 [[A:%.*]], 1
2065
-; CHECK-NEXT: [[OR:%.*]] = zext i8 [[TMP1]] to i32
2066
-; CHECK-NEXT: ret i32 [[OR]]
+; CHECK-NEXT: [[OR:%.*]] = zext i8 [[TMP1:%.*]] to i32
+; CHECK-NEXT: [[OR1:%.*]] = or i32 [[OR]], -9
+; CHECK-NEXT: ret i32 [[OR1]]
2067
;
2068
%zext = zext i8 %a to i32
2069
- %or = or i32 %zext, 1
+ %or = or i32 %zext, -9
2070
ret i32 %or
2071
}
2072
0 commit comments