1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py UTC_ARGS: --version 2
2 # RUN: llc -mtriple=i386-linux-gnu -run-pass=legalizer %s -o - | FileCheck %s --check-prefix=X86-32
3 # RUN: llc -mtriple=x86_64-linux-gnu -run-pass=legalizer %s -o - | FileCheck %s --check-prefix=X86-64
12 ; X86-32-LABEL: name: test_anyext16
13 ; X86-32: [[DEF:%[0-9]+]]:_(s16) = IMPLICIT_DEF
14 ; X86-32-NEXT: [[ANYEXT:%[0-9]+]]:_(s32) = G_ANYEXT [[DEF]](s16)
15 ; X86-32-NEXT: [[COPY:%[0-9]+]]:_(s32) = COPY [[ANYEXT]](s32)
16 ; X86-32-NEXT: RET 0, implicit [[COPY]](s32)
17 ; X86-64-LABEL: name: test_anyext16
18 ; X86-64: [[DEF:%[0-9]+]]:_(s16) = IMPLICIT_DEF
19 ; X86-64-NEXT: [[ANYEXT:%[0-9]+]]:_(s32) = G_ANYEXT [[DEF]](s16)
20 ; X86-64-NEXT: [[COPY:%[0-9]+]]:_(s32) = COPY [[ANYEXT]](s32)
21 ; X86-64-NEXT: RET 0, implicit [[COPY]](s32)
22 %0:_(s16) = IMPLICIT_DEF
23 %1:_(s32) = G_ANYEXT %0
24 %2:_(s32) = COPY %1(s32)