Fix unsigned typos (#76670)
This commit is contained in:
parent
c70d3874e9
commit
5f4c89edd0
@ -59,7 +59,7 @@ void testMin(int i, long l) {
|
||||
clang_analyzer_dumpL(l - intMin); // expected-warning-re {{(reg_${{[0-9]+}}<long l>) + 2147483648 }} instead of - -2147483648
|
||||
}
|
||||
|
||||
void changingToUnsinged(unsigned u, int i) {
|
||||
void changingToUnsigned(unsigned u, int i) {
|
||||
unsigned c = u + (unsigned)i;
|
||||
unsigned d = u - (unsigned)i;
|
||||
if (i == -1) {
|
||||
@ -89,7 +89,7 @@ void extendingToSigned(long l, int i) {
|
||||
}
|
||||
}
|
||||
|
||||
void extendingToUnigned(unsigned long ul, int i) {
|
||||
void extendingToUnsigned(unsigned long ul, int i) {
|
||||
unsigned long c = ul + (unsigned long)i;
|
||||
unsigned long d = ul - (unsigned long)i;
|
||||
if (i == -1) {
|
||||
|
@ -46,7 +46,7 @@ inline bool isRefType(wasm::ValType Type) {
|
||||
|
||||
// Convert ValType or a list/signature of ValTypes to a string.
|
||||
|
||||
// Convert an unsinged integer, which can be among wasm::ValType enum, to its
|
||||
// Convert an unsigned integer, which can be among wasm::ValType enum, to its
|
||||
// type name string. If the input is not within wasm::ValType, returns
|
||||
// "invalid_type".
|
||||
const char *anyTypeToString(unsigned Type);
|
||||
|
@ -4877,7 +4877,7 @@
|
||||
// CHECK-ERROR: ^
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
// Scalar Unigned Rounding Shift Right (Immediate)
|
||||
// Scalar Unsigned Rounding Shift Right (Immediate)
|
||||
//----------------------------------------------------------------------
|
||||
|
||||
urshr d20, d23, #99
|
||||
|
@ -24,7 +24,7 @@
|
||||
// CHECK: srshr d19, d18, #7 // encoding: [0x53,0x26,0x79,0x5f]
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
// Scalar Unigned Rounding Shift Right (Immediate)
|
||||
// Scalar Unsigned Rounding Shift Right (Immediate)
|
||||
//----------------------------------------------------------------------
|
||||
urshr d20, d23, #31
|
||||
|
||||
|
@ -1829,7 +1829,7 @@
|
||||
0x53,0x26,0x79,0x5f
|
||||
|
||||
#----------------------------------------------------------------------
|
||||
# Scalar Unigned Rounding Shift Right (Immediate)
|
||||
# Scalar Unsigned Rounding Shift Right (Immediate)
|
||||
#----------------------------------------------------------------------
|
||||
# CHECK: urshr d20, d23, #31
|
||||
0xf4,0x26,0x61,0x7f
|
||||
|
@ -291,7 +291,7 @@ The following examples illustrate the lowering of signed and unsigned functions:
|
||||
* cast_unsigned(I32 -> I64) -> `arith.ExtUIOp`
|
||||
* cast_unsigned(F32 -> I32) -> `arith.FPToUIOp`
|
||||
* max_signed -> `arith.MaxSIOp`
|
||||
* max_unsinged -> `arith.MaxUIOp`
|
||||
* max_unsigned -> `arith.MaxUIOp`
|
||||
|
||||
Not all functions are applicable for all numeric types, and on mismatch, op
|
||||
verification will fail.
|
||||
|
@ -318,7 +318,7 @@ class BinaryFn:
|
||||
|
||||
Examples:
|
||||
- max -> `arith.MaxSIOp`
|
||||
- max_unsinged -> `arith.MaxUIOp`
|
||||
- max_unsigned -> `arith.MaxUIOp`
|
||||
"""
|
||||
|
||||
add = BinaryFnType("add")
|
||||
|
Loading…
x
Reference in New Issue
Block a user