This repository has been archived by the owner on Dec 1, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 110
linux gcc8 fun name error #11
Labels
Comments
Can you try to compile with clang (as opposed to GCC)? |
use clangdiff --git a/test/cpp/assemble.sh b/test/cpp/assemble.sh
index 4bf4096..48d39c0 100755
--- a/test/cpp/assemble.sh
+++ b/test/cpp/assemble.sh
@@ -1 +1 @@
-c++ -O3 -mavx -mfma -masm=intel -fno-asynchronous-unwind-tables -fno-exceptions -fno-rtti -S $1
+clang -O3 -mavx -mfma -masm=intel -fno-asynchronous-unwind-tables -fno-exceptions -fno-rtti -S $1
/test/cpp/MaddArgs10.s .text
.intel_syntax noprefix
.file "MaddArgs10.cpp"
.globl _Z10MaddArgs10PfS_S_S_S_S_S_S_S_S_ # -- Begin function _Z10MaddArgs10PfS_S_S_S_S_S_S_S_S_
.p2align 4, 0x90
.type _Z10MaddArgs10PfS_S_S_S_S_S_S_S_S_,@function
_Z10MaddArgs10PfS_S_S_S_S_S_S_S_S_: # @_Z10MaddArgs10PfS_S_S_S_S_S_S_S_S_
# %bb.0:
push rbx
mov r10, qword ptr [rsp + 40]
mov r11, qword ptr [rsp + 32]
mov rax, qword ptr [rsp + 16]
mov rbx, qword ptr [rsp + 24]
vmovaps ymm0, ymmword ptr [rdi]
vmovaps ymm1, ymmword ptr [rsi]
vmovaps ymm2, ymmword ptr [rcx]
vmovaps ymm3, ymmword ptr [r9]
vmovaps ymm4, ymmword ptr [rbx]
vfmadd213ps ymm1, ymm0, ymmword ptr [rdx]
vfmadd213ps ymm1, ymm2, ymmword ptr [r8]
vfmadd213ps ymm1, ymm3, ymmword ptr [rax]
vfmadd213ps ymm1, ymm4, ymmword ptr [r11]
vmovups ymmword ptr [r10], ymm1
pop rbx
vzeroupper
ret
.Lfunc_end0:
.size _Z10MaddArgs10PfS_S_S_S_S_S_S_S_S_, .Lfunc_end0-_Z10MaddArgs10PfS_S_S_S_S_S_S_S_S_
# -- End function
.ident "clang version 6.0.0 (tags/RELEASE_600/final)"
.section ".note.GNU-stack","",@progbits
test/MaddArgs10_amd64.s //+build !noasm !appengine
// AUTO-GENERATED BY C2GOASM -- DO NOT EDIT
TEXT ·_MaddArgs10(SB), $40-80
MOVQ vec1+0(FP), DI
MOVQ vec2+8(FP), SI
MOVQ vec3+16(FP), DX
MOVQ vec4+24(FP), CX
MOVQ vec5+32(FP), R8
MOVQ vec6+40(FP), R9
MOVQ vec7+48(FP), R10
MOVQ vec8+56(FP), R11
MOVQ vec9+64(FP), R12
MOVQ result+72(FP), R13
ADDQ $8, SP
MOVQ R13, 24(SP)
MOVQ R12, 16(SP)
MOVQ R11, 8(SP)
MOVQ R10, 0(SP)
LONG $0x24548b4c; BYTE $0x28 // mov r10, qword [rsp + 40]
LONG $0x245c8b4c; BYTE $0x20 // mov r11, qword [rsp + 32]
LONG $0x24448b48; BYTE $0x10 // mov rax, qword [rsp + 16]
LONG $0x245c8b48; BYTE $0x18 // mov rbx, qword [rsp + 24]
LONG $0x0728fcc5 // vmovaps ymm0, yword [rdi]
LONG $0x0e28fcc5 // vmovaps ymm1, yword [rsi]
LONG $0x1128fcc5 // vmovaps ymm2, yword [rcx]
LONG $0x287cc1c4; BYTE $0x19 // vmovaps ymm3, yword [r9]
LONG $0x2328fcc5 // vmovaps ymm4, yword [rbx]
LONG $0xa87de2c4; BYTE $0x0a // vfmadd213ps ymm1, ymm0, yword [rdx]
LONG $0xa86dc2c4; BYTE $0x08 // vfmadd213ps ymm1, ymm2, yword [r8]
LONG $0xa865e2c4; BYTE $0x08 // vfmadd213ps ymm1, ymm3, yword [rax]
LONG $0xa85dc2c4; BYTE $0x0b // vfmadd213ps ymm1, ymm4, yword [r11]
LONG $0x117cc1c4; BYTE $0x0a // vmovups yword [r10], ymm1
SUBQ $8, SP
VZEROUPPER
RET
test error === RUN TestMaddArgs10
runtime: unexpected return pc for c2goasm/test._MaddArgs10 called from 0xc420039ce0
stack: frame={sp:0xc420052c30, fp:0xc420052c68} stack=[0xc420052000,0xc420053000)
000000c420052b30: 0000000000000000 0000000000000000
000000c420052b40: 0000000000000000 0000000000000000
000000c420052b50: 000000000042947c <runtime.gwrite+76> 0000000000533921
000000c420052b60: 0000000000000019 0000000000000019
000000c420052b70: 0000000000000000 0000000000000000
000000c420052b80: 000000c420052bd0 0000000000429cfd <runtime.printstring+125>
000000c420052b90: 0000000000533921 0000000000000019
000000c420052ba0: 0000000000000019 0000000000533921
000000c420052bb0: 0000000000000019 0000000000533921
000000c420052bc0: 0000000000000019 0000000000000019
000000c420052bd0: 000000c420052c20 000000000043bc30 <runtime.sigpanic+480>
000000c420052be0: 0000000000533921 0000000000000019
000000c420052bf0: 000000000000000f 000000c420039c20
000000c420052c00: 0000000000000000 000000c420001080
000000c420052c10: 00000000005adb60 000000000000000f
000000c420052c20: 000000c420052c50 00000000004e7b5f <c2goasm/test._MaddArgs10+127>
000000c420052c30: <000000c420039da0 000000c420039dc0
000000c420052c40: 000000c420039de0 000000c420039cb0
000000c420052c50: 000000c420039cd0 00000000004e5ea1 <c2goasm/test.MaddArgs10+193>
000000c420052c60: !000000c420039ce0 >000000c420039d00
000000c420052c70: 000000c420039d20 000000c420039d40
000000c420052c80: 000000c420039d60 000000c420039d80
000000c420052c90: 000000c420039da0 000000c420039dc0
000000c420052ca0: 000000c420039de0 000000c420039cb0
000000c420052cb0: 0000000000000000 0000000000000000
000000c420052cc0: 0000000000000000 0000000000000000
000000c420052cd0: 000000c420039f98 00000000004e6343 <c2goasm/test.TestMaddArgs10+627>
000000c420052ce0: 3f80000000000000 4040000040000000
000000c420052cf0: 40a0000040800000 40e0000040c00000
000000c420052d00: 4000000000000000 40c0000040800000
000000c420052d10: 4120000041000000 4160000041400000
000000c420052d20: 4000000000000000 40c0000040800000
000000c420052d30: 4120000041000000 4160000041400000
000000c420052d40: 4000000000000000 40c0000040800000
000000c420052d50: 4120000041000000 4160000041400000
000000c420052d60: 4000000000000000
fatal error: unknown caller pc
runtime stack:
runtime.throw(0x531d00, 0x11)
/usr/lib/go/src/runtime/panic.go:616 +0x81
runtime.gentraceback(0xffffffffffffffff, 0xffffffffffffffff, 0x0, 0xc420001080, 0x0, 0x0, 0x7fffffff, 0x538710, 0x7ffe2fb8ccf8, 0x0, ...)
/usr/lib/go/src/runtime/traceback.go:257 +0x1bdb
runtime.copystack(0xc420001080, 0x1000, 0x1)
/usr/lib/go/src/runtime/stack.go:891 +0x270
runtime.newstack()
/usr/lib/go/src/runtime/stack.go:1063 +0x30f
runtime.morestack()
/usr/lib/go/src/runtime/asm_amd64.s:480 +0x89
goroutine 5 [copystack]:
runtime.recordForPanic(0x533921, 0x19, 0x19)
/usr/lib/go/src/runtime/print.go:40 +0x115 fp=0xc420052b58 sp=0xc420052b50 pc=0x429335
runtime.gwrite(0x533921, 0x19, 0x19)
/usr/lib/go/src/runtime/print.go:90 +0x4c fp=0xc420052b90 sp=0xc420052b58 pc=0x42947c
runtime.printstring(0x533921, 0x19)
/usr/lib/go/src/runtime/print.go:237 +0x7d fp=0xc420052be0 sp=0xc420052b90 pc=0x429cfd
runtime.sigpanic()
/usr/lib/go/src/runtime/signal_unix.go:394 +0x1e0 fp=0xc420052c30 sp=0xc420052be0 pc=0x43bc30
runtime: unexpected return pc for c2goasm/test._MaddArgs10 called from 0xc420039ce0
stack: frame={sp:0xc420052c30, fp:0xc420052c68} stack=[0xc420052000,0xc420053000)
000000c420052b30: 0000000000000000 0000000000000000
000000c420052b40: 0000000000000000 0000000000000000
000000c420052b50: 000000000042947c <runtime.gwrite+76> 0000000000533921
000000c420052b60: 0000000000000019 0000000000000019
000000c420052b70: 0000000000000000 0000000000000000
000000c420052b80: 000000c420052bd0 0000000000429cfd <runtime.printstring+125>
000000c420052b90: 0000000000533921 0000000000000019
000000c420052ba0: 0000000000000019 0000000000533921
000000c420052bb0: 0000000000000019 0000000000533921
000000c420052bc0: 0000000000000019 0000000000000019
000000c420052bd0: 000000c420052c20 000000000043bc30 <runtime.sigpanic+480>
000000c420052be0: 0000000000533921 0000000000000019
000000c420052bf0: 000000000000000f 000000c420039c20
000000c420052c00: 0000000000000000 000000c420001080
000000c420052c10: 00000000005adb60 000000000000000f
000000c420052c20: 000000c420052c50 00000000004e7b5f <c2goasm/test._MaddArgs10+127>
000000c420052c30: <000000c420039da0 000000c420039dc0
000000c420052c40: 000000c420039de0 000000c420039cb0
000000c420052c50: 000000c420039cd0 00000000004e5ea1 <c2goasm/test.MaddArgs10+193>
000000c420052c60: !000000c420039ce0 >000000c420039d00
000000c420052c70: 000000c420039d20 000000c420039d40
000000c420052c80: 000000c420039d60 000000c420039d80
000000c420052c90: 000000c420039da0 000000c420039dc0
000000c420052ca0: 000000c420039de0 000000c420039cb0
000000c420052cb0: 0000000000000000 0000000000000000
000000c420052cc0: 0000000000000000 0000000000000000
000000c420052cd0: 000000c420039f98 00000000004e6343 <c2goasm/test.TestMaddArgs10+627>
000000c420052ce0: 3f80000000000000 4040000040000000
000000c420052cf0: 40a0000040800000 40e0000040c00000
000000c420052d00: 4000000000000000 40c0000040800000
000000c420052d10: 4120000041000000 4160000041400000
000000c420052d20: 4000000000000000 40c0000040800000
000000c420052d30: 4120000041000000 4160000041400000
000000c420052d40: 4000000000000000 40c0000040800000
000000c420052d50: 4120000041000000 4160000041400000
000000c420052d60: 4000000000000000
c2goasm/test._MaddArgs10(0xc420039d00, 0xc420039d20, 0xc420039d40, 0xc420039d60, 0xc420039d80, 0xc420039da0, 0xc420039dc0, 0xc420039de0, 0xc420039cb0, 0x0)
/home/zero/go-works/src/c2goasm/test/MaddArgs10_amd64.s:30 +0x7f fp=0xc420052c68 sp=0xc420052c30 pc=0x4e7b5f
created by testing.(*T).Run
/usr/lib/go/src/testing/testing.go:824 +0x2e0
goroutine 1 [chan receive]:
testing.(*T).Run(0xc4200a20f0, 0x5311d9, 0xe, 0x538518, 0x465d36)
/usr/lib/go/src/testing/testing.go:825 +0x301
testing.runTests.func1(0xc4200a2000)
/usr/lib/go/src/testing/testing.go:1063 +0x64
testing.tRunner(0xc4200a2000, 0xc42004ddf8)
/usr/lib/go/src/testing/testing.go:777 +0xd0
testing.runTests(0xc42000a080, 0x5da340, 0x7, 0x7, 0x40e959)
/usr/lib/go/src/testing/testing.go:1061 +0x2c4
testing.(*M).Run(0xc42009e000, 0x0)
/usr/lib/go/src/testing/testing.go:978 +0x171
main.main()
_testmain.go:56 +0x151
FAIL c2goasm/test 0.004s |
@fwessels |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
env
problem
run
error
Try to repair
diff --git a/subroutine.go b/subroutine.go
but run
go test -v ./...
has errorasm source
test/cpp/MaddConstant.s
test/MaddConstant_amd64.s
source by my fork
The text was updated successfully, but these errors were encountered: