ams: basic support for compiling with gcc 15
This commit is contained in:
@@ -48,7 +48,7 @@ namespace ams::crypto {
|
||||
" moveq %[result], #1\n"
|
||||
" movne %[result], #0\n"
|
||||
: [result]"=r"(result), [lhs]"+r"(lhs), [rhs]"+r"(rhs), [xor_acc]"=&r"(xor_acc), [index]"=&r"(index), [ltmp]"=&r"(ltmp), [rtmp]"=&r"(rtmp)
|
||||
: [size]"r"(size)
|
||||
: "m"(*(const u8 (*)[size])lhs), "m"(*(const u8 (*)[size])rhs), [size]"r"(size)
|
||||
: "cc"
|
||||
);
|
||||
|
||||
|
||||
@@ -47,7 +47,7 @@ namespace ams::crypto {
|
||||
" cmp %w[xor_acc], #0\n"
|
||||
" cset %w[result], eq\n"
|
||||
: [result]"=r"(result), [lhs]"+r"(lhs), [rhs]"+r"(rhs), [xor_acc]"=&r"(xor_acc), [index]"=&r"(index), [ltmp]"=&r"(ltmp), [rtmp]"=&r"(rtmp)
|
||||
: "m"(*(const u8 (*)[size])lhs), "m"(*(const u8 (*)[size])lhs), [size]"r"(size)
|
||||
: "m"(*(const u8 (*)[size])lhs), "m"(*(const u8 (*)[size])rhs), [size]"r"(size)
|
||||
: "cc"
|
||||
);
|
||||
|
||||
|
||||
@@ -281,7 +281,7 @@ namespace ams::crypto::impl {
|
||||
[cur_hash0]"+w"(cur_hash0), [cur_hash1]"+w"(cur_hash1),
|
||||
[prev_hash0]"+w"(prev_hash0), [prev_hash1]"+w"(prev_hash1),
|
||||
[tmp_hash]"=w"(tmp_hash), [data]"+r"(data)
|
||||
: [round_constants]"r"(RoundConstants)
|
||||
: "m"(*(const u8 (*)[block_count*BlockSize])data), [round_constants]"r"(RoundConstants)
|
||||
:
|
||||
);
|
||||
} while (--block_count != 0);
|
||||
|
||||
Reference in New Issue
Block a user