Use the unified syntax when generating assembly for clang. The clang 3.5
integrated assembler only accepts it. MFC after: 1 week Sponsored by: ABT Systems Ltd
This commit is contained in:
parent
bbb29a3c0f
commit
17fea8f6b7
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=275564
@ -850,8 +850,13 @@ EMIT_FETCH_AND_OP_N(N, uintN_t, ldr, str, fetch_and_or, "orr") \
|
||||
EMIT_FETCH_AND_OP_N(N, uintN_t, ldr, str, fetch_and_sub, "sub") \
|
||||
EMIT_FETCH_AND_OP_N(N, uintN_t, ldr, str, fetch_and_xor, "eor")
|
||||
|
||||
#ifdef __clang__
|
||||
EMIT_ALL_OPS_N(1, uint8_t, "ldrb", "strb", "strbeq")
|
||||
EMIT_ALL_OPS_N(2, uint16_t, "ldrh", "strh", "strheq")
|
||||
#else
|
||||
EMIT_ALL_OPS_N(1, uint8_t, "ldrb", "strb", "streqb")
|
||||
EMIT_ALL_OPS_N(2, uint16_t, "ldrh", "strh", "streqh")
|
||||
#endif
|
||||
EMIT_ALL_OPS_N(4, uint32_t, "ldr", "str", "streq")
|
||||
|
||||
#ifndef __clang__
|
||||
|
Loading…
Reference in New Issue
Block a user