Skip to content

Commit

Permalink
[UBSan][MIPS] Adding support of MIPS64 in UBSan testing
Browse files Browse the repository at this point in the history
On mips64 addresses are 40-bit. Where as a 48 bit address is used in TypeCheck/misaligned.cpp.
Using regular expression for that address.

reviewed by : samsonov
submitted by: sagar

llvm-svn: 224242
  • Loading branch information
SDkie committed Dec 15, 2014
1 parent 72860c3 commit fef606c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions compiler-rt/test/ubsan/TestCases/TypeCheck/misaligned.cpp
Original file line number Diff line number Diff line change
@@ -97,8 +97,8 @@ int main(int, char **argv) {
}

case 'w':
// CHECK-WILD: misaligned.cpp:[[@LINE+3]]:35: runtime error: member access within misaligned address 0x000000000123 for type 'S', which requires 4 byte alignment
// CHECK-WILD-NEXT: 0x000000000123: note: pointer points here
// CHECK-WILD: misaligned.cpp:[[@LINE+3]]:35: runtime error: member access within misaligned address 0x{{0+}}123 for type 'S', which requires 4 byte alignment
// CHECK-WILD-NEXT: 0x{{0+}}123: note: pointer points here
// CHECK-WILD-NEXT: <memory cannot be printed>
return static_cast<S*>(wild)->k;
}

0 comments on commit fef606c

Please sign in to comment.