Skip to content

Commit 749552f

Browse files
authored
Merge pull request #22568 from atrick/fix-ubp-test
2 parents baf2e4e + 23a68b9 commit 749552f

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

test/SILOptimizer/unsafebufferpointer.swift

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,9 @@ public func testCount(_ x: UnsafeBufferPointer<UInt>) -> Int {
5656
//
5757
// CHECK: ; <label>:[[LOOP]]:
5858
// CHECK: phi float [ 0.000000e+00
59-
// CHECK: add nuw i64 %{{.*}}, 1
6059
// CHECK: load float, float*
6160
// CHECK: fadd float
62-
// CHECK: [[CMP:%[0-9]+]] = icmp eq i64 %{{.*}}, %{{.*}}
61+
// CHECK: [[CMP:%[0-9]+]] = icmp eq
6362
// CHECK: br i1 [[CMP]], label %.loopexit, label %[[LOOP]]
6463
public func testSubscript(_ ubp: UnsafeBufferPointer<Float>) -> Float {
6564
var sum: Float = 0
@@ -80,12 +79,10 @@ public func testSubscript(_ ubp: UnsafeBufferPointer<Float>) -> Float {
8079
//
8180
// CHECK: ; <label>:[[LOOP]]:
8281
// CHECK: phi i64 [ 0
83-
// CHECK: phi i64 [ 0
84-
// CHECK: add nuw i64 %{{.*}}, 1
8582
// CHECK: load i8, i8*
8683
// CHECK: zext i8 %{{.*}} to i64
8784
// CHECK: add i64
88-
// CHECK: [[CMP:%[0-9]+]] = icmp eq i64 %{{.*}}, %{{.*}}
85+
// CHECK: [[CMP:%[0-9]+]] = icmp eq
8986
// CHECK: br i1 [[CMP]], label %[[RET]], label %[[LOOP]]
9087
public func testSubscript(_ ubp: UnsafeRawBufferPointer) -> Int64 {
9188
var sum: Int64 = 0

0 commit comments

Comments
 (0)