35 lines · plain
1# RUN: not --crash llc -o - -mtriple=amdgcn -run-pass=none -verify-machineinstrs %s 2>&1 | FileCheck %s2 3---4name: test_intrinsic_w_side_effects5legalized: true6regBankSelected: false7selected: false8tracksRegLiveness: true9liveins:10body: |11 bb.0:12 13 %0:_(p3) = G_IMPLICIT_DEF14 %1:_(s32) = G_IMPLICIT_DEF15 16 ; CHECK: Bad machine code: Too few operands17 G_INTRINSIC18 19 ; CHECK: Bad machine code: G_INTRINSIC first src operand must be an intrinsic ID20 G_INTRINSIC_W_SIDE_EFFECTS 021 22 ; CHECK: Bad machine code: G_INTRINSIC first src operand must be an intrinsic ID23 G_INTRINSIC_W_SIDE_EFFECTS %0, %124 25 ; CHECK: Bad machine code: G_INTRINSIC first src operand must be an intrinsic ID26 %2:_(s32) = G_INTRINSIC %0, %127 28 ; CHECK: Bad machine code: G_INTRINSIC first src operand must be an intrinsic ID29 %3:_(s32), %4:_(s32) = G_INTRINSIC_W_SIDE_EFFECTS %0, %130 31 ; CHECK: Bad machine code: G_INTRINSIC_W_SIDE_EFFECTS used with readnone intrinsic32 %5:_(s32) = G_INTRINSIC_W_SIDE_EFFECTS intrinsic(@llvm.amdgcn.rcp), %133 34...35