[llvm] 9694e0f - [X86] Add test for PR63055 (NFC)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 1 05:32:33 PDT 2023


Author: Nikita Popov
Date: 2023-06-01T14:32:24+02:00
New Revision: 9694e0fcbac1554b619130d712c0dd1b04435e21

URL: https://github.com/llvm/llvm-project/commit/9694e0fcbac1554b619130d712c0dd1b04435e21
DIFF: https://github.com/llvm/llvm-project/commit/9694e0fcbac1554b619130d712c0dd1b04435e21.diff

LOG: [X86] Add test for PR63055 (NFC)

Added: 
    

Modified: 
    llvm/test/CodeGen/X86/setcc.ll

Removed: 
    


################################################################################
diff  --git a/llvm/test/CodeGen/X86/setcc.ll b/llvm/test/CodeGen/X86/setcc.ll
index 62380bcec1cab..cd28df0a1244c 100644
--- a/llvm/test/CodeGen/X86/setcc.ll
+++ b/llvm/test/CodeGen/X86/setcc.ll
@@ -338,3 +338,20 @@ define i32 @PR55138(i32 %x) {
   %and = and i32 %shr, 1
   ret i32 %and
 }
+
+; FIXME: Miscompile.
+define i64 @pr63055(double %arg) {
+; X86-LABEL: pr63055:
+; X86:       ## %bb.0:
+; X86-NEXT:    movl $255, %eax
+; X86-NEXT:    xorl %edx, %edx
+; X86-NEXT:    retl
+;
+; X64-LABEL: pr63055:
+; X64:       ## %bb.0:
+; X64-NEXT:    movl $255, %eax
+; X64-NEXT:    retq
+  %fcmp = fcmp une double 0x7FF8000000000000, %arg
+  %ext = zext i1 %fcmp to i64
+  ret i64 %ext
+}


        


More information about the llvm-commits mailing list