1 # RUN: not llc -o - -march=amdgcn -run-pass=none -verify-machineinstrs %s 2>&1 | FileCheck %s
2 # REQUIRES: amdgpu-registered-target
5 name: test_intrinsic_w_side_effects
9 tracksRegLiveness: true
14 %0:_(p3) = G_IMPLICIT_DEF
15 %1:_(s32) = G_IMPLICIT_DEF
17 ; CHECK: Bad machine code: Too few operands
20 ; CHECK: Bad machine code: G_INTRINSIC first src operand must be an intrinsic ID
21 G_INTRINSIC_W_SIDE_EFFECTS 0
23 ; CHECK: Bad machine code: G_INTRINSIC first src operand must be an intrinsic ID
24 G_INTRINSIC_W_SIDE_EFFECTS %0, %1
26 ; CHECK: Bad machine code: G_INTRINSIC first src operand must be an intrinsic ID
27 %2:_(s32) = G_INTRINSIC %0, %1
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
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