raw-32-bits-be.test 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. RUN: printf '\377lprofR\201' > %t
  2. RUN: printf '\0\0\0\0\0\0\0\1' >> %t
  3. RUN: printf '\0\0\0\0\0\0\0\2' >> %t
  4. RUN: printf '\0\0\0\0\0\0\0\3' >> %t
  5. RUN: printf '\0\0\0\0\0\0\0\6' >> %t
  6. RUN: printf '\0\0\0\0\1\0\0\0' >> %t
  7. RUN: printf '\0\0\0\0\2\0\0\0' >> %t
  8. RUN: printf '\0\0\0\3' >> %t
  9. RUN: printf '\0\0\0\1' >> %t
  10. RUN: printf '\0\0\0\0\0\0\0\1' >> %t
  11. RUN: printf '\2\0\0\0' >> %t
  12. RUN: printf '\1\0\0\0' >> %t
  13. RUN: printf '\0\0\0\3' >> %t
  14. RUN: printf '\0\0\0\2' >> %t
  15. RUN: printf '\0\0\0\0\0\0\0\2' >> %t
  16. RUN: printf '\2\0\0\03' >> %t
  17. RUN: printf '\1\0\0\10' >> %t
  18. RUN: printf '\0\0\0\0\0\0\0\023' >> %t
  19. RUN: printf '\0\0\0\0\0\0\0\067' >> %t
  20. RUN: printf '\0\0\0\0\0\0\0\101' >> %t
  21. RUN: printf 'foobar' >> %t
  22. RUN: llvm-profdata show %t -all-functions -counts | FileCheck %s
  23. CHECK: Counters:
  24. CHECK: foo:
  25. CHECK: Hash: 0x0000000000000001
  26. CHECK: Counters: 1
  27. CHECK: Function count: 19
  28. CHECK: Block counts: []
  29. CHECK: bar:
  30. CHECK: Hash: 0x0000000000000002
  31. CHECK: Counters: 2
  32. CHECK: Function count: 55
  33. CHECK: Block counts: [65]
  34. CHECK: Functions shown: 2
  35. CHECK: Total functions: 2
  36. CHECK: Maximum function count: 55
  37. CHECK: Maximum internal block count: 65