Files
clang-p2996/llvm/test/MachineVerifier/test_g_bswap.mir
Craig Topper 9a7c26a399 [GISel] Restrict G_BSWAP to multiples of 16 bits. (#70245)
This is consistent with the IR verifier and SelectionDAG's getNode.

Update tests accordingly. I tried to keep some coverage of non-pow2 when
possible. X86 didn't like a G_UNMERGE_VALUES from s48 to 3 s16 that got
created when I tried s48.
2023-10-30 10:27:57 -07:00

20 lines
459 B
YAML

#RUN: not --crash llc -mtriple=aarch64 -o - -global-isel -run-pass=none -verify-machineinstrs %s 2>&1 | FileCheck %s
# REQUIRES: aarch64-registered-target
---
name: test_bswap
legalized: true
regBankSelected: false
selected: false
tracksRegLiveness: true
liveins:
body: |
bb.0:
%0:_(s17) = G_CONSTANT i32 17
; CHECK: Bad machine code: G_BSWAP size must be a multiple of 16 bits
%1:_(s17) = G_BSWAP %0
...