{"action":"closed","issue":{"url":"https://api.github.com/repos/riscv/riscv-gnu-toolchain/issues/187","repository_url":"https://api.github.com/repos/riscv/riscv-gnu-toolchain","labels_url":"https://api.github.com/repos/riscv/riscv-gnu-toolchain/issues/187/labels{/name}","comments_url":"https://api.github.com/repos/riscv/riscv-gnu-toolchain/issues/187/comments","events_url":"https://api.github.com/repos/riscv/riscv-gnu-toolchain/issues/187/events","html_url":"https://github.com/riscv/riscv-gnu-toolchain/issues/187","id":183579330,"number":187,"title":"Generate FPU instruction even use -msoft-float","user":{"login":"kito-cheng","id":2723185,"avatar_url":"https://avatars.githubusercontent.com/u/2723185?v=3","gravatar_id":"","url":"https://api.github.com/users/kito-cheng","html_url":"https://github.com/kito-cheng","followers_url":"https://api.github.com/users/kito-cheng/followers","following_url":"https://api.github.com/users/kito-cheng/following{/other_user}","gists_url":"https://api.github.com/users/kito-cheng/gists{/gist_id}","starred_url":"https://api.github.com/users/kito-cheng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kito-cheng/subscriptions","organizations_url":"https://api.github.com/users/kito-cheng/orgs","repos_url":"https://api.github.com/users/kito-cheng/repos","events_url":"https://api.github.com/users/kito-cheng/events{/privacy}","received_events_url":"https://api.github.com/users/kito-cheng/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2016-10-18T03:06:29Z","updated_at":"2016-10-25T09:25:09Z","closed_at":"2016-10-25T09:25:09Z","body":"Source code: https://github.com/riscv/riscv-gnu-toolchain/commit/55f83087a711a24b8704309b0dd32e6071fcafad + https://github.com/kito-cheng/riscv-gcc/commit/93fb18c8e83badfee39ec99f24df73a1842ac31f\r\n\r\n```\r\n$ cat float_add.c\r\nfloat foo(float a, float b){\r\n  return a+b;\r\n}\r\n$ riscv64-unknown-linux-gnu-gcc float_add.c -o - -S  -msoft-float \r\n\t.file\t\"float_add.c\"\r\n\t.option nopic\r\n\t.option soft-float\r\n\t.text\r\n\t.align\t2\r\n\t.globl\tfoo\r\n\t.type \tfoo, @function\r\nfoo:\r\n\tadd\tsp,sp,-32\r\n\tsd\ts0,24(sp)\r\n\tadd\ts0,sp,32\r\n\tsw\ta0,-20(s0)\r\n\tsw\ta1,-24(s0)\r\n\tflw\tfa4,-20(s0)\r\n\tflw\tfa5,-24(s0)\r\n\tfadd.s\tfa5,fa4,fa5\r\n\tfmv.x.s\ta0,fa5\r\n\tld\ts0,24(sp)\r\n\tadd\tsp,sp,32\r\n\tjr\tra\r\n\t.size\tfoo, .-foo\r\n\t.ident\t\"GCC: (GNU) 6.1.0\"\r\n```"}}
{"actor":{"display_login":"aswaterman"}}