> On Dec 8, 2017, at 1:49 AM, Atul Sowani via swift-dev <swift-dev@swift.org> 
> wrote:
> 
> Hi,
> 
> I am getting following failure while running IRGen/objc_simd.sil on ppc64le 
> (Ubuntu 16.04).
> 
> # /bin/bash objc_simd.sil.script
> /root/swift-source/swift/test/IRGen/objc_simd.sil:60:23: error: expected 
> string not found in input
> // powerpc64le-LABEL: define{{( protected)?}} void 
> @simd_native_args(%T4simd6float4V* noalias nocapture sret, %T4simd6float4V* 
> noalias nocapture dereferenceable({{.*}}))
>                       ^
> <stdin>:56:63: note: scanning from here
> define protected <3 x float> @simd_c_args_float3(<3 x float>) #0 {
> 
> Following two lines from IRGen/objc_simd.sil file seem to be causing this 
> issue:
> // powerpc64le-LABEL: define{{( protected)?}} void 
> @simd_native_args(%T4simd6float4V* noalias nocapture sret, %T4simd6float4V* 
> noalias nocapture dereferenceable({{.*}}))
> 
> // powerpc64le-LABEL: define{{( protected)?}} swiftcc { float, float, float } 
> @simd_native_args_float3(float, float, float)
> 
> I am not a swift programmer, I am just trying to port swift to ppc64le. I 
> think these are just comments? I actually don't understand what these lines 
> and the code following these lines. Is there anything glaringly obvious here 
> that is causing this issue? What is the good way of approaching this issue?

This is a FileCheck-based test. The test compiles the code and pipes the result 
through FileCheck. FileCheck verifies that the output contains the text 
specified in the comments. 

The failure here is that one of the expected output lines was not found. 
FileCheck expected to find the "…void @simd_native_args…" text in the output 
somewhere on or after the "…simd_c_args_float3…" line. The expected output was 
not found so the test failed.

You can read more about FileCheck's syntax here:
https://llvm.org/docs/CommandGuide/FileCheck.html

The likely problems are:
1. the ppc64le compiler is not generating the correct code, or
2. the compiler is correct but the test's expected output on ppc64le is 
incorrect.


-- 
Greg Parker     gpar...@apple.com <mailto:gpar...@apple.com>     Runtime 
Wrangler


_______________________________________________
swift-dev mailing list
swift-dev@swift.org
https://lists.swift.org/mailman/listinfo/swift-dev

Reply via email to