1# RUN: not --crash llc -o - -march=amdgcn -run-pass=none -verify-machineinstrs %s 2>&1 | FileCheck %s 2# REQUIRES: amdgpu-registered-target 3 4--- 5name: test_intrinsic 6legalized: true 7regBankSelected: false 8selected: false 9tracksRegLiveness: true 10liveins: 11body: | 12 bb.0: 13 14 %0:_(p3) = G_IMPLICIT_DEF 15 %1:_(s32) = G_IMPLICIT_DEF 16 17 ; CHECK: Bad machine code: Too few operands 18 G_INTRINSIC 19 20 ; CHECK: Bad machine code: G_INTRINSIC first src operand must be an intrinsic ID 21 G_INTRINSIC 0 22 23 ; CHECK: Bad machine code: G_INTRINSIC first src operand must be an intrinsic ID 24 G_INTRINSIC %0, %1 25 26 ; CHECK: Bad machine code: G_INTRINSIC first src operand must be an intrinsic ID 27 %2:_(s32) = G_INTRINSIC %0, %1 28 29 ; CHECK: Bad machine code: G_INTRINSIC first src operand must be an intrinsic ID 30 %3:_(s32), %4:_(s32) = G_INTRINSIC %0, %1 31 32 ; CHECK: Bad machine code: G_INTRINSIC used with intrinsic that accesses memory 33 G_INTRINSIC intrinsic(@llvm.amdgcn.s.barrier) 34 35 ; CHECK: Bad machine code: G_INTRINSIC used with intrinsic that accesses memory 36 %3:_(s32) = G_INTRINSIC intrinsic(@llvm.amdgcn.ds.append), %0, 1 37 38... 39