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_w_side_effects 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_W_SIDE_EFFECTS 0 22 23 ; CHECK: Bad machine code: G_INTRINSIC first src operand must be an intrinsic ID 24 G_INTRINSIC_W_SIDE_EFFECTS %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_W_SIDE_EFFECTS %0, %1 31 32 ; CHECK: Bad machine code: G_INTRINSIC_W_SIDE_EFFECTS used with readnone intrinsic 33 %5:_(s32) = G_INTRINSIC_W_SIDE_EFFECTS intrinsic(@llvm.amdgcn.rcp), %1 34 35... 36