Skip to content

Commit

Permalink
Fix unsigned typos (#76670)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rageking8 committed Jan 28, 2024
1 parent c70d387 commit 5f4c89e
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions clang/test/Analysis/additive-op-on-sym-int-expr.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/MC/AArch64/neon-diagnostics.s
Original file line number Diff line number Diff line change
Expand Up @@ -4877,7 +4877,7 @@
// CHECK-ERROR: ^

//----------------------------------------------------------------------
// Scalar Unigned Rounding Shift Right (Immediate)
// Scalar Unsigned Rounding Shift Right (Immediate)
//----------------------------------------------------------------------

urshr d20, d23, #99
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/MC/AArch64/neon-scalar-shift-imm.s
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion llvm/test/MC/Disassembler/AArch64/neon-instructions.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion mlir/docs/Dialects/Linalg/OpDSL.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ class BinaryFn:
Examples:
- max -> `arith.MaxSIOp`
- max_unsinged -> `arith.MaxUIOp`
- max_unsigned -> `arith.MaxUIOp`
"""

add = BinaryFnType("add")
Expand Down

0 comments on commit 5f4c89e

Please sign in to comment.