[llvm] 6690de0 - [InstSimplify] add another test for NaN propagation; NFC
Sanjay Patel via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 18 06:20:40 PDT 2020
Author: Sanjay Patel
Date: 2020-09-18T09:20:26-04:00
New Revision: 6690de098e43ac5741297e435aece71b971b5bd2
URL: https://github.com/llvm/llvm-project/commit/6690de098e43ac5741297e435aece71b971b5bd2
DIFF: https://github.com/llvm/llvm-project/commit/6690de098e43ac5741297e435aece71b971b5bd2.diff
LOG: [InstSimplify] add another test for NaN propagation; NFC
Added:
Modified:
llvm/test/Transforms/InstSimplify/ConstProp/cast.ll
Removed:
################################################################################
diff --git a/llvm/test/Transforms/InstSimplify/ConstProp/cast.ll b/llvm/test/Transforms/InstSimplify/ConstProp/cast.ll
index b1b879da1fbd..7af07fa4b755 100644
--- a/llvm/test/Transforms/InstSimplify/ConstProp/cast.ll
+++ b/llvm/test/Transforms/InstSimplify/ConstProp/cast.ll
@@ -49,10 +49,10 @@ define float @nan_f64_trunc() {
ret float %f
}
-define <2 x half> @nan_v2f32_trunc() {
-; CHECK-LABEL: @nan_v2f32_trunc(
-; CHECK-NEXT: ret <2 x half> <half 0xH7C00, half 0xH7C37>
+define <3 x half> @nan_v3f64_trunc() {
+; CHECK-LABEL: @nan_v3f64_trunc(
+; CHECK-NEXT: ret <3 x half> <half 0xH7C00, half 0xH7C00, half 0xH7E00>
;
- %f = fptrunc <2 x float> <float 0x7FF0000100000000, float 0x7FF0DEAD00000000> to <2 x half>
- ret <2 x half> %f
+ %f = fptrunc <3 x double> <double 0x7FF0020000000000, double 0x7FF003FFFFFFFFFF, double 0x7FF8000000000001> to <3 x half>
+ ret <3 x half> %f
}
More information about the llvm-commits
mailing list