llvm-project/llvm/test/CodeGen/X86/GlobalISel/legalize-undef.mir

30 lines
1.0 KiB
YAML

# RUN: llc -mtriple=x86_64-linux-gnu -global-isel -run-pass=legalizer %s -o - | FileCheck %s --check-prefix=ALL --check-prefix=X64
# RUN: llc -mtriple=i386-linux-gnu -global-isel -run-pass=legalizer %s -o - | FileCheck %s --check-prefix=ALL --check-prefix=X32
---
name: test_implicit_def
# ALL-LABEL: name: test_implicit_def
registers:
# X64: %0(s1) = G_IMPLICIT_DEF
# X64-NEXT: %1(s8) = G_IMPLICIT_DEF
# X64-NEXT: %2(s16) = G_IMPLICIT_DEF
# X64-NEXT: %3(s32) = G_IMPLICIT_DEF
# X64-NEXT: %4(s64) = G_IMPLICIT_DEF
#
# X32: %0(s1) = G_IMPLICIT_DEF
# X32-NEXT: %1(s8) = G_IMPLICIT_DEF
# X32-NEXT: %2(s16) = G_IMPLICIT_DEF
# X32-NEXT: %3(s32) = G_IMPLICIT_DEF
# X32-NEXT: %5(s32) = G_IMPLICIT_DEF
# X32-NEXT: %6(s32) = G_IMPLICIT_DEF
# X32-NEXT: %4(s64) = G_MERGE_VALUES %5(s32), %6(s32)
body: |
bb.0.entry:
liveins:
%0:_(s1) = G_IMPLICIT_DEF
%1:_(s8) = G_IMPLICIT_DEF
%2:_(s16) = G_IMPLICIT_DEF
%3:_(s32) = G_IMPLICIT_DEF
%4:_(s64) = G_IMPLICIT_DEF
...