Skip to content

Commit e66f7fd

Browse files
committed
Fix test/IRGen/condfail.sil and test/IRGen/c_layout.sil for s390x
1 parent b0a3727 commit e66f7fd

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

test/IRGen/c_layout.sil

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,22 @@ bb0:
237237
// CHECK-powerpc64le-LABEL: declare signext i32 @ints(i32 signext)
238238
// CHECK-powerpc64le-LABEL: declare zeroext i32 @unsigneds(i32 zeroext)
239239

240+
// CHECK-s390x-LABEL: define{{( protected)?}} void @testIntegerExtension
241+
// CHECK-s390x: call zeroext i8 @chareth(i8 zeroext %0)
242+
// CHECK-s390x: call zeroext i8 @signedChareth(i8 zeroext %1)
243+
// CHECK-s390x: call zeroext i8 @unsignedChareth(i8 zeroext %2)
244+
// CHECK-s390x: call signext i16 @eatMyShorts(i16 signext %3)
245+
// CHECK-s390x: call zeroext i16 @eatMyUnsignedShorts(i16 zeroext %4)
246+
// CHECK-s390x: call signext i32 @ints(i32 signext %5)
247+
// CHECK-s390x: call zeroext i32 @unsigneds(i32 zeroext %6)
248+
// CHECK-s390x-LABEL: declare zeroext i8 @chareth(i8 zeroext)
249+
// CHECK-s390x-LABEL: declare zeroext i8 @signedChareth(i8 zeroext)
250+
// CHECK-s390x-LABEL: declare zeroext i8 @unsignedChareth(i8 zeroext)
251+
// CHECK-s390x-LABEL: declare signext i16 @eatMyShorts(i16 signext)
252+
// CHECK-s390x-LABEL: declare zeroext i16 @eatMyUnsignedShorts(i16 zeroext)
253+
// CHECK-s390x-LABEL: declare signext i32 @ints(i32 signext)
254+
// CHECK-s390x-LABEL: declare zeroext i32 @unsigneds(i32 zeroext)
255+
240256
sil @testIntegerExtension : $@convention(thin) (CChar, CSignedChar, CUnsignedChar, CShort, CUnsignedShort, CInt, CUnsignedInt) -> () {
241257
entry(%a : $CChar, %b : $CSignedChar, %c : $CUnsignedChar, %d : $CShort, %e : $CUnsignedShort, %f : $CInt, %g : $CUnsignedInt):
242258
%h = function_ref @chareth : $@convention(c) (CChar) -> CChar

test/IRGen/condfail.sil

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,15 @@ import Swift
1313
// CHECK-armv7: trap
1414
// CHECK-powerpc64: trap
1515
// CHECK-powerpc64le: trap
16+
// CHECK-s390x: trap
1617
// CHECK-NOT: .cfi_endproc
1718
// CHECK-x86_64: ud2
1819
// CHECK-i386: ud2
1920
// CHECK-arm64: brk
2021
// CHECK-armv7: trap
2122
// CHECK-powerpc64: trap
2223
// CHECK-powerpc64le: trap
24+
// CHECK-s390x: trap
2325
// CHECK: .cfi_endproc
2426
sil hidden @test_cond_fail : $@convention(thin) (Int32) -> Int32 {
2527
bb0(%0 : $Int32):

0 commit comments

Comments
 (0)