arsenm added inline comments.

================
Comment at: clang/test/CodeGen/strictfp-elementwise-bulitins.cpp:13-14
+// CHECK-NEXT:    [[ADD:%.*]] = tail call <2 x float> 
@llvm.experimental.constrained.fadd.v2f32(<2 x float> [[TMP0]], <2 x float> 
[[TMP1]], metadata !"round.dynamic", metadata !"fpexcept.strict") 
#[[ATTR4:[0-9]+]]
+// CHECK-NEXT:    [[TMP2:%.*]] = bitcast <2 x float> [[ADD]] to double
+// CHECK-NEXT:    ret double [[TMP2]]
+//
----------------
sepavloff wrote:
> Why vector type is bitcasted to scalar? The function must return <2 x float>, 
> no?
I assume this is some ABI thing. It doesn't happen for other targets and  the 
actual code is correct. I've avoided it by using float4 instead 


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D153233/new/

https://reviews.llvm.org/D153233

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to