llvm-project
38 строк · 1.2 Кб
1# RUN: not --crash llc -o - -mtriple=amdgcn -run-pass=none -verify-machineinstrs %s 2>&1 | FileCheck %s
2# REQUIRES: amdgpu-registered-target
3
4---
5name: test_intrinsic6legalized: true7regBankSelected: false8selected: false9tracksRegLiveness: true10liveins:11body: |12bb.0:
13
14%0:_(p3) = G_IMPLICIT_DEF15%1:_(s32) = G_IMPLICIT_DEF16
17; CHECK: Bad machine code: Too few operands18G_INTRINSIC
19
20; CHECK: Bad machine code: G_INTRINSIC first src operand must be an intrinsic ID21G_INTRINSIC 0
22
23; CHECK: Bad machine code: G_INTRINSIC first src operand must be an intrinsic ID24G_INTRINSIC %0, %125
26; CHECK: Bad machine code: G_INTRINSIC first src operand must be an intrinsic ID27%2:_(s32) = G_INTRINSIC %0, %128
29; CHECK: Bad machine code: G_INTRINSIC first src operand must be an intrinsic ID30%3:_(s32), %4:_(s32) = G_INTRINSIC %0, %131
32; CHECK: Bad machine code: G_INTRINSIC used with intrinsic that accesses memory33G_INTRINSIC intrinsic(@llvm.amdgcn.s.barrier)
34
35; CHECK: Bad machine code: G_INTRINSIC used with intrinsic that accesses memory36%3:_(s32) = G_INTRINSIC intrinsic(@llvm.amdgcn.ds.append), %0, 137
38...
39