[TTI] getTypeBasedIntrinsicInstrCost - add basic handling for strided load/store...
[llvm-project.git] / llvm / test / MachineVerifier / AMDGPU / test_g_bitcast.mir
blob2095bf73c2cc877022310a068c05f1db3edad541
1 #RUN: not --crash llc -mtriple=amdgcn-amd-amdhsa -o - -global-isel -run-pass=none -verify-machineinstrs %s 2>&1 | FileCheck %s
3 ---
4 name:            test_bitcast
5 legalized:       true
6 regBankSelected: false
7 selected:        false
8 tracksRegLiveness: true
9 liveins:
10 body:             |
11   bb.0:
12    ; CHECK:  Bad machine code: bitcast cannot convert between pointers and other types
13     %0:_(s64) = G_IMPLICIT_DEF
14     %1:_(p0) = G_BITCAST %0
16     ; CHECK:  Bad machine code: bitcast cannot convert between pointers and other
17     %2:_(p0) = G_IMPLICIT_DEF
18     %3:_(s64) = G_BITCAST %2
20     ; CHECK: Bad machine code: bitcast sizes must match
21     %4:_(s32) = G_IMPLICIT_DEF
22     %5:_(s64) = G_BITCAST %4
24     ; CHECK: Bad machine code: bitcast sizes must match
25     %6:_(s32) = G_IMPLICIT_DEF
26     %7:_(<3 x s8>) = G_BITCAST %6
28     ; CHECK: Bad machine code: bitcast sizes must match
29     %8:_(p1) = G_IMPLICIT_DEF
30     %9:_(p3) = G_BITCAST %8
32     ; CHECK: Bad machine code: bitcast sizes must match
33     %10:_(p1) = G_IMPLICIT_DEF
34     %11:_(p3) = G_BITCAST %8
36     ; CHECK: Bad machine code: bitcast must change the type
37     %12:_(s64) = G_BITCAST %0
38 ...