Skip to content

Commit 761cd5f

Browse files
committed
Pre-commit tests (NFC)
1 parent 39ad315 commit 761cd5f

File tree

1 file changed

+19
-0
lines changed
  • llvm/test/Analysis/CostModel/AArch64

1 file changed

+19
-0
lines changed

llvm/test/Analysis/CostModel/AArch64/cmp.ll

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,14 @@ define void @andcmp() {
5353
; CHECK-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: %c32 = icmp eq i32 %a32, 0
5454
; CHECK-NEXT: Cost Model: Found costs of 1 for: %a64 = and i64 undef, undef
5555
; CHECK-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: %c64 = icmp ne i64 %a64, 0
56+
; CHECK-NEXT: Cost Model: Found costs of 1 for: %c32ge = icmp sge i32 %a32, 1
57+
; CHECK-NEXT: Cost Model: Found costs of 1 for: %c32le = icmp slt i32 %a32, 1
58+
; CHECK-NEXT: Cost Model: Found costs of 1 for: %c32leneg = icmp sle i32 %a32, -1
59+
; CHECK-NEXT: Cost Model: Found costs of 1 for: %c32gtneg = icmp sgt i32 %a32, -1
60+
; CHECK-NEXT: Cost Model: Found costs of 1 for: %c64ge = icmp sge i64 %a64, 1
61+
; CHECK-NEXT: Cost Model: Found costs of 1 for: %c64le = icmp slt i64 %a64, 1
62+
; CHECK-NEXT: Cost Model: Found costs of 1 for: %c64leneg = icmp sle i64 %a64, -1
63+
; CHECK-NEXT: Cost Model: Found costs of 1 for: %c64gtneg = icmp sgt i64 %a64, -1
5664
; CHECK-NEXT: Cost Model: Found costs of RThru:2 CodeSize:1 Lat:1 SizeLat:1 for: %a128 = and i128 undef, undef
5765
; CHECK-NEXT: Cost Model: Found costs of RThru:2 CodeSize:1 Lat:1 SizeLat:1 for: %c128 = icmp eq i128 %a128, 0
5866
; CHECK-NEXT: Cost Model: Found costs of 1 for: %av16i8 = and <16 x i8> undef, undef
@@ -73,6 +81,17 @@ define void @andcmp() {
7381
%c32 = icmp eq i32 %a32, 0
7482
%a64 = and i64 undef, undef
7583
%c64 = icmp ne i64 %a64, 0
84+
85+
%c32ge = icmp sge i32 %a32, 1
86+
%c32le = icmp slt i32 %a32, 1
87+
%c32leneg = icmp sle i32 %a32, -1
88+
%c32gtneg = icmp sgt i32 %a32, -1
89+
90+
%c64ge = icmp sge i64 %a64, 1
91+
%c64le = icmp slt i64 %a64, 1
92+
%c64leneg = icmp sle i64 %a64, -1
93+
%c64gtneg = icmp sgt i64 %a64, -1
94+
7695
%a128 = and i128 undef, undef
7796
%c128 = icmp eq i128 %a128, zeroinitializer
7897
%av16i8 = and <16 x i8> undef, undef

0 commit comments

Comments
 (0)