================
@@ -30,27 +30,27 @@ entry:
define zeroext i1 @addiCmpiUnsignedOverflow(i32 zeroext %x) {
entry:
- %add = add nuw i32 110, %x
- %cmp = icmp ugt i32 %add, 100
+ %add = add nuw i32 110, %x
+ %cmp = icmp ugt i32 %add, 200
ret i1 %cmp
; CHECK: === addiCmpiUnsignedOverflow
; CHECK: Optimized lowered selection DAG: %bb.0
'addiCmpiUnsignedOverflow:entry'
; CHECK: [[REG1:t[0-9]+]]: i32 = truncate {{t[0-9]+}}
; CHECK: [[REG2:t[0-9]+]]: i32 = add nuw [[REG1]], Constant:i32<110>
-; CHECK: {{t[0-9]+}}: i1 = setcc [[REG2]], Constant:i32<100>, setugt:ch
+; CHECK: {{t[0-9]+}}: i1 = setcc [[REG2]], Constant:i32<200>, setugt:ch
}
define zeroext i1 @addiCmpiSignedOverflow(i16 signext %x) {
entry:
- %add = add nsw i16 16, %x
- %cmp = icmp sgt i16 %add, -32767
+ %add = add nsw i16 16, %x
+ %cmp = icmp sgt i16 %add, 30
----------------
mgudim wrote:
and this?
https://github.com/llvm/llvm-project/pull/181110
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits