[llvm] [X86][GlobalIsel] G_BITCAST test (PR #144928)

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 1 02:31:26 PDT 2025


================
@@ -0,0 +1,62 @@
+; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 5
+; RUN: llc < %s -mtriple=i686-- | FileCheck %s -check-prefixes=X86
+; RUN: llc < %s -mtriple=x86_64--| FileCheck %s -check-prefixes=X64
+; RUN: llc < %s -mtriple=i686-- | FileCheck %s -check-prefixes=X86
+; RUN: llc < %s -mtriple=x86_64--| FileCheck %s -check-prefixes=X64
+
+define i64 @test1(double %t) {
+; X86-LABEL: test1:
+; X86:       # %bb.0:
+; X86-NEXT:    movl {{[0-9]+}}(%esp), %eax
+; X86-NEXT:    movl {{[0-9]+}}(%esp), %edx
+; X86-NEXT:    retl
+;
+; X64-LABEL: test1:
+; X64:       # %bb.0:
+; X64-NEXT:    movq %xmm0, %rax
+; X64-NEXT:    retq
+        %u = bitcast double %t to i64           ; <i64> [#uses=1]
----------------
RKSimon wrote:

remove the comments (`; <i64> [#uses=1]` etc.)

https://github.com/llvm/llvm-project/pull/144928


More information about the llvm-commits mailing list