• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# RUN: llc -o - -run-pass mir-canonicalizer -verify-machineinstrs %s | FileCheck %s
2# RUN: llc -o - -run-pass mir-canonicalizer -mir-vreg-namer-use-stable-hash -verify-machineinstrs %s | FileCheck %s
3--- |
4  target triple = "aarch64-unknown-unknown"
5  define void @f() { unreachable }
6...
7---
8name: f
9constants:
10  - id:              0
11    value:           '<1 x i8> <i8 0>'
12  - id:              1
13    value:           '<1 x i8> <i8 1>'
14body: |
15  bb.0:
16    ; Test that we no longer have hash collisions between two different consts:
17    ;CHECK: %bb{{[0-9]+}}_{{[0-9]+}}__1:gpr64common = ADR
18    ;CHECK: %bb{{[0-9]+}}_{{[0-9]+}}__1:gpr64common = ADR
19    %vreg0:gpr64common = ADRP target-flags(aarch64-page) %const.0
20    %vreg1:gpr64common = ADRP target-flags(aarch64-page) %const.1
21...
22