{"action":"opened","issue":{"url":"https://api.github.com/repos/JuliaLang/julia/issues/14184","labels_url":"https://api.github.com/repos/JuliaLang/julia/issues/14184/labels{/name}","comments_url":"https://api.github.com/repos/JuliaLang/julia/issues/14184/comments","events_url":"https://api.github.com/repos/JuliaLang/julia/issues/14184/events","html_url":"https://github.com/JuliaLang/julia/issues/14184","id":119376467,"number":14184,"title":"`code_native` shows labels in wrong places","user":{"login":"eschnett","id":213514,"avatar_url":"https://avatars.githubusercontent.com/u/213514?v=3","gravatar_id":"","url":"https://api.github.com/users/eschnett","html_url":"https://github.com/eschnett","followers_url":"https://api.github.com/users/eschnett/followers","following_url":"https://api.github.com/users/eschnett/following{/other_user}","gists_url":"https://api.github.com/users/eschnett/gists{/gist_id}","starred_url":"https://api.github.com/users/eschnett/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eschnett/subscriptions","organizations_url":"https://api.github.com/users/eschnett/orgs","repos_url":"https://api.github.com/users/eschnett/repos","events_url":"https://api.github.com/users/eschnett/events{/privacy}","received_events_url":"https://api.github.com/users/eschnett/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-29T18:36:10Z","updated_at":"2015-11-29T18:36:10Z","closed_at":null,"body":"I built Julia, master branch, on OS X, with LLVM 3.7.0 and with threading enabled.\r\n\r\nThis function:\r\n```Julia\r\nfunction axpy!(a,x,y)\r\n    @inbounds for i in eachindex(y)\r\n        y[i] += a*x[i]\r\n    end\r\nend\r\n```\r\nleads to this output:\r\n```\r\njulia> code_native(axpy!, (Float64, Vector{Float64}, Vector{Float64}))\r\nL99:L128:L172:L177:L208:\t.section\t__TEXT,__text,regular,pure_instructions\r\n\tpushq\t%rbp\r\n\tmovq\t%rsp, %rbp\r\n\tmovq\t8(%rsi), %rax\r\n\tcmpq\t$1, %rax\r\n\tjl\tL238\r\n\tmovl\t$1, %r8d\r\n\tmovq\t(%rsi), %rcx\r\n\tmovq\t(%rdi), %rdx\r\n\tcmpq\t$0, %rax\r\n\tje\tL177\r\n\tmovl\t$1, %r8d\r\n\tleaq\t1(%rax), %r9\r\n\tmovq\t%rax, %r10\r\n\tandq\t$-8, %r10\r\n\torq\t$1, %r10\r\n\tcmpq\t$1, %r10\r\n\tje\tL172\r\n\tleaq\t-1(%rax), %rdi\r\n\tshlq\t$3, %rdi\r\n\tleaq\t(%rcx,%rdi), %rsi\r\n\tleaq\t(%rdi,%rdx), %rdi\r\n\tcmpq\t%rdi, %rcx\r\n\tja\tL99\r\n\tmovl\t$1, %r8d\r\n\tcmpq\t%rsi, %rdx\r\n\tjbe\tL172\r\n\tvbroadcastsd\t%xmm0, %ymm1\r\n\tleaq\t32(%rcx), %rsi\r\n\tleaq\t32(%rdx), %rdi\r\n\tmovq\t%rax, %r8\r\n\tshrq\t$3, %r8\r\n\tshlq\t$3, %r8\r\n\tnopl\t(%rax,%rax)\r\n\tvmulpd\t-32(%rdi), %ymm1, %ymm2\r\n\tvmulpd\t(%rdi), %ymm1, %ymm3\r\n\tvaddpd\t-32(%rsi), %ymm2, %ymm2\r\n\tvaddpd\t(%rsi), %ymm3, %ymm3\r\n\tvmovupd\t%ymm2, -32(%rsi)\r\n\tvmovupd\t%ymm3, (%rsi)\r\n\taddq\t$64, %rsi\r\n\taddq\t$64, %rdi\r\n\taddq\t$-8, %r8\r\n\tjne\tL128\r\n\tmovq\t%r10, %r8\r\n\tcmpq\t%r8, %r9\r\n\tje\tL238\r\n\taddq\t$1, %rax\r\n\tsubq\t%r8, %rax\r\n\taddq\t$-1, %r8\r\n\tshlq\t$3, %r8\r\n\taddq\t%r8, %rdx\r\n\taddq\t%r8, %rcx\r\n\tnopw\t%cs:(%rax,%rax)\r\n\tvmulsd\t(%rdx), %xmm0, %xmm1\r\n\tvaddsd\t(%rcx), %xmm1, %xmL238:m1\r\n\tvmovsd\t%xmm1, (%rcx)\r\n\taddq\t$-1, %rax\r\n\taddq\t$8, %rdx\r\n\taddq\t$8, %rcx\r\n\tcmpq\t$0, %rax\r\n\tjne\tL208\r\n\tmovabsq\t$4436967440, %rax       ## imm = 0x10876C010\r\n\tpopq\t%rbp\r\n\tvzeroupper\r\n\tretq\r\n```\r\n\r\nNote that (a) many labels are wrongly accumulated near the top, and (b) label \"L238:m1\" is missing a line break before the label."}}