llvm-project
30 строк · 909.0 Байт
1# RUN: not --crash llc -o - -mtriple=arm64 -global-isel -run-pass=none -verify-machineinstrs %s 2>&1 | FileCheck %s
2# REQUIRES: aarch64-registered-target
3
4---
5name: test_store6legalized: true7regBankSelected: false8selected: false9tracksRegLiveness: true10liveins:11body: |12bb.0:
13
14; CHECK: Bad machine code: Generic memory instruction must access a pointer15%0:_(s64) = G_CONSTANT i32 016%1:_(s32) = G_CONSTANT i32 117G_STORE %1, %0 :: (store (s32))18
19%2:_(p0) = G_IMPLICIT_DEF20%3:_(s8) = G_IMPLICIT_DEF21; CHECK: Bad machine code: store memory size cannot exceed value size22G_STORE %3, %2 :: (store (s16))23
24; CHECK: Bad machine code: atomic store cannot use acquire ordering25G_STORE %1, %2 :: (store acquire (s32))26
27; CHECK: Bad machine code: atomic store cannot use acquire ordering28G_STORE %1, %2 :: (store acq_rel (s32))29
30...
31