@@ -237,6 +237,22 @@ bb0:
237
237
// CHECK-powerpc64le-LABEL: declare signext i32 @ints(i32 signext)
238
238
// CHECK-powerpc64le-LABEL: declare zeroext i32 @unsigneds(i32 zeroext)
239
239
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
+
240
256
sil @testIntegerExtension : $@convention(thin) (CChar, CSignedChar, CUnsignedChar, CShort, CUnsignedShort, CInt, CUnsignedInt) -> () {
241
257
entry(%a : $CChar, %b : $CSignedChar, %c : $CUnsignedChar, %d : $CShort, %e : $CUnsignedShort, %f : $CInt, %g : $CUnsignedInt):
242
258
%h = function_ref @chareth : $@convention(c) (CChar) -> CChar
0 commit comments