Fix filecheck for Objective-C targets
Merge-request: KT-MR-6854 Merged-by: Vladimir Sukharev <Vladimir.Sukharev@jetbrains.com>
This commit is contained in:
@@ -6232,8 +6232,8 @@ fileCheckTest("filecheck_kt49847_generic_receiver") {
|
||||
fileCheckTest("filecheck_kt53261_inline_unbox") {
|
||||
annotatedSource = project.file('filecheck/kt53261/kt53261_inline_unbox.kt')
|
||||
enabled = project.globalTestArgs.contains('-opt')
|
||||
if (target.architecture == Architecture.ARM64) {
|
||||
checkPrefix = "CHECK-ARM64"
|
||||
if (isAppleTarget(project)) {
|
||||
checkPrefix = "CHECK-APPLE"
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -30,5 +30,5 @@ fun main(arr: Array<String>) {
|
||||
// CHECK-NOT: {{call|invoke}} <4 x float> @"kfun:kotlin.native#<Vector128-unbox>
|
||||
// CHECK-NOT: {{call|invoke}} %struct.ObjHeader* @"kfun:kotlin#<Result-unbox>
|
||||
|
||||
// On ARM64, generated functions IntToNSNumber and UIntToNSNumber may contain non-converted invocations of unbox functions.
|
||||
// CHECK-ARM64: IntToNSNumber
|
||||
// On APPLE targets, generated functions <T>ToNSNumber may contain non-converted invocations of unbox functions.
|
||||
// CHECK-APPLE: {{IntToNSNumber|LongToNSNumber|ByteToNSNumber|ShortToNSNumber|FloatToNSNumber|DoubleToNSNumber}}
|
||||
|
||||
Reference in New Issue
Block a user