[PATCH] D70706: [X86][NFC] Modify the testcase name
LiuChen via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 26 01:29:27 PST 2019
LiuChen3 created this revision.
LiuChen3 added reviewers: pengfei, craig.topper.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
LiuChen3 updated this revision to Diff 231021.
Fix liitle bug in the testcase, adjusting the order of input and output in the Intrinsic .
https://reviews.llvm.org/D70706
Files:
llvm/test/CodeGen/X86/fp-strict-scalar.ll
llvm/test/CodeGen/X86/fp80-strict-scalar.ll
Index: llvm/test/CodeGen/X86/fp80-strict-scalar.ll
===================================================================
--- llvm/test/CodeGen/X86/fp80-strict-scalar.ll
+++ llvm/test/CodeGen/X86/fp80-strict-scalar.ll
@@ -9,8 +9,8 @@
declare x86_fp80 @llvm.experimental.constrained.fpext.x86_fp80.f32(float, metadata)
declare x86_fp80 @llvm.experimental.constrained.fpext.x86_fp80.f64(double, metadata)
declare x86_fp80 @llvm.experimental.constrained.sqrt.x86_fp80(x86_fp80, metadata, metadata)
-declare float @llvm.experimental.constrained.fptrunc.x86_fp80.f32(x86_fp80, metadata, metadata)
-declare double @llvm.experimental.constrained.fptrunc.x86_fp80.f64(x86_fp80, metadata, metadata)
+declare float @llvm.experimental.constrained.fptrunc.f32.x86_fp80(x86_fp80, metadata, metadata)
+declare double @llvm.experimental.constrained.fptrunc.f64.x86_fp80(x86_fp80, metadata, metadata)
define x86_fp80 @fadd_fp80(x86_fp80 %a, x86_fp80 %b) nounwind strictfp {
; X86-LABEL: fadd_fp80:
@@ -106,7 +106,6 @@
%ret = call x86_fp80 @llvm.experimental.constrained.fpext.x86_fp80.f32(float %a,
metadata !"fpexcept.strict") #0
ret x86_fp80 %ret
-
}
define x86_fp80 @fpext_f64_to_fp80(double %a) nounwind strictfp {
@@ -123,7 +122,6 @@
%ret = call x86_fp80 @llvm.experimental.constrained.fpext.x86_fp80.f64(double %a,
metadata !"fpexcept.strict") #0
ret x86_fp80 %ret
-
}
define float @fptrunc_fp80_to_f32(x86_fp80 %a) nounwind strictfp {
@@ -142,11 +140,10 @@
; X64-NEXT: fstps -{{[0-9]+}}(%rsp)
; X64-NEXT: movss {{.*#+}} xmm0 = mem[0],zero,zero,zero
; X64-NEXT: retq
- %ret = call float @llvm.experimental.constrained.fptrunc.x86_fp80.f32(x86_fp80 %a,
+ %ret = call float @llvm.experimental.constrained.fptrunc.f32.x86_fp80(x86_fp80 %a,
metadata !"round.dynamic",
metadata !"fpexcept.strict") #0
ret float %ret
-
}
define double @fptrunc_fp80_to_f64(x86_fp80 %a) nounwind strictfp {
@@ -169,11 +166,10 @@
; X64-NEXT: fstpl -{{[0-9]+}}(%rsp)
; X64-NEXT: movsd {{.*#+}} xmm0 = mem[0],zero
; X64-NEXT: retq
- %ret = call double @llvm.experimental.constrained.fptrunc.x86_fp80.f64(x86_fp80 %a,
+ %ret = call double @llvm.experimental.constrained.fptrunc.f64.x86_fp80(x86_fp80 %a,
metadata !"round.dynamic",
metadata !"fpexcept.strict") #0
ret double %ret
-
}
define x86_fp80 @fsqrt_fp80(x86_fp80 %a) nounwind strictfp {
@@ -192,7 +188,6 @@
metadata !"round.dynamic",
metadata !"fpexcept.strict") #0
ret x86_fp80 %ret
-
}
attributes #0 = { strictfp }
Index: llvm/test/CodeGen/X86/fp-strict-scalar.ll
===================================================================
--- llvm/test/CodeGen/X86/fp-strict-scalar.ll
+++ llvm/test/CodeGen/X86/fp-strict-scalar.ll
@@ -16,7 +16,7 @@
declare double @llvm.experimental.constrained.fdiv.f64(double, double, metadata, metadata)
declare float @llvm.experimental.constrained.fdiv.f32(float, float, metadata, metadata)
declare double @llvm.experimental.constrained.fpext.f64.f32(float, metadata)
-declare float @llvm.experimental.constrained.fptrunc.f64.f32(double, metadata, metadata)
+declare float @llvm.experimental.constrained.fptrunc.f32.f64(double, metadata, metadata)
declare float @llvm.experimental.constrained.sqrt.f32(float, metadata, metadata)
declare double @llvm.experimental.constrained.sqrt.f64(double, metadata, metadata)
@@ -480,7 +480,7 @@
; X87-NEXT: popl %eax
; X87-NEXT: retl
%1 = load double, double* %val, align 8
- %res = call float @llvm.experimental.constrained.fptrunc.f64.f32(double %1,
+ %res = call float @llvm.experimental.constrained.fptrunc.f32.f64(double %1,
metadata !"round.dynamic",
metadata !"fpexcept.strict") #0
store float %res, float* %ret, align 4
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D70706.231021.patch
Type: text/x-patch
Size: 4428 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191126/a36af895/attachment.bin>
More information about the llvm-commits
mailing list