aarch64: rewrite range syntax into list to appease Clang
authorYavor Georgiev <fealebenpae@gmail.com>
Fri, 16 Jan 2015 13:18:04 +0000 (15:18 +0200)
committerYavor Georgiev <fealebenpae@gmail.com>
Fri, 16 Jan 2015 13:31:02 +0000 (15:31 +0200)
Clang's assembler in Xcode 6 appears to choke when the operand of st4 is a range, but is happy with a list.

src/aarch64/sysv.S

index 5c9cdda..40851ea 100644 (file)
@@ -134,17 +134,17 @@ CNAME(ffi_call_SYSV):
        ret
 7:     brk     #1000                   /* UNUSED */
        ret
-8:     st4     { v0.s-v3.s }[0], [x3]  /* S4 */
+8:     st4     { v0.s, v1.s, v2.s, v3.s }[0], [x3]     /* S4 */
        ret
-9:     st3     { v0.s-v2.s }[0], [x3]  /* S3 */
+9:     st3     { v0.s, v1.s, v2.s }[0], [x3]   /* S3 */
        ret
 10:    stp     s0, s1, [x3]            /* S2 */
        ret
 11:    str     s0, [x3]                /* S1 */
        ret
-12:    st4     { v0.d-v3.d }[0], [x3]  /* D4 */
+12:    st4     { v0.d, v1.d, v2.d, v3.d }[0], [x3]     /* D4 */
        ret
-13:    st3     { v0.d-v2.d }[0], [x3]  /* D3 */
+13:    st3     { v0.d, v1.d, v2.d }[0], [x3]   /* D3 */
        ret
 14:    stp     d0, d1, [x3]            /* D2 */
        ret