Skip to content

check_cfc: dash g generate different code with machine-cp #43767

@llvmbot

Description

@llvmbot
Bugzilla Link 44422
Version trunk
OS Linux
Depends On #43779
Blocks #37076
Reporter LLVM Bugzilla Contributor
CC @jmorse,@pogo59

Extended Description

Debug Info should have no effect on codegen, using check_cfc to scan llvm_test_suite, find a bug here:


[Reproduce]
$HOME/llvm-project/clang/utils/check_cfc/clang++ $HOME/test-suite/MultiSource/Benchmarks/Bullet/btConvexConvexAlgorithm.cpp -w -c -O2 -I $HOME/test-suite/MultiSource/Benchmarks/Bullet/include -o tmp.ll

[result]
Check CFC, checking: dash_g_no_change, dash_s_no_change
/home/chris/test-suite/MultiSource/Benchmarks/Bullet/btConvexConvexAlgorithm.cpp Code difference detected with -g
--- /tmp/tmpKmXkNI.o

+++ /tmp/tmp7GmGG6.o

@@ -254,6 +254,6 @@

  39c:	f3 41 0f 10 74 85 28 	movss  0x28(%r13,%rax,4),%xmm6
  3a3:	f3 45 0f 10 74 8d 28 	movss  0x28(%r13,%rcx,4),%xmm14
  3aa:	75 06                	jne    3b2 <_ZN23btConvexConvexAlgorithm16processCollisionEP17btCollisionObjectS1_RK16btDispatcherInfoP16btManifoldResult+0x1e2>
  • 3ac:	0f 8b 7f 11 00 00    	jnp    1531 <_ZN23btConvexConvexAlgorithm16processCollisionEP17btCollisionObjectS1_RK16btDispatcherInfoP16btManifoldResult+0x1361>
    
  • 3ac:	0f 8b 82 11 00 00    	jnp    1534 <_ZN23btConvexConvexAlgorithm16processCollisionEP17btCollisionObjectS1_RK16btDispatcherInfoP16btManifoldResult+0x1364>
    3b2:	0f 28 cd             	movaps %xmm5,%xmm1
    3b5:	f3 0f 59 cf          	mulss  %xmm7,%xmm1
    

*** Diff truncated ***

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions