Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SR-14107] [rebranch] IRGet test failures on iphonesimulator-i386 #56493

Closed
xymus opened this issue Jan 25, 2021 · 2 comments
Closed

[SR-14107] [rebranch] IRGet test failures on iphonesimulator-i386 #56493

xymus opened this issue Jan 25, 2021 · 2 comments
Assignees
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself

Comments

@xymus
Copy link
Contributor

xymus commented Jan 25, 2021

Previous ID SR-14107
Radar rdar://problem/73591469
Original Reporter @xymus
Type Bug
Status Closed
Resolution Done
Additional Detail from JIRA
Votes 0
Component/s Compiler
Labels Bug
Assignee @aschwaighofer
Priority Medium

md5: 4ae3bc14955b8e9014461785ea2f8a45

relates to:

  • SR-14105 [rebranch] C++ interop test failures on iOS simulator

Issue Description:

Two IRGen tests are failing on rebranch for iphonesimulator-i386.

22:17:47   Swift(iphonesimulator-i386) :: IRGen/objc_simd.sil
22:17:47   Swift(iphonesimulator-i386) :: IRGen/pic.swift 

Full log: https://ci.swift.org/view/Swift%20rebranch/job/oss-swift-rebranch_tools-RA_stdlib-RDA_test-simulator/2/console

Likely other related failures: https://bugs.swift.org/browse/SR-14105

22:17:08 FAIL: Swift(iphonesimulator-i386) :: IRGen/objc_simd.sil (13808 of 14079)
22:17:08 ******************** TEST 'Swift(iphonesimulator-i386) :: IRGen/objc_simd.sil' FAILED ********************
22:17:08 Script:
22:17:08 --
22:17:08 : 'RUN: at line 1';   /Volumes/swift-ci/jenkins/workspace/oss-swift-rebranch_tools-RA_stdlib-RDA_test-simulator/Ninja-ReleaseAssert/swift-macosx-x86_64/bin/swift-frontend -target i386-apple-ios7.0-simulator  -module-cache-path /Volumes/swift-ci/jenkins/workspace/oss-swift-rebranch_tools-RA_stdlib-RDA_test-simulator/Ninja-ReleaseAssert/swift-macosx-x86_64/swift-test-results/i386-apple-ios7.0-simulator/clang-module-cache -sdk '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk' -swift-version 4  -ignore-module-source-info -typo-correction-limit 10   -enable-source-import -sdk '/Volumes/swift-ci/jenkins/workspace/oss-swift-rebranch_tools-RA_stdlib-RDA_test-simulator/swift/test/Inputs/clang-importer-sdk' -I '/Volumes/swift-ci/jenkins/workspace/oss-swift-rebranch_tools-RA_stdlib-RDA_test-simulator/swift/test/Inputs/clang-importer-sdk/swift-modules'   -emit-ir /Volumes/swift-ci/jenkins/workspace/oss-swift-rebranch_tools-RA_stdlib-RDA_test-simulator/swift/test/IRGen/objc_simd.sil | /Applications/Xcode.app/Contents/Developer/usr/bin/python3 /Volumes/swift-ci/jenkins/workspace/oss-swift-rebranch_tools-RA_stdlib-RDA_test-simulator/swift/utils/PathSanitizingFileCheck --sanitize BUILD_DIR=/Volumes/swift-ci/jenkins/workspace/oss-swift-rebranch_tools-RA_stdlib-RDA_test-simulator/Ninja-ReleaseAssert/swift-macosx-x86_64 --sanitize SOURCE_DIR=/Volumes/swift-ci/jenkins/workspace/oss-swift-rebranch_tools-RA_stdlib-RDA_test-simulator/swift --use-filecheck /Volumes/swift-ci/jenkins/workspace/oss-swift-rebranch_tools-RA_stdlib-RDA_test-simulator/Ninja-ReleaseAssert/llvm-macosx-x86_64/bin/FileCheck  /Volumes/swift-ci/jenkins/workspace/oss-swift-rebranch_tools-RA_stdlib-RDA_test-simulator/swift/test/IRGen/objc_simd.sil --check-prefix=i386 --check-prefix=i386-iphonesimulator
22:17:08 --
22:17:08 Exit Code: 1
22:17:08 
22:17:08 Command Output (stderr):
22:17:08 --
22:17:08 /Volumes/swift-ci/jenkins/workspace/oss-swift-rebranch_tools-RA_stdlib-RDA_test-simulator/swift/test/IRGen/objc_simd.sil:57:16: error: i386-LABEL: expected string not found in input
22:17:08 // i386-LABEL: define{{( dllexport)?}}{{( protected)?}} swiftcc void @simd_native_args(%T4simd6float4V* noalias nocapture sret %0, %T4simd6float4V* noalias nocapture dereferenceable({{.*}}) %1)
22:17:08                ^
22:17:08 <stdin>:58:54: note: scanning from here
22:17:08 define <2 x i64> @simd_c_args_float3(<3 x float> %0) #&#8203;0 {
22:17:08                                                      ^
22:17:08 
22:17:08 Input file: <stdin>
22:17:08 Check file: /Volumes/swift-ci/jenkins/workspace/oss-swift-rebranch_tools-RA_stdlib-RDA_test-simulator/swift/test/IRGen/objc_simd.sil
22:17:08 
22:17:08 -dump-input=help explains the following input dump.
22:17:08 
22:17:08 Input was:
22:17:08 <<<<<<
22:17:08           .
22:17:08           .
22:17:08           .
22:17:08          53: declare void @llvm.lifetime.start.p0i8(i64 immarg, i8* nocapture) #&#8203;1
22:17:08          54: 
22:17:08          55: ; Function Attrs: argmemonly nofree nosync nounwind willreturn
22:17:08          56: declare void @llvm.lifetime.end.p0i8(i64 immarg, i8* nocapture) #&#8203;1
22:17:08          57: 
22:17:08          58: define <2 x i64> @simd_c_args_float3(<3 x float> %0) #&#8203;0 {
22:17:08 label:57                                                          X~~~ error: no match found
22:17:08          59: entry:
22:17:08 label:57     ~~~~~~
22:17:08          60:  %.coerced = alloca <3 x float>, align 16
22:17:08 label:57     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
22:17:08          61:  %.coercion.coerced = alloca <2 x i64>, align 16
22:17:08 label:57     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
22:17:08          62:  %1 = bitcast <3 x float>* %.coerced to i8*
22:17:08 label:57     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
22:17:08          63:  call void @llvm.lifetime.start.p0i8(i64 96, i8* %1)
22:17:08 label:57     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
22:17:08           .
22:17:08           .
22:17:08           .
22:17:08 >>>>>>
22:17:08 
22:17:08 --
22:17:08 
22:17:08 ********************
22:17:12 FAIL: Swift(iphonesimulator-i386) :: IRGen/pic.swift (13840 of 14079)
22:17:12 ******************** TEST 'Swift(iphonesimulator-i386) :: IRGen/pic.swift' FAILED ********************
22:17:12 Script:
22:17:12 --
22:17:12 : 'RUN: at line 8';   /Volumes/swift-ci/jenkins/workspace/oss-swift-rebranch_tools-RA_stdlib-RDA_test-simulator/Ninja-ReleaseAssert/swift-macosx-x86_64/bin/swift-frontend -target i386-apple-ios7.0-simulator  -module-cache-path /Volumes/swift-ci/jenkins/workspace/oss-swift-rebranch_tools-RA_stdlib-RDA_test-simulator/Ninja-ReleaseAssert/swift-macosx-x86_64/swift-test-results/i386-apple-ios7.0-simulator/clang-module-cache -sdk '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk'  -swift-version 4  -ignore-module-source-info -typo-correction-limit 10  /Volumes/swift-ci/jenkins/workspace/oss-swift-rebranch_tools-RA_stdlib-RDA_test-simulator/swift/test/IRGen/pic.swift -module-name main -S -o - | /Applications/Xcode.app/Contents/Developer/usr/bin/python3 /Volumes/swift-ci/jenkins/workspace/oss-swift-rebranch_tools-RA_stdlib-RDA_test-simulator/swift/utils/PathSanitizingFileCheck --sanitize BUILD_DIR=/Volumes/swift-ci/jenkins/workspace/oss-swift-rebranch_tools-RA_stdlib-RDA_test-simulator/Ninja-ReleaseAssert/swift-macosx-x86_64 --sanitize SOURCE_DIR=/Volumes/swift-ci/jenkins/workspace/oss-swift-rebranch_tools-RA_stdlib-RDA_test-simulator/swift --use-filecheck /Volumes/swift-ci/jenkins/workspace/oss-swift-rebranch_tools-RA_stdlib-RDA_test-simulator/Ninja-ReleaseAssert/llvm-macosx-x86_64/bin/FileCheck  -check-prefix=i386 -check-prefix=i386-iphonesimulator /Volumes/swift-ci/jenkins/workspace/oss-swift-rebranch_tools-RA_stdlib-RDA_test-simulator/swift/test/IRGen/pic.swift
22:17:12 --
22:17:12 Exit Code: 1
22:17:12 
22:17:12 Command Output (stderr):
22:17:12 --
22:17:12 /Volumes/swift-ci/jenkins/workspace/oss-swift-rebranch_tools-RA_stdlib-RDA_test-simulator/swift/test/IRGen/pic.swift:22:10: error: i386: expected string not found in input
22:17:12 // i386: movl {{_?}}$s4main6globalSivp-[[PIC_BLOCK]]([[PIC_REG]]), {{%[a-z]+}}
22:17:12          ^
22:17:12 <stdin>:35:2: note: scanning from here
22:17:12  movl %ecx, -24(%ebp)
22:17:12  ^
22:17:12 <stdin>:35:2: note: with "PIC_BLOCK" equal to "L1\\$pb"
22:17:12  movl %ecx, -24(%ebp)
22:17:12  ^
22:17:12 <stdin>:35:2: note: with "PIC_REG" equal to "%ecx"
22:17:12  movl %ecx, -24(%ebp)
22:17:12  ^
22:17:12 <stdin>:47:2: note: possible intended match here
22:17:12  movl _$s4main6globalSivp-L1$pb(%eax), %eax
22:17:12  ^
22:17:12 
22:17:12 Input file: <stdin>
22:17:12 Check file: /Volumes/swift-ci/jenkins/workspace/oss-swift-rebranch_tools-RA_stdlib-RDA_test-simulator/swift/test/IRGen/pic.swift
22:17:12 
22:17:12 -dump-input=help explains the following input dump.
22:17:12 
22:17:12 Input was:
22:17:12 <<<<<<
22:17:12             .
22:17:12             .
22:17:12             .
22:17:12            30:  .cfi_def_cfa_register %ebp
22:17:12            31:  subl $40, %esp
22:17:12            32:  calll L1$pb
22:17:12            33: L1$pb:
22:17:12            34:  popl %ecx
22:17:12            35:  movl %ecx, -24(%ebp)
22:17:12 check:22'0      X~~~~~~~~~~~~~~~~~~~ error: no match found
22:17:12 check:22'1                           with "PIC_BLOCK" equal to "L1\\$pb"
22:17:12 check:22'2                           with "PIC_REG" equal to "%ecx"
22:17:12            36:  movl %esp, %eax
22:17:12 check:22'0     ~~~~~~~~~~~~~~~~
22:17:12            37:  leal -12(%ebp), %edx
22:17:12 check:22'0     ~~~~~~~~~~~~~~~~~~~~~
22:17:12            38:  movl %edx, -20(%ebp)
22:17:12 check:22'0     ~~~~~~~~~~~~~~~~~~~~~
22:17:12            39:  movl %edx, 4(%eax)
22:17:12 check:22'0     ~~~~~~~~~~~~~~~~~~~
22:17:12            40:  leal _$s4main6globalSivp-L1$pb(%ecx), %ecx
22:17:12 check:22'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
22:17:12            41:  movl %ecx, (%eax)
22:17:12 check:22'0     ~~~~~~~~~~~~~~~~~~
22:17:12            42:  movl $0, 12(%eax)
22:17:12 check:22'0     ~~~~~~~~~~~~~~~~~~
22:17:12            43:  movl $32, 8(%eax)
22:17:12 check:22'0     ~~~~~~~~~~~~~~~~~~
22:17:12            44:  calll _swift_beginAccess
22:17:12 check:22'0     ~~~~~~~~~~~~~~~~~~~~~~~~~
22:17:12            45:  movl -24(%ebp), %eax
22:17:12 check:22'0     ~~~~~~~~~~~~~~~~~~~~~
22:17:12            46:  movl -20(%ebp), %ecx
22:17:12 check:22'0     ~~~~~~~~~~~~~~~~~~~~~
22:17:12            47:  movl _$s4main6globalSivp-L1$pb(%eax), %eax
22:17:12 check:22'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
22:17:12 check:22'3      ?                                          possible intended match
22:17:12            48:  movl %eax, -16(%ebp)
22:17:12 check:22'0     ~~~~~~~~~~~~~~~~~~~~~
22:17:12            49:  movl %esp, %eax
22:17:12 check:22'0     ~~~~~~~~~~~~~~~~
22:17:12            50:  movl %ecx, (%eax)
22:17:12 check:22'0     ~~~~~~~~~~~~~~~~~~
22:17:12            51:  calll _swift_endAccess
22:17:12 check:22'0     ~~~~~~~~~~~~~~~~~~~~~~~
22:17:12            52:  movl -16(%ebp), %eax
22:17:12 check:22'0     ~~~~~~~~~~~~~~~~~~~~~
22:17:12             .
22:17:12             .
22:17:12             .
22:17:12 >>>>>>
22:17:12 
22:17:12 --
22:17:12 
22:17:12 ******************** 
@xymus
Copy link
Contributor Author

xymus commented Jan 25, 2021

@swift-ci create

@aschwaighofer
Copy link
Member

Fixed e8f5f62

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself
Projects
None yet
Development

No branches or pull requests

2 participants