From 4562f420cd4bb62a5d15f51e18e1bc60a217c62b Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Tue, 5 Feb 2019 21:47:42 +0000 Subject: [PATCH] [X86] Regenerate tests missed in r353061. NFC We now print the implicit %st register on these instruction, but since they occur at the end of the line, FileCheck didn't see they were missing. llvm-svn: 353222 --- llvm/test/CodeGen/X86/fp-cvt.ll | 20 +++++------ llvm/test/CodeGen/X86/scalar-fp-to-i64.ll | 60 +++++++++++++++---------------- 2 files changed, 40 insertions(+), 40 deletions(-) diff --git a/llvm/test/CodeGen/X86/fp-cvt.ll b/llvm/test/CodeGen/X86/fp-cvt.ll index 71738cb..92bff03 100644 --- a/llvm/test/CodeGen/X86/fp-cvt.ll +++ b/llvm/test/CodeGen/X86/fp-cvt.ll @@ -449,7 +449,7 @@ define i64 @fptoui_i64_fp80(x86_fp80 %a0) nounwind { ; X86-NEXT: fldt 8(%ebp) ; X86-NEXT: flds {{\.LCPI.*}} ; X86-NEXT: fld %st(1) -; X86-NEXT: fsub %st(1) +; X86-NEXT: fsub %st(1), %st ; X86-NEXT: fxch %st(1) ; X86-NEXT: fucomp %st(2) ; X86-NEXT: fnstsw %ax @@ -482,10 +482,10 @@ define i64 @fptoui_i64_fp80(x86_fp80 %a0) nounwind { ; X64-X87-NEXT: fldt {{[0-9]+}}(%rsp) ; X64-X87-NEXT: flds {{.*}}(%rip) ; X64-X87-NEXT: fld %st(1) -; X64-X87-NEXT: fsub %st(1) +; X64-X87-NEXT: fsub %st(1), %st ; X64-X87-NEXT: xorl %eax, %eax ; X64-X87-NEXT: fxch %st(1) -; X64-X87-NEXT: fucompi %st(2) +; X64-X87-NEXT: fucompi %st(2), %st ; X64-X87-NEXT: fcmovnbe %st(1), %st ; X64-X87-NEXT: fstp %st(1) ; X64-X87-NEXT: fnstcw -{{[0-9]+}}(%rsp) @@ -505,10 +505,10 @@ define i64 @fptoui_i64_fp80(x86_fp80 %a0) nounwind { ; X64-SSSE3-NEXT: fldt {{[0-9]+}}(%rsp) ; X64-SSSE3-NEXT: flds {{.*}}(%rip) ; X64-SSSE3-NEXT: fld %st(1) -; X64-SSSE3-NEXT: fsub %st(1) +; X64-SSSE3-NEXT: fsub %st(1), %st ; X64-SSSE3-NEXT: xorl %eax, %eax ; X64-SSSE3-NEXT: fxch %st(1) -; X64-SSSE3-NEXT: fucompi %st(2) +; X64-SSSE3-NEXT: fucompi %st(2), %st ; X64-SSSE3-NEXT: fcmovnbe %st(1), %st ; X64-SSSE3-NEXT: fstp %st(1) ; X64-SSSE3-NEXT: fisttpll -{{[0-9]+}}(%rsp) @@ -531,7 +531,7 @@ define i64 @fptoui_i64_fp80_ld(x86_fp80 *%a0) nounwind { ; X86-NEXT: fldt (%eax) ; X86-NEXT: flds {{\.LCPI.*}} ; X86-NEXT: fld %st(1) -; X86-NEXT: fsub %st(1) +; X86-NEXT: fsub %st(1), %st ; X86-NEXT: fxch %st(1) ; X86-NEXT: fucomp %st(2) ; X86-NEXT: fnstsw %ax @@ -564,10 +564,10 @@ define i64 @fptoui_i64_fp80_ld(x86_fp80 *%a0) nounwind { ; X64-X87-NEXT: fldt (%rdi) ; X64-X87-NEXT: flds {{.*}}(%rip) ; X64-X87-NEXT: fld %st(1) -; X64-X87-NEXT: fsub %st(1) +; X64-X87-NEXT: fsub %st(1), %st ; X64-X87-NEXT: xorl %eax, %eax ; X64-X87-NEXT: fxch %st(1) -; X64-X87-NEXT: fucompi %st(2) +; X64-X87-NEXT: fucompi %st(2), %st ; X64-X87-NEXT: fcmovnbe %st(1), %st ; X64-X87-NEXT: fstp %st(1) ; X64-X87-NEXT: fnstcw -{{[0-9]+}}(%rsp) @@ -587,10 +587,10 @@ define i64 @fptoui_i64_fp80_ld(x86_fp80 *%a0) nounwind { ; X64-SSSE3-NEXT: fldt (%rdi) ; X64-SSSE3-NEXT: flds {{.*}}(%rip) ; X64-SSSE3-NEXT: fld %st(1) -; X64-SSSE3-NEXT: fsub %st(1) +; X64-SSSE3-NEXT: fsub %st(1), %st ; X64-SSSE3-NEXT: xorl %eax, %eax ; X64-SSSE3-NEXT: fxch %st(1) -; X64-SSSE3-NEXT: fucompi %st(2) +; X64-SSSE3-NEXT: fucompi %st(2), %st ; X64-SSSE3-NEXT: fcmovnbe %st(1), %st ; X64-SSSE3-NEXT: fstp %st(1) ; X64-SSSE3-NEXT: fisttpll -{{[0-9]+}}(%rsp) diff --git a/llvm/test/CodeGen/X86/scalar-fp-to-i64.ll b/llvm/test/CodeGen/X86/scalar-fp-to-i64.ll index 92361ef..a97fc222 100644 --- a/llvm/test/CodeGen/X86/scalar-fp-to-i64.ll +++ b/llvm/test/CodeGen/X86/scalar-fp-to-i64.ll @@ -275,7 +275,7 @@ define i64 @f_to_u64(float %a) nounwind { ; X87_WIN-NEXT: flds 8(%ebp) ; X87_WIN-NEXT: flds __real@5f000000 ; X87_WIN-NEXT: fld %st(1) -; X87_WIN-NEXT: fsub %st(1) +; X87_WIN-NEXT: fsub %st(1), %st ; X87_WIN-NEXT: fxch %st(1) ; X87_WIN-NEXT: fucomp %st(2) ; X87_WIN-NEXT: fnstsw %ax @@ -309,7 +309,7 @@ define i64 @f_to_u64(float %a) nounwind { ; X87_LIN-NEXT: flds {{[0-9]+}}(%esp) ; X87_LIN-NEXT: flds {{\.LCPI.*}} ; X87_LIN-NEXT: fld %st(1) -; X87_LIN-NEXT: fsub %st(1) +; X87_LIN-NEXT: fsub %st(1), %st ; X87_LIN-NEXT: fxch %st(1) ; X87_LIN-NEXT: fucomp %st(2) ; X87_LIN-NEXT: fnstsw %ax @@ -763,7 +763,7 @@ define i64 @d_to_u64(double %a) nounwind { ; X87_WIN-NEXT: fldl 8(%ebp) ; X87_WIN-NEXT: flds __real@5f000000 ; X87_WIN-NEXT: fld %st(1) -; X87_WIN-NEXT: fsub %st(1) +; X87_WIN-NEXT: fsub %st(1), %st ; X87_WIN-NEXT: fxch %st(1) ; X87_WIN-NEXT: fucomp %st(2) ; X87_WIN-NEXT: fnstsw %ax @@ -797,7 +797,7 @@ define i64 @d_to_u64(double %a) nounwind { ; X87_LIN-NEXT: fldl {{[0-9]+}}(%esp) ; X87_LIN-NEXT: flds {{\.LCPI.*}} ; X87_LIN-NEXT: fld %st(1) -; X87_LIN-NEXT: fsub %st(1) +; X87_LIN-NEXT: fsub %st(1), %st ; X87_LIN-NEXT: fxch %st(1) ; X87_LIN-NEXT: fucomp %st(2) ; X87_LIN-NEXT: fnstsw %ax @@ -1024,10 +1024,10 @@ define i64 @x_to_u64(x86_fp80 %a) nounwind { ; AVX512_32_WIN-NEXT: fldt 8(%ebp) ; AVX512_32_WIN-NEXT: flds __real@5f000000 ; AVX512_32_WIN-NEXT: fld %st(1) -; AVX512_32_WIN-NEXT: fsub %st(1) +; AVX512_32_WIN-NEXT: fsub %st(1), %st ; AVX512_32_WIN-NEXT: xorl %edx, %edx ; AVX512_32_WIN-NEXT: fxch %st(1) -; AVX512_32_WIN-NEXT: fucompi %st(2) +; AVX512_32_WIN-NEXT: fucompi %st(2), %st ; AVX512_32_WIN-NEXT: fcmovnbe %st(1), %st ; AVX512_32_WIN-NEXT: fstp %st(1) ; AVX512_32_WIN-NEXT: fisttpll (%esp) @@ -1045,10 +1045,10 @@ define i64 @x_to_u64(x86_fp80 %a) nounwind { ; AVX512_32_LIN-NEXT: fldt {{[0-9]+}}(%esp) ; AVX512_32_LIN-NEXT: flds {{\.LCPI.*}} ; AVX512_32_LIN-NEXT: fld %st(1) -; AVX512_32_LIN-NEXT: fsub %st(1) +; AVX512_32_LIN-NEXT: fsub %st(1), %st ; AVX512_32_LIN-NEXT: xorl %edx, %edx ; AVX512_32_LIN-NEXT: fxch %st(1) -; AVX512_32_LIN-NEXT: fucompi %st(2) +; AVX512_32_LIN-NEXT: fucompi %st(2), %st ; AVX512_32_LIN-NEXT: fcmovnbe %st(1), %st ; AVX512_32_LIN-NEXT: fstp %st(1) ; AVX512_32_LIN-NEXT: fisttpll (%esp) @@ -1065,10 +1065,10 @@ define i64 @x_to_u64(x86_fp80 %a) nounwind { ; AVX512_64_WIN-NEXT: fldt (%rcx) ; AVX512_64_WIN-NEXT: flds __real@{{.*}}(%rip) ; AVX512_64_WIN-NEXT: fld %st(1) -; AVX512_64_WIN-NEXT: fsub %st(1) +; AVX512_64_WIN-NEXT: fsub %st(1), %st ; AVX512_64_WIN-NEXT: xorl %ecx, %ecx ; AVX512_64_WIN-NEXT: fxch %st(1) -; AVX512_64_WIN-NEXT: fucompi %st(2) +; AVX512_64_WIN-NEXT: fucompi %st(2), %st ; AVX512_64_WIN-NEXT: fcmovnbe %st(1), %st ; AVX512_64_WIN-NEXT: fstp %st(1) ; AVX512_64_WIN-NEXT: fisttpll (%rsp) @@ -1086,10 +1086,10 @@ define i64 @x_to_u64(x86_fp80 %a) nounwind { ; AVX512_64_LIN-NEXT: fldt {{[0-9]+}}(%rsp) ; AVX512_64_LIN-NEXT: flds {{.*}}(%rip) ; AVX512_64_LIN-NEXT: fld %st(1) -; AVX512_64_LIN-NEXT: fsub %st(1) +; AVX512_64_LIN-NEXT: fsub %st(1), %st ; AVX512_64_LIN-NEXT: xorl %ecx, %ecx ; AVX512_64_LIN-NEXT: fxch %st(1) -; AVX512_64_LIN-NEXT: fucompi %st(2) +; AVX512_64_LIN-NEXT: fucompi %st(2), %st ; AVX512_64_LIN-NEXT: fcmovnbe %st(1), %st ; AVX512_64_LIN-NEXT: fstp %st(1) ; AVX512_64_LIN-NEXT: fisttpll -{{[0-9]+}}(%rsp) @@ -1110,10 +1110,10 @@ define i64 @x_to_u64(x86_fp80 %a) nounwind { ; SSE3_32_WIN-NEXT: fldt 8(%ebp) ; SSE3_32_WIN-NEXT: flds __real@5f000000 ; SSE3_32_WIN-NEXT: fld %st(1) -; SSE3_32_WIN-NEXT: fsub %st(1) +; SSE3_32_WIN-NEXT: fsub %st(1), %st ; SSE3_32_WIN-NEXT: xorl %edx, %edx ; SSE3_32_WIN-NEXT: fxch %st(1) -; SSE3_32_WIN-NEXT: fucompi %st(2) +; SSE3_32_WIN-NEXT: fucompi %st(2), %st ; SSE3_32_WIN-NEXT: fcmovnbe %st(1), %st ; SSE3_32_WIN-NEXT: fstp %st(1) ; SSE3_32_WIN-NEXT: fisttpll (%esp) @@ -1131,10 +1131,10 @@ define i64 @x_to_u64(x86_fp80 %a) nounwind { ; SSE3_32_LIN-NEXT: fldt {{[0-9]+}}(%esp) ; SSE3_32_LIN-NEXT: flds {{\.LCPI.*}} ; SSE3_32_LIN-NEXT: fld %st(1) -; SSE3_32_LIN-NEXT: fsub %st(1) +; SSE3_32_LIN-NEXT: fsub %st(1), %st ; SSE3_32_LIN-NEXT: xorl %edx, %edx ; SSE3_32_LIN-NEXT: fxch %st(1) -; SSE3_32_LIN-NEXT: fucompi %st(2) +; SSE3_32_LIN-NEXT: fucompi %st(2), %st ; SSE3_32_LIN-NEXT: fcmovnbe %st(1), %st ; SSE3_32_LIN-NEXT: fstp %st(1) ; SSE3_32_LIN-NEXT: fisttpll (%esp) @@ -1151,10 +1151,10 @@ define i64 @x_to_u64(x86_fp80 %a) nounwind { ; SSE3_64_WIN-NEXT: fldt (%rcx) ; SSE3_64_WIN-NEXT: flds __real@{{.*}}(%rip) ; SSE3_64_WIN-NEXT: fld %st(1) -; SSE3_64_WIN-NEXT: fsub %st(1) +; SSE3_64_WIN-NEXT: fsub %st(1), %st ; SSE3_64_WIN-NEXT: xorl %eax, %eax ; SSE3_64_WIN-NEXT: fxch %st(1) -; SSE3_64_WIN-NEXT: fucompi %st(2) +; SSE3_64_WIN-NEXT: fucompi %st(2), %st ; SSE3_64_WIN-NEXT: fcmovnbe %st(1), %st ; SSE3_64_WIN-NEXT: fstp %st(1) ; SSE3_64_WIN-NEXT: fisttpll (%rsp) @@ -1169,10 +1169,10 @@ define i64 @x_to_u64(x86_fp80 %a) nounwind { ; SSE3_64_LIN-NEXT: fldt {{[0-9]+}}(%rsp) ; SSE3_64_LIN-NEXT: flds {{.*}}(%rip) ; SSE3_64_LIN-NEXT: fld %st(1) -; SSE3_64_LIN-NEXT: fsub %st(1) +; SSE3_64_LIN-NEXT: fsub %st(1), %st ; SSE3_64_LIN-NEXT: xorl %eax, %eax ; SSE3_64_LIN-NEXT: fxch %st(1) -; SSE3_64_LIN-NEXT: fucompi %st(2) +; SSE3_64_LIN-NEXT: fucompi %st(2), %st ; SSE3_64_LIN-NEXT: fcmovnbe %st(1), %st ; SSE3_64_LIN-NEXT: fstp %st(1) ; SSE3_64_LIN-NEXT: fisttpll -{{[0-9]+}}(%rsp) @@ -1190,10 +1190,10 @@ define i64 @x_to_u64(x86_fp80 %a) nounwind { ; SSE2_32_WIN-NEXT: fldt 8(%ebp) ; SSE2_32_WIN-NEXT: flds __real@5f000000 ; SSE2_32_WIN-NEXT: fld %st(1) -; SSE2_32_WIN-NEXT: fsub %st(1) +; SSE2_32_WIN-NEXT: fsub %st(1), %st ; SSE2_32_WIN-NEXT: xorl %edx, %edx ; SSE2_32_WIN-NEXT: fxch %st(1) -; SSE2_32_WIN-NEXT: fucompi %st(2) +; SSE2_32_WIN-NEXT: fucompi %st(2), %st ; SSE2_32_WIN-NEXT: fcmovnbe %st(1), %st ; SSE2_32_WIN-NEXT: fstp %st(1) ; SSE2_32_WIN-NEXT: fnstcw {{[0-9]+}}(%esp) @@ -1217,10 +1217,10 @@ define i64 @x_to_u64(x86_fp80 %a) nounwind { ; SSE2_32_LIN-NEXT: fldt {{[0-9]+}}(%esp) ; SSE2_32_LIN-NEXT: flds {{\.LCPI.*}} ; SSE2_32_LIN-NEXT: fld %st(1) -; SSE2_32_LIN-NEXT: fsub %st(1) +; SSE2_32_LIN-NEXT: fsub %st(1), %st ; SSE2_32_LIN-NEXT: xorl %edx, %edx ; SSE2_32_LIN-NEXT: fxch %st(1) -; SSE2_32_LIN-NEXT: fucompi %st(2) +; SSE2_32_LIN-NEXT: fucompi %st(2), %st ; SSE2_32_LIN-NEXT: fcmovnbe %st(1), %st ; SSE2_32_LIN-NEXT: fstp %st(1) ; SSE2_32_LIN-NEXT: fnstcw {{[0-9]+}}(%esp) @@ -1243,10 +1243,10 @@ define i64 @x_to_u64(x86_fp80 %a) nounwind { ; SSE2_64_WIN-NEXT: fldt (%rcx) ; SSE2_64_WIN-NEXT: flds __real@{{.*}}(%rip) ; SSE2_64_WIN-NEXT: fld %st(1) -; SSE2_64_WIN-NEXT: fsub %st(1) +; SSE2_64_WIN-NEXT: fsub %st(1), %st ; SSE2_64_WIN-NEXT: xorl %eax, %eax ; SSE2_64_WIN-NEXT: fxch %st(1) -; SSE2_64_WIN-NEXT: fucompi %st(2) +; SSE2_64_WIN-NEXT: fucompi %st(2), %st ; SSE2_64_WIN-NEXT: fcmovnbe %st(1), %st ; SSE2_64_WIN-NEXT: fstp %st(1) ; SSE2_64_WIN-NEXT: fnstcw {{[0-9]+}}(%rsp) @@ -1267,10 +1267,10 @@ define i64 @x_to_u64(x86_fp80 %a) nounwind { ; SSE2_64_LIN-NEXT: fldt {{[0-9]+}}(%rsp) ; SSE2_64_LIN-NEXT: flds {{.*}}(%rip) ; SSE2_64_LIN-NEXT: fld %st(1) -; SSE2_64_LIN-NEXT: fsub %st(1) +; SSE2_64_LIN-NEXT: fsub %st(1), %st ; SSE2_64_LIN-NEXT: xorl %eax, %eax ; SSE2_64_LIN-NEXT: fxch %st(1) -; SSE2_64_LIN-NEXT: fucompi %st(2) +; SSE2_64_LIN-NEXT: fucompi %st(2), %st ; SSE2_64_LIN-NEXT: fcmovnbe %st(1), %st ; SSE2_64_LIN-NEXT: fstp %st(1) ; SSE2_64_LIN-NEXT: fnstcw -{{[0-9]+}}(%rsp) @@ -1294,7 +1294,7 @@ define i64 @x_to_u64(x86_fp80 %a) nounwind { ; X87_WIN-NEXT: fldt 8(%ebp) ; X87_WIN-NEXT: flds __real@5f000000 ; X87_WIN-NEXT: fld %st(1) -; X87_WIN-NEXT: fsub %st(1) +; X87_WIN-NEXT: fsub %st(1), %st ; X87_WIN-NEXT: fxch %st(1) ; X87_WIN-NEXT: fucomp %st(2) ; X87_WIN-NEXT: fnstsw %ax @@ -1328,7 +1328,7 @@ define i64 @x_to_u64(x86_fp80 %a) nounwind { ; X87_LIN-NEXT: fldt {{[0-9]+}}(%esp) ; X87_LIN-NEXT: flds {{\.LCPI.*}} ; X87_LIN-NEXT: fld %st(1) -; X87_LIN-NEXT: fsub %st(1) +; X87_LIN-NEXT: fsub %st(1), %st ; X87_LIN-NEXT: fxch %st(1) ; X87_LIN-NEXT: fucomp %st(2) ; X87_LIN-NEXT: fnstsw %ax -- 2.7.4