llvm/llvm/test/CodeGen/MIR/AArch64/mir-canon-constant-pool-hash.mir

# RUN: llc -o - -run-pass mir-canonicalizer -verify-machineinstrs %s | FileCheck %s
# RUN: llc -o - -run-pass mir-canonicalizer -mir-vreg-namer-use-stable-hash -verify-machineinstrs %s | FileCheck %s
--- |
  target triple = "aarch64-unknown-unknown"
  define void @f() { unreachable }
...
---
name: f
constants:
  - id:              0
    value:           '<1 x i8> <i8 0>'
  - id:              1
    value:           '<1 x i8> <i8 1>'
body: |
  bb.0:
    ; Test that we no longer have hash collisions between two different consts:
    ;CHECK: %bb{{[0-9a-f]+}}_{{[0-9a-f]+}}__1:gpr64common = ADR
    ;CHECK: %bb{{[0-9a-f]+}}_{{[0-9a-f]+}}__1:gpr64common = ADR
    %vreg0:gpr64common = ADRP target-flags(aarch64-page) %const.0
    %vreg1:gpr64common = ADRP target-flags(aarch64-page) %const.1
...