diff options
Diffstat (limited to 'test/CodeGen/AArch64/GlobalISel/select-implicit-def.mir')
-rw-r--r-- | test/CodeGen/AArch64/GlobalISel/select-implicit-def.mir | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/test/CodeGen/AArch64/GlobalISel/select-implicit-def.mir b/test/CodeGen/AArch64/GlobalISel/select-implicit-def.mir new file mode 100644 index 000000000000..8604b2769ba3 --- /dev/null +++ b/test/CodeGen/AArch64/GlobalISel/select-implicit-def.mir @@ -0,0 +1,30 @@ +# RUN: llc -O0 -mtriple=aarch64-- -run-pass=instruction-select -verify-machineinstrs -global-isel %s -o - | FileCheck %s + +--- | + target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128" + + define void @implicit_def() { ret void } +... + +--- +# CHECK-LABEL: name: implicit_def +name: implicit_def +legalized: true +regBankSelected: true +# CHECK: registers: +# CHECK-NEXT: - { id: 0, class: gpr32, preferred-register: '' } +# CHECK-NEXT: - { id: 1, class: gpr32, preferred-register: '' } +registers: + - { id: 0, class: gpr } + - { id: 1, class: gpr } + +# CHECK: body: +# CHECK: [[DEF:%[0-9]+]] = IMPLICIT_DEF +# CHECK: [[ADD:%[0-9]+]] = ADDWrr [[DEF]], [[DEF]] +# CHECK: %w0 = COPY [[ADD]] +body: | + bb.0: + %0(s32) = G_IMPLICIT_DEF + %1(s32) = G_ADD %0, %0 + %w0 = COPY %1(s32) +... |