[TTI] getTypeBasedIntrinsicInstrCost - add basic handling for strided load/store...
[llvm-project.git] / llvm / test / MachineVerifier / AMDGPU / test_g_intrinsic.mir
blobf96a8e9f0bdd64b0ea2d11fa0321747a7baebfe3
1 # RUN: not --crash llc -o - -mtriple=amdgcn -run-pass=none -verify-machineinstrs %s 2>&1 | FileCheck %s
3 ---
4 name:            test_intrinsic
5 legalized:       true
6 regBankSelected: false
7 selected:        false
8 tracksRegLiveness: true
9 liveins:
10 body:             |
11   bb.0:
13     %0:_(p3) = G_IMPLICIT_DEF
14     %1:_(s32) = G_IMPLICIT_DEF
16     ; CHECK: Bad machine code: Too few operands
17     G_INTRINSIC
19     ; CHECK: Bad machine code: G_INTRINSIC first src operand must be an intrinsic ID
20     G_INTRINSIC 0
22     ; CHECK: Bad machine code: G_INTRINSIC first src operand must be an intrinsic ID
23     G_INTRINSIC %0, %1
25     ; CHECK: Bad machine code: G_INTRINSIC first src operand must be an intrinsic ID
26     %2:_(s32) = G_INTRINSIC %0, %1
28     ; CHECK: Bad machine code: G_INTRINSIC first src operand must be an intrinsic ID
29     %3:_(s32), %4:_(s32) = G_INTRINSIC %0, %1
31     ; CHECK: Bad machine code: G_INTRINSIC used with intrinsic that accesses memory
32     G_INTRINSIC intrinsic(@llvm.amdgcn.s.barrier)
34     ; CHECK: Bad machine code: G_INTRINSIC used with intrinsic that accesses memory
35     %3:_(s32) = G_INTRINSIC intrinsic(@llvm.amdgcn.ds.append), %0, 1
37 ...