1111// so these tests will need to be adapted for that.
1212// XFAIL: OS=linux-android && CPU=aarch64
1313
14+
15+ // CHECK: [[S1:^@".*"]] = {{.*}} c"a{{.*}}+{{.*}}={{.*}}\00"
16+ // CHECK: [[S2:^@".*"]] = {{.*}} c"abcd{{.*}}fgh{{.*}}klmno{{.*}}qr\00"
17+
1418// NOTE: 25185.byteSwapped = 0x62 'a', 0x61 'b'
1519// CHECK-LABEL: test_ascii_scalar_scalar2
1620// CHECK: ret { i64, ptr } { i64 25185, ptr inttoptr (i64 -{{[0-9]+}} to ptr) }
@@ -42,7 +46,8 @@ public func test_strng_strng2() -> String {
4246
4347// NOTE: 1152921504606847019 = 43 (code-unit length) | `isTailAllocated` perf flag
4448// CHECK-LABEL: test_scalar_strng
45- // CHECK: ret { i64, ptr } { i64 1152921504606847019, ptr inttoptr {{.*}}i64 -{{[0-9]+}}{{.*}} to ptr) }
49+ // CHECK-DAG: 1152921504606847019
50+ // CHECK-DAG: [[S1]]
4651public func test_scalar_strng( ) -> String {
4752 return " a " + " 👨🏿💼+🧙🏿♂️=🕴🏿 "
4853}
@@ -56,7 +61,8 @@ public func test_strng_concat_smol() -> String {
5661
5762// NOTE: 1152921504606846999 = 23 (code-unit length) | `isTailAllocated` perf flag
5863// CHECK-LABEL: test_strng_concat_large
59- // CHECK: ret { i64, ptr } { i64 1152921504606846999, ptr inttoptr {{.*}}i64 -{{[0-9]+}}{{.*}} to ptr) }
64+ // CHECK-DAG: 1152921504606846999
65+ // CHECK-DAG: [[S2]]
6066public func test_strng_concat_large( ) -> String {
6167 return " a " + " bc " + " dèf " + " ghī " + " jklmn " + " o " + " 𝛒qr "
6268}
0 commit comments