================
@@ -19,3 +20,13 @@ entry:
   %res = bitcast half %val2 to i16
   ret i16 %res
 }
+
+; Function Attrs: alwaysinline mustprogress nofree norecurse nosync nounwind 
willreturn memory(none)
+define <4 x i16> @test_vector_half4(<4 x half> nofpclass(nan inf) %p1) {
+entry:
+  ; CHECK: %[[#arg0:]] = OpFunctionParameter %[[#vec4_float_16]]
+  ; CHECK: %[[#]] = OpBitcast %[[#vec4_int_16]] %[[#arg0]]
+  %0 = bitcast <4 x half> %p1 to <4 x i16>
+  ;CHECK: OpReturnValue %[[#]]
----------------
farzonl wrote:

give the result of `OpBitcast` a name so you can check it in `OpReturnValue`

https://github.com/llvm/llvm-project/pull/131900
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to