mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 12:12:47 +01:00
12c61bab00
test/CodeGen/MIR should contain tests that intent to test the MIR printing or parsing. Tests that test something else should be in test/CodeGen/TargetName even when they are written in .mir. As a rule of thumb, only tests using "llc -run-pass none" should be in test/CodeGen/MIR. llvm-svn: 289254
28 lines
825 B
YAML
28 lines
825 B
YAML
|
|
# RUN: llc -mtriple=aarch64-none-linux-gnu -run-pass aarch64-ldst-opt -verify-machineinstrs -o - %s | FileCheck %s
|
|
|
|
--- |
|
|
define i1 @no-clobber-zr(i64* %p, i64 %x) { ret i1 0 }
|
|
...
|
|
---
|
|
# Check that write of xzr doesn't inhibit pairing of xzr stores since
|
|
# it isn't actually clobbered. Written as a MIR test to avoid
|
|
# schedulers reordering instructions such that SUBS doesn't appear
|
|
# between stores.
|
|
# CHECK-LABEL: name: no-clobber-zr
|
|
# CHECK: STPXi %xzr, %xzr, %x0, 0
|
|
name: no-clobber-zr
|
|
body: |
|
|
bb.0:
|
|
liveins: %x0, %x1
|
|
STRXui %xzr, %x0, 0 :: (store 8 into %ir.p)
|
|
dead %xzr = SUBSXri killed %x1, 0, 0, implicit-def %nzcv
|
|
%w8 = CSINCWr %wzr, %wzr, 1, implicit killed %nzcv
|
|
STRXui %xzr, killed %x0, 1 :: (store 8 into %ir.p)
|
|
%w0 = ORRWrs %wzr, killed %w8, 0
|
|
RET %lr, implicit %w0
|
|
...
|
|
|
|
|
|
|